2010-04-29 23:26:15 +00:00
|
|
|
# Template file for 'apr'
|
|
|
|
pkgname=apr
|
2014-08-25 15:32:55 +00:00
|
|
|
version=1.5.1
|
2013-04-12 06:55:23 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-18 09:03:14 +00:00
|
|
|
configure_args="--with-devrandom=/dev/urandom --with-installbuilddir=/usr/share/apr-1/build"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="libuuid-devel"
|
2010-04-29 23:26:15 +00:00
|
|
|
short_desc="Apache Portable Runtime Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-20 11:05:32 +00:00
|
|
|
homepage="http://apr.apache.org/"
|
2011-07-04 10:11:44 +00:00
|
|
|
license="Apache-2.0"
|
2013-04-12 06:55:23 +00:00
|
|
|
distfiles="http://www.apache.org/dist/apr/apr-$version.tar.bz2"
|
2014-08-25 15:32:55 +00:00
|
|
|
checksum=e94abe431d4da48425fcccdb27b469bd0f8151488f82e5630a56f26590e198ac
|
2010-04-29 23:26:15 +00:00
|
|
|
|
2014-02-18 09:03:14 +00:00
|
|
|
pre_build() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-08-25 15:32:55 +00: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 09:03:14 +00:00
|
|
|
fi
|
|
|
|
}
|
2013-07-19 07:15:51 +00:00
|
|
|
|
2013-04-12 06:55:23 +00:00
|
|
|
apr-devel_package() {
|
2014-08-25 15:32:55 +00:00
|
|
|
depends="libtool libuuid-devel apr>=${version}_${revision}"
|
2013-07-19 06:40:10 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share
|
2013-04-19 06:20:17 +00:00
|
|
|
vmove "usr/lib/*.a"
|
2013-07-19 06:40:10 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-19 06:20:17 +00:00
|
|
|
vmove "usr/lib/*.exp"
|
2013-04-12 06:55:23 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
2014-08-25 15:32:55 +00:00
|
|
|
ln -sf /usr/bin/libtool ${PKGDESTDIR}/usr/share/apr-1/build/libtool
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|