32 lines
954 B
Plaintext
32 lines
954 B
Plaintext
# Description: Apache Portable Runtime library
|
|
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
|
# URL: http://apr.apache.org/
|
|
# Depends on: expat, db, gdbm
|
|
|
|
name=apr
|
|
version=1.2.11
|
|
release=1
|
|
source=(http://www.apache.org/dist/$name/$name-$version.tar.bz2 \
|
|
http://www.apache.org/dist/$name/$name-util-1.2.10.tar.bz2)
|
|
|
|
build(){
|
|
cd $name-$version
|
|
./configure --prefix=/usr \
|
|
--with-installbuilddir=/usr/share/apr-1
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
cd $SRC/$name-util-1.2.10
|
|
./configure --prefix=/usr \
|
|
--with-apr=$SRC/$name-$version \
|
|
--with-expat=/usr \
|
|
--with-berkeley-db=/usr \
|
|
--with-gdbm=/usr
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
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
|
|
}
|