2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Apache Portable Runtime library
|
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
|
# URL: http://apr.apache.org/
|
2006-02-24 07:59:47 +00:00
|
|
|
|
# Depends on: expat, db, gdbm
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=apr
|
2006-04-14 16:26:20 +00:00
|
|
|
|
version=0.9.12
|
2006-02-23 15:26:10 +00:00
|
|
|
|
release=1
|
2006-02-24 07:59:47 +00:00
|
|
|
|
source=(http://www.apache.org/dist/$name/$name-$version.tar.bz2 \
|
|
|
|
|
http://www.apache.org/dist/$name/$name-util-$version.tar.bz2)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build(){
|
2006-02-24 07:59:47 +00:00
|
|
|
|
cd $name-$version
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--with-installbuilddir=/usr/share/apr-0
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
2006-02-24 07:59:47 +00:00
|
|
|
|
cd $SRC/$name-util-$version
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--with-apr=$SRC/$name-$version \
|
|
|
|
|
--with-expat=/usr \
|
|
|
|
|
--with-berkeley-db=/usr
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
2006-02-24 07:59:47 +00:00
|
|
|
|
sed -i -r "/^APR_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apr-config
|
|
|
|
|
sed -i -r "/^APU_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apu-config
|
|
|
|
|
sed -i "/^apr_/s|$SRC|/usr/share/apr-0|" $PKG/usr/share/apr-0/apr_rules.mk
|
|
|
|
|
|
|
|
|
|
rm -r $PKG/usr/lib/*.exp
|
|
|
|
|
chown -R root:root $PKG
|
2006-02-23 15:26:10 +00:00
|
|
|
|
}
|