void-packages/srcpkgs/libplist/template

45 lines
1.2 KiB
Text
Raw Normal View History

2012-02-22 09:30:17 +00:00
# Template file for 'libplist'
pkgname=libplist
version=1.12
revision=3
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"
checksum=0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be
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
}
libplist++_package() {
short_desc+=" - C++ runtime library"
pkg_install() {
vmove usr/lib/libplist++.so.*
}
}
libplist-python_package() {
lib32disabled=yes
short_desc+=" - Python bindings"
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}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}