mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
jansson: bump to 2.9, drop libtool file. Minor changes. (#828)
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
SUMMARY="A C library for encoding, decoding and manipulating JSON data"
|
||||
DESCRIPTION="
|
||||
Jansson is a C library for encoding, decoding and manipulating JSON data. It \
|
||||
features a simple and intuitive API and data model, comprehensive \
|
||||
documentation, no dependencies on other libraries, full unicode support \
|
||||
(UTF-8) and an extensive test suite."
|
||||
HOMEPAGE="http://www.digip.org/jansson/"
|
||||
COPYRIGHT="2009-2013 Petri Lehtinen
|
||||
2011-2012 Basile Starynkevitch
|
||||
2011-2012 Graeme Smecher"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.digip.org/jansson/releases/jansson-2.5.tar.gz"
|
||||
CHECKSUM_SHA256="dd8bbfb38ad5031ce88e066b14d3b7e9c7113243daa7f4cde1994b7fc90bb1b1"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
jansson$secondaryArchSuffix = $portVersion compat >= 2
|
||||
libjansson$secondaryArchSuffix = 4.5.0 compat >= 4
|
||||
lib:libjansson$secondaryArchSuffix = 4.5.0 compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libjansson${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:jansson$secondaryArchSuffix = 4.5.0 compat >= 4
|
||||
devel:libjansson$secondaryArchSuffix = 4.5.0 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libjansson$secondaryArchSuffix == 4.5.0 base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:awk
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
sed -i 's/-Wextra/ /g' Makefile.*
|
||||
sed -i 's/-Wdeclaration-after-statement/ /g' Makefile.*
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# devel package
|
||||
prepareInstalledDevelLibs \
|
||||
libjansson
|
||||
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd test
|
||||
run-suites
|
||||
}
|
||||
89
dev-libs/jansson/jansson-2.9.recipe
Normal file
89
dev-libs/jansson/jansson-2.9.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="A C library for encoding, decoding and manipulating JSON data"
|
||||
DESCRIPTION="Jansson is a C library for encoding, decoding and manipulating \
|
||||
JSON data. It features a simple and intuitive API and data model, \
|
||||
comprehensive documentation, no dependencies on other libraries, full unicode \
|
||||
support (UTF-8) and an extensive test suite."
|
||||
HOMEPAGE="http://www.digip.org/jansson/"
|
||||
COPYRIGHT="2009-2016 Petri Lehtinen
|
||||
2011-2012 Basile Starynkevitch
|
||||
2011-2012 Graeme Smecher"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.digip.org/jansson/releases/jansson-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="77094fc1e113da0e2e65479488a0719f859b8f5bde3a6a0da88a1c73a88b5698"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
jansson$secondaryArchSuffix = $portVersion compat >= 2
|
||||
lib:libjansson$secondaryArchSuffix = 4.9.0 compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libjansson${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libjansson$secondaryArchSuffix = 4.9.0 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
jansson$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:autoheader
|
||||
cmd:awk
|
||||
cmd:cmp
|
||||
cmd:diff
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
||||
sed -i \
|
||||
-e "/AM_CFLAGS=/ s/ -Wextra//" \
|
||||
-e "/AM_CFLAGS=/ s/ -Wdeclaration-after-statement//" \
|
||||
configure.ac
|
||||
fi
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm $libDir/libjansson.la
|
||||
|
||||
# devel package
|
||||
prepareInstalledDevelLib libjansson
|
||||
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user