From 1c74774e2bb69e989c6447a12a1027479bca3619 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Feb 2014 11:43:54 +0100 Subject: [PATCH] apr-util: update to 1.5.3. --- srcpkgs/apr-util/template | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/srcpkgs/apr-util/template b/srcpkgs/apr-util/template index 3d8d3403276..7e31bb92fea 100644 --- a/srcpkgs/apr-util/template +++ b/srcpkgs/apr-util/template @@ -1,27 +1,34 @@ # Template file for 'apr-util' pkgname=apr-util -version=1.3.12 -revision=7 +version=1.5.3 +revision=1 build_style=gnu-configure # XXX: add freetds and unixodbc modules. -configure_args="--with-pgsql --with-mysql --with-sqlite3 --with-ldap ---with-berkeley-db --with-gdbm --with-apr=/usr --without-odbc ---with-expat=/usr --without-oracle" -makedepends="apr-devel db-devel>=5.3 expat-devel gdbm-devel libldap-devel - libmysqlclient-devel postgresql-libs-devel sqlite-devel zlib-devel" +configure_args=" + --with-apr=/usr --with-pgsql --with-ldap --with-expat=${XBPS_CROSS_BASE}/usr + --with-gdbm=${XBPS_CROSS_BASE}/usr --with-sqlite3=${XBPS_CROSS_BASE}/usr + --with-mysql=${XBPS_CROSS_BASE}/usr --with-dbm=db53 --with-berkeley-db + --with-openssl --without-odbc --without-oracle" +hostmakedepends="apr-devel>=1.5" +makedepends="apr-devel>=1.5 db-devel>=5.3 expat-devel gdbm-devel libldap-devel + libmysqlclient-devel postgresql-libs-devel sqlite-devel zlib-devel openssl-devel" short_desc="The Apache Portable Runtime Utility Library" maintainer="Juan RP " homepage="http://apr.apache.org/" license="Apache-2.0" distfiles="http://www.apache.org/dist/apr/${pkgname}-${version}.tar.bz2" -checksum=93976dc2f40d8622c4e9c355f419bb20f2c0dd843ee21a295a092d1c1b950d9c -long_desc=" - APR is Apache's Portable Runtime Library, designed to be a support library - that provides a predictable and consistent interface to underlying - platform-specific implementations. - - APR Util is a utilities library implemented on top of APR, providing database - access, xml parsing, and other useful functionality." +checksum=78edb174f13e25ee15ded2b849b741a248b879a93a77a2d31c20f7e225be3968 + +post_configure() { + if [ "$CROSS_BUILD" ]; then + sed -i -r \ + -e "/^(apr_builddir|apr_builders|top_builddir)=/s:=:=${XBPS_CROSS_BASE}:" \ + -e "/^CC=/s:=.*:=$CC:" \ + -e '/^(C|CPP|CXX|LD)FLAGS=/d' \ + -e '/^LTFLAGS/s:--silent::' \ + build/rules.mk + fi +} post_install() { # remove static libs