101 lines
2.2 KiB
Bash
101 lines
2.2 KiB
Bash
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="2"
|
|
SOURCE_URI="http://www.libimobiledevice.org/downloads/libplist-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be"
|
|
PATCHES="libplist-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libplist$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libplist$secondaryArchSuffix = 3.0.0 compat >= 3
|
|
lib:libplist++$secondaryArchSuffix = 3.0.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
|
|
|
|
runConfigure ./configure $maybe_without_cython
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool files
|
|
rm $libDir/lib*.la
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $binDir
|
|
fi
|
|
|
|
prepareInstalledDevelLibs libplist libplist++
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|