zlib: make this cross buildable.

This commit is contained in:
Juan RP 2013-02-05 02:48:48 +01:00
parent 451015bb3d
commit 89774b7a87

View file

@ -1,24 +1,28 @@
# Template build file for 'zlib' # Template build file for 'zlib'
pkgname=zlib pkgname=zlib
version=1.2.7 version=1.2.7
homepage="http://www.zlib.net"
distfiles="$homepage/$pkgname-$version.tar.bz2"
build_style=configure
configure_args="--prefix=/usr --shared"
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
configure_args="${configure_args} --64"
fi
make_build_args="CFLAGS=-fPIC"
make_install_args="LDCONFIG="
revision=1 revision=1
bootstrap=yes
subpackages="zlib-devel"
short_desc="A compression/decompression Library" short_desc="A compression/decompression Library"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="zlib" license="zlib"
homepage="http://www.zlib.net"
distfiles="$homepage/$pkgname-$version.tar.bz2"
checksum=49e2e9658dfb036900da6ea0267a737fa3c4eee6666776d378c79d52e9334934 checksum=49e2e9658dfb036900da6ea0267a737fa3c4eee6666776d378c79d52e9334934
long_desc=" long_desc="
This is a general purpose data compression library. All the code This is a general purpose data compression library. All the code
is thread safe. The data format used by the library is described is thread safe. The data format used by the library is described
by RFCs (Request for Comments) 1950 to 1952." by RFCs (Request for Comments) 1950 to 1952."
bootstrap=yes do_configure() {
subpackages="zlib-devel" CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --shared
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} LDCONFIG= install
}