talloc: cross build for 32bit archs.

This commit is contained in:
Juan RP 2013-05-15 08:18:14 +02:00
parent 4814ab7de0
commit 533ea80e1c
2 changed files with 64 additions and 4 deletions

View file

@ -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

View file

@ -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 <xtraeme@gmail.com>"
@ -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