2010-04-30 01:26:15 +02:00
|
|
|
# Template file for 'apr'
|
|
|
|
pkgname=apr
|
2015-04-29 07:04:10 +02:00
|
|
|
version=1.5.2
|
2015-06-22 23:24:16 +02:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2015-05-11 16:28:32 +02:00
|
|
|
configure_args="--with-installbuilddir=/usr/share/apr-1/build"
|
2015-06-22 23:24:16 +02:00
|
|
|
makedepends="expat-devel libuuid-devel"
|
2010-04-30 01:26:15 +02:00
|
|
|
short_desc="Apache Portable Runtime Library"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-03-20 12:05:32 +01:00
|
|
|
homepage="http://apr.apache.org/"
|
2011-07-04 12:11:44 +02:00
|
|
|
license="Apache-2.0"
|
2013-04-12 08:55:23 +02:00
|
|
|
distfiles="http://www.apache.org/dist/apr/apr-$version.tar.bz2"
|
2015-04-29 07:04:10 +02:00
|
|
|
checksum=7d03ed29c22a7152be45b8e50431063736df9e1daa1ddf93f6a547ba7a28f67a
|
2010-04-30 01:26:15 +02:00
|
|
|
|
2014-02-18 10:03:14 +01:00
|
|
|
pre_build() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-08-25 17:32:55 +02:00
|
|
|
sed -i "/LINK_PROG.*OBJECTS_gen_test_char/s|.*|\t${BUILD_CC} ${BUILD_CFLAGS} tools/gen_test_char.c -o tools/gen_test_char|" Makefile
|
2014-02-18 10:03:14 +01:00
|
|
|
fi
|
|
|
|
}
|
2013-07-19 09:15:51 +02:00
|
|
|
|
2013-04-12 08:55:23 +02:00
|
|
|
apr-devel_package() {
|
2014-08-25 17:32:55 +02:00
|
|
|
depends="libtool libuuid-devel apr>=${version}_${revision}"
|
2013-07-19 08:40:10 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
2013-04-19 08:20:17 +02:00
|
|
|
vmove "usr/lib/*.a"
|
2013-07-19 08:40:10 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-19 08:20:17 +02:00
|
|
|
vmove "usr/lib/*.exp"
|
2015-06-22 23:24:16 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
2014-08-25 17:32:55 +02:00
|
|
|
ln -sf /usr/bin/libtool ${PKGDESTDIR}/usr/share/apr-1/build/libtool
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|