2012-02-22 09:30:17 +00:00
|
|
|
# Template file for 'libplist'
|
|
|
|
pkgname=libplist
|
2014-11-14 10:00:24 +00:00
|
|
|
version=1.12
|
2014-11-14 10:45:16 +00:00
|
|
|
revision=3
|
2014-11-14 10:00:24 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-static"
|
|
|
|
hostmakedepends="automake libtool pkg-config python-devel Cython"
|
2014-01-23 16:12:32 +00:00
|
|
|
makedepends="python-devel libglib-devel libxml2-devel"
|
2012-02-22 09:30:17 +00:00
|
|
|
short_desc="Apple Property List library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2013-01-03 11:48:07 +00:00
|
|
|
homepage="http://libimobiledevice.org/"
|
2013-01-03 11:55:06 +00:00
|
|
|
distfiles="http://www.libimobiledevice.org/downloads/${pkgname}-${version}.tar.bz2"
|
2014-11-14 10:00:24 +00:00
|
|
|
checksum=0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be
|
2013-01-03 12:11:22 +00:00
|
|
|
|
2014-11-14 10:00:24 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -i 's,-L$(libdir),,g' cython/Makefile.am
|
|
|
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
|
|
export PYTHON_LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpython2.7"
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libplist++_package() {
|
2014-11-14 10:00:24 +00:00
|
|
|
short_desc+=" - C++ runtime library"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
2014-11-14 10:00:24 +00:00
|
|
|
vmove usr/lib/libplist++.so.*
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libplist-python_package() {
|
2014-04-04 12:24:47 +00:00
|
|
|
lib32disabled=yes
|
2014-11-14 10:00:24 +00:00
|
|
|
short_desc+=" - Python bindings"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libplist-devel_package() {
|
2014-11-14 10:09:07 +00:00
|
|
|
depends="libxml2-devel libplist++>=${version}_${revision} libplist>=${version}_${revision}"
|
2014-11-14 10:00:24 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-11-14 10:00:24 +00:00
|
|
|
vmove usr/lib/*.so
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|