mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
78 lines
1.7 KiB
Bash
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
|
|
}
|