diff --git a/srcpkgs/talloc/files/cross-32bit.answers b/srcpkgs/talloc/files/cross-32bit.answers new file mode 100644 index 00000000000..6262d36125f --- /dev/null +++ b/srcpkgs/talloc/files/cross-32bit.answers @@ -0,0 +1,46 @@ +Checking uname sysname type: OK +Checking uname machine type: OK +Checking uname release type: OK +Checking uname version type: OK +Checking simple C program: OK +building library support: OK +Checking for large file support: OK +Checking for -D_FILE_OFFSET_BITS=64: OK +Checking for WORDS_BIGENDIAN: OK +Checking size of char: "1" +Checking size of int: "4" +Checking size of long long: "4" +Checking size of long: "4" +Checking size of off_t: "4" +Checking size of short: "2" +Checking size of size_t: "4" +Checking size of ssize_t: "4" +Checking size of dev_t: "4" +Checking size of ino_t: "4" +Checking size of time_t: "4" +Checking size of void*: "4" +Checking for C99 vsnprintf: OK +Checking for HAVE_SECURE_MKSTEMP: OK +rpath library support: OK +-Wl,--version-script support: OK +Checking size of bool: "1" +Checking size of int8_t: "1" +Checking size of uint8_t: "1" +Checking size of int16_t: "2" +Checking size of uint16_t: "2" +Checking size of int32_t: "4" +Checking size of uint32_t: "4" +Checking size of int64_t: "4" +Checking size of uint64_t: "4" +Checking correct behavior of strtoll: OK +Checking correct behavior of strptime: OK +Checking for HAVE_IFACE_GETIFADDRS: OK +Checking for HAVE_IFACE_IFCONF: OK +Checking for HAVE_IFACE_IFREQ: OK +Checking getconf LFS_CFLAGS: OK +Checking for large file support without additional flags: OK +Checking for working strptime: OK +Checking for HAVE_SHARED_MMAP: OK +Checking for HAVE_MREMAP: OK +Checking for HAVE_INCOHERENT_MMAP: OK +Checking getconf large file support flags work: OK diff --git a/srcpkgs/talloc/template b/srcpkgs/talloc/template index a88ee661238..03bc2f356a2 100644 --- a/srcpkgs/talloc/template +++ b/srcpkgs/talloc/template @@ -1,9 +1,7 @@ # Template build file for 'talloc'. pkgname=talloc version=2.0.8 -revision=2 -build_style=gnu-configure -configure_args="--enable-talloc-compat1" +revision=3 hostmakedepends="pkg-config python libxslt docbook-xsl" short_desc="Hierarchical pool based memory allocator with destructors" maintainer="Juan RP " @@ -15,9 +13,25 @@ long_desc=" This package provides the talloc library: an hierarchical pool based memory allocator with destructors." +do_configure() { + if [ "$CROSS_BUILD" ]; then + cp ${FILESDIR}/cross-32bit.answers . + _args="--cross-compile --hostcc=cc --cross-answers=cross-32bit.answers" + fi + ./configure --prefix=/usr --disable-python --enable-talloc-compat1 ${_args} +} + +do_build() { + make ${makejobs} +} + +do_install() { + make DESTDIR=${DESTDIR} install +} + talloc-devel_package() { depends="${sourcepkg}>=${version}" - short_desc="${short_desc} -- development files" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig