Files
haikuports/dev-libs/libyajl/libyajl-2.1.0.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

78 lines
1.7 KiB
Bash

SUMMARY="Yet Another JSON Library"
DESCRIPTION="A small, fast library for parsing JavaScript Object Notation \
(JSON). It supports incremental parsing from a stream and leaves data \
representation to higher level code."
HOMEPAGE="https://lloyd.github.io/yajl/"
COPYRIGHT="2007-20014 Lloyd Hilaiel, and other contributors."
LICENSE="ISC"
REVISION="2"
SOURCE_URI="https://github.com/lloyd/yajl/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a"
SOURCE_DIR="yajl-$portVersion"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
libyajl${secondaryArchSuffix} = $portVersion
cmd:json_reformat$secondaryArchSuffix
cmd:json_verify$secondaryArchSuffix
lib:libyajl$secondaryArchSuffix = 2.1.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libyajl${secondaryArchSuffix}_devel = $portVersion
devel:libyajl$secondaryArchSuffix = 2.1.0 compat >= 2
devel:libyajl_s$secondaryArchSuffix
"
REQUIRES_devel="
libyajl$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
mkdir -p haiku_build
cd haiku_build
cmake .. -DCMAKE_INSTALL_PREFIX=$prefix
make $jobArgs
}
INSTALL()
{
cd haiku_build
make install
mkdir -p $includeDir $developLibDir
mv $prefix/include/yajl $includeDir
mv $prefix/share/pkgconfig $developLibDir
rm -rf $prefix/include
rm -rf $prefix/share
prepareInstalledDevelLibs libyajl libyajl_s
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}