2010-11-21 15:44:55 +00:00
|
|
|
# Template build file for 'tdb'.
|
|
|
|
pkgname=tdb
|
2014-12-23 11:38:50 +00:00
|
|
|
version=1.3.4
|
2014-12-04 15:28:35 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-05-15 06:25:56 +00:00
|
|
|
hostmakedepends="pkg-config python libxslt docbook-xsl"
|
2010-11-21 15:44:55 +00:00
|
|
|
short_desc="Hierarchical pool based memory allocator with destructors"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-01-16 06:44:38 +00:00
|
|
|
license="GPL-3"
|
2012-10-23 20:58:36 +00:00
|
|
|
homepage="http://tdb.samba.org/"
|
|
|
|
distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz"
|
2014-12-23 11:38:50 +00:00
|
|
|
checksum=f585cd53b49cb1f11f4c5aec404d0daa0c9bc5568790b09f5eb3b79315511729
|
2013-04-13 20:47:11 +00:00
|
|
|
|
2013-05-15 06:25:56 +00:00
|
|
|
do_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
cp ${FILESDIR}/cross-32bit.answers .
|
2015-01-29 07:21:39 +00:00
|
|
|
sed -i "s,@@XBPS_TARGET_MACHINE@@,$XBPS_TARGET_MACHINE,g" cross-32bit.answers
|
2013-05-15 06:25:56 +00:00
|
|
|
_args="--cross-compile --hostcc=cc --cross-answers=cross-32bit.answers"
|
|
|
|
fi
|
|
|
|
./configure --prefix=/usr --disable-python ${_args}
|
|
|
|
}
|
|
|
|
|
2013-04-13 20:47:11 +00:00
|
|
|
tdb-devel_package() {
|
|
|
|
depends="libtdb-${version}_${revision}"
|
2013-05-15 06:25:56 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 20:47:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-16 11:09:12 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 20:47:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libtdb_package() {
|
|
|
|
short_desc="Trivial Database - shared library"
|
|
|
|
pkg_install() {
|
2014-02-16 11:09:12 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-13 20:47:11 +00:00
|
|
|
}
|
|
|
|
}
|