libplist-2.1.0.recipe revision 5d4fb326
1SUMMARY="A library to handle Apple Property Lists in binary or XML"
2DESCRIPTION="libplist is a library for reading and writing the Apple binary \
3and XML property list format. It is part of the libimobiledevice stack \
4providing access to iDevices."
5HOMEPAGE="http://www.libimobiledevice.org/"
6COPYRIGHT="2008-2010 Jonathan Beck
7	2009-2014 Nikias Bassen
8	2009-2014 Martin Szulecki
9	2008 Matt Colyer"
10LICENSE="GNU GPL v2
11	GNU LGPL v2.1"
12REVISION="1"
13SOURCE_URI="http://github.com/libimobiledevice/libplist/archive/$portVersion.tar.gz"
14CHECKSUM_SHA256="4b33f9af3f9208d54a3c3e1a8c149932513f451c98d1dd696fe42c06e30b7f03"
15SOURCE_FILENAME="libplist-$portVersion.tar.gz"
16
17ARCHITECTURES="!x86_gcc2 x86 x86_64"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	libplist$secondaryArchSuffix = $portVersion compat >= 1
22	lib:libplist$secondaryArchSuffix = 3.2.0 compat >= 3
23	lib:libplist++$secondaryArchSuffix = 3.2.0 compat >= 3
24	"
25if [ -z "$secondaryArchSuffix" ]; then
26	PROVIDES="$PROVIDES
27		cmd:plistutil = $portVersion compat >= 1
28		"
29fi
30
31REQUIRES="
32	haiku$secondaryArchSuffix
33	lib:libxml2$secondaryArchSuffix
34	lib:libz$secondaryArchSuffix
35	"
36
37PROVIDES_devel="
38	libplist${secondaryArchSuffix}_devel = $portVersion compat >= 1
39	devel:libplist$secondaryArchSuffix = 3.0.0 compat >= 3
40	devel:libplist++$secondaryArchSuffix = 3.0.0 compat >= 3
41	"
42REQUIRES_devel="
43	libplist$secondaryArchSuffix == $portVersion base
44	devel:libxml2$secondaryArchSuffix
45	"
46
47BUILD_REQUIRES="
48	haiku${secondaryArchSuffix}_devel
49	devel:libxml2$secondaryArchSuffix
50	"
51BUILD_PREREQUIRES="
52	cmd:aclocal
53	cmd:autoconf
54	cmd:automake
55	cmd:cmake
56	cmd:gcc$secondaryArchSuffix
57	cmd:ld$secondaryArchSuffix
58	cmd:libtoolize$secondaryArchSuffix
59	cmd:make
60	cmd:pkg_config$secondaryArchSuffix
61	cmd:python
62	"
63
64BUILD()
65{
66	if [ -n "$secondaryArchSuffix" ]; then
67		maybe_without_cython=--without-cython
68	else
69		maybe_without_cython=
70	fi
71
72	autoreconf -fi
73	runConfigure ./configure $maybe_without_cython
74
75	make $jobArgs
76}
77
78INSTALL()
79{
80	make install
81
82	# remove libtool files
83	rm $libDir/lib*.la $libDir/lib*.a
84
85	if [ -n "$secondaryArchSuffix" ]; then
86		rm -rf $binDir
87	fi
88
89	prepareInstalledDevelLibs libplist libplist++
90	fixPkgconfig
91
92	# devel package
93	packageEntries devel \
94		$developDir \
95
96}
97
98TEST()
99{
100	make check
101}
102