void-packages/srcpkgs/apr-util/template

96 lines
2.4 KiB
Plaintext
Raw Normal View History

# Template file for 'apr-util'
pkgname=apr-util
2014-02-18 11:43:54 +01:00
version=1.5.3
revision=1
build_style=gnu-configure
# XXX: add freetds and unixodbc modules.
2014-02-18 11:43:54 +01:00
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 <xtraeme@gmail.com>"
homepage="http://apr.apache.org/"
license="Apache-2.0"
distfiles="http://www.apache.org/dist/apr/${pkgname}-${version}.tar.bz2"
2014-02-18 11:43:54 +01:00
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
find ${DESTDIR} -type f -name \*.a -delete
}
apr-util-db_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - Berkeley DB module"
pkg_install() {
vmove "usr/lib/apr-util-1/apr_dbm_db*"
}
}
2013-04-16 10:00:19 +02:00
apr-util-devel_package() {
depends="apr-devel expat-devel libldap-devel ${sourcepkg}>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - development files"
2013-04-16 10:00:19 +02:00
pkg_install() {
vmove usr/bin
vmove usr/include
vmove "usr/lib/*.exp"
vmove usr/lib/pkgconfig
}
}
apr-util-gdbm_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - GDBM module"
pkg_install() {
vmove "usr/lib/apr-util-1/apr_dbm_gdbm*"
}
}
2013-04-16 10:00:19 +02:00
apr-util-ldap_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - LDAP support"
pkg_install() {
2013-04-16 10:01:47 +02:00
vmove "usr/lib/apr-util-1/apr_ldap*"
}
}
apr-util-mysql_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - MySQL module"
pkg_install() {
vmove "usr/lib/apr-util-1/apr_dbd_mysql*"
}
}
apr-util-pgsql_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - PostgreSQL module"
pkg_install() {
vmove "usr/lib/apr-util-1/apr_dbd_pgsql*"
}
}
2013-04-16 10:00:19 +02:00
apr-util-sqlite_package() {
depends="apr-util>=${version}"
2013-05-09 16:26:34 +02:00
short_desc+=" - SQLite module"
pkg_install() {
2013-04-16 10:00:19 +02:00
vmove "usr/lib/apr-util-1/apr_dbd_sqlite*"
}
}