opt/apr/Pkgfile

34 lines
1021 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Apache Portable Runtime library
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# URL: http://apr.apache.org/
# Depends on: util-linux, expat, db, gdbm
2006-02-23 16:26:10 +01:00
name=apr
2019-04-09 14:27:49 +02:00
version=1.7.0
2015-04-30 11:36:54 +02:00
release=1
source=(http://www.apache.org/dist/$name/$name-$version.tar.bz2 \
2017-10-23 15:18:05 +02:00
http://www.apache.org/dist/$name/$name-util-1.6.1.tar.bz2)
2006-02-23 16:26:10 +01:00
build(){
cd $name-$version
./configure --prefix=/usr \
2006-11-25 16:06:31 +01:00
--with-installbuilddir=/usr/share/apr-1
make
2014-04-25 17:33:14 +02:00
make -j1 DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
2017-10-23 15:18:05 +02:00
cd $SRC/$name-util-1.6.1
./configure --prefix=/usr \
--with-apr=$SRC/$name-$version \
--with-expat=/usr \
2006-11-25 16:06:31 +01:00
--with-berkeley-db=/usr \
2008-10-23 14:41:06 +02:00
--with-gdbm=/usr \
2009-06-05 18:42:40 +02:00
--without-sqlite3 \
--disable-util-dso
make
make DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
2006-11-25 16:06:31 +01:00
sed -i -r "/^APR_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apr-1-config
sed -i -r "/^APU_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apu-1-config
rm -r $PKG/usr/lib/*.exp
2006-02-23 16:26:10 +01:00
}