summaryrefslogtreecommitdiffstats
path: root/apr/Pkgfile
blob: d3832c89e06a4382b40c9598ab3b59f556e51c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Description: Librairie exécutables pour Apache
# URL: http://apr.apache.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: expat, sqlite3, libpostgresql, unixodbc
# Run on: expat,sqlite3

name=apr
version=1.4.5
release=1
utilver=1.3.12
source=(http://mirror.switch.ch/mirror/apache/dist/$name/$name-$version.tar.bz2 \
	http://mirror.switch.ch/mirror/apache/dist/$name/$name-util-$utilver.tar.bz2)

build() {
	cd $name-$version
	./configure --prefix=/usr \
		--with-devrandom=/dev/urandom \
		--infodir=/usr/share/info \
		--with-installbuilddir=/usr/share/apr-1
	make
	make DESTDIR=$PKG install
	cd $SRC/$name-util-$utilver
	./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
}