mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
libharu: recipe for version 2.3.0
This commit is contained in:
78
media-libs/libharu/libharu-2.3.0.recipe
Normal file
78
media-libs/libharu/libharu-2.3.0.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="C/C++ library for PDF generation"
|
||||
DESCRIPTION="
|
||||
libpng is the official PNG reference library. It supports almost all PNG \
|
||||
features, is extensible, and has been extensively tested for over 17 years
|
||||
"
|
||||
HOMEPAGE="http://www.libharu.org/"
|
||||
COPYRIGHT="
|
||||
1998-2011 Glenn Randers-Pehrson
|
||||
1996-1997 Andreas Dilger
|
||||
1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
||||
"
|
||||
LICENSE="Zlib"
|
||||
SRC_URI="https://github.com/libharu/libharu/archive/RELEASE_2_3_0.tar.gz"
|
||||
SRC_FILENAME="libharu-2.3.0.tar.gz"
|
||||
CHECKSUM_SHA256="8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="libharu-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
libharu$secondaryArchSuffix = $portVersion compat >= 2
|
||||
lib:libhpdf$secondaryArchSuffix = 2.3.0 compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="libharu-RELEASE_2_3_0"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$prefix ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mv $libDir/libhpdfs.a $libDir/libhpdf.a
|
||||
mv $libDir/libhpdf.so $libDir/libhpdf.so.2.3
|
||||
ln -s libhpdf.so.2.3 $libDir/libhpdf.so
|
||||
prepareInstalledDevelLibs libhpdf
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libharu${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
||||
devel:libhpdf$secondaryArchSuffix = 2.3.0 compat >= 2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libharu$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user