libplist: add recipe for version 2.1.0.

This commit is contained in:
Jerome Duval
2019-11-10 11:59:39 +01:00
parent b1c65bea88
commit 5d4fb32661

View File

@@ -0,0 +1,101 @@
SUMMARY="A library to handle Apple Property Lists in binary or XML"
DESCRIPTION="libplist is a library for reading and writing the Apple binary \
and XML property list format. It is part of the libimobiledevice stack \
providing access to iDevices."
HOMEPAGE="http://www.libimobiledevice.org/"
COPYRIGHT="2008-2010 Jonathan Beck
2009-2014 Nikias Bassen
2009-2014 Martin Szulecki
2008 Matt Colyer"
LICENSE="GNU GPL v2
GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://github.com/libimobiledevice/libplist/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="4b33f9af3f9208d54a3c3e1a8c149932513f451c98d1dd696fe42c06e30b7f03"
SOURCE_FILENAME="libplist-$portVersion.tar.gz"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libplist$secondaryArchSuffix = $portVersion compat >= 1
lib:libplist$secondaryArchSuffix = 3.2.0 compat >= 3
lib:libplist++$secondaryArchSuffix = 3.2.0 compat >= 3
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:plistutil = $portVersion compat >= 1
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libplist${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libplist$secondaryArchSuffix = 3.0.0 compat >= 3
devel:libplist++$secondaryArchSuffix = 3.0.0 compat >= 3
"
REQUIRES_devel="
libplist$secondaryArchSuffix == $portVersion base
devel:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:python
"
BUILD()
{
if [ -n "$secondaryArchSuffix" ]; then
maybe_without_cython=--without-cython
else
maybe_without_cython=
fi
autoreconf -fi
runConfigure ./configure $maybe_without_cython
make $jobArgs
}
INSTALL()
{
make install
# remove libtool files
rm $libDir/lib*.la $libDir/lib*.a
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
fi
prepareInstalledDevelLibs libplist libplist++
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
}
TEST()
{
make check
}