libharu: recipe for version 2.3.0

This commit is contained in:
Jerome Duval
2014-06-04 21:00:01 +00:00
parent f022a0d6e7
commit 0b0a03322b
4 changed files with 125 additions and 75 deletions

View 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
"