mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libyajl: new recipe (#1163)
This commit is contained in:
77
dev-libs/libyajl/libyajl-2.1.0.recipe
Normal file
77
dev-libs/libyajl/libyajl-2.1.0.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
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="1"
|
||||
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
|
||||
}
|
||||
13
dev-libs/libyajl/licenses/ISC
Normal file
13
dev-libs/libyajl/licenses/ISC
Normal file
@@ -0,0 +1,13 @@
|
||||
Copyright (c) 2007-2014, Lloyd Hilaiel <me@lloyd.io>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
Reference in New Issue
Block a user