Commit | Line | Data |
---|---|---|
d6890e50 JB |
1 | # Description: Apache Portable Runtime library |
2 | # URL: http://apr.apache.org/ | |
3 | # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de | |
4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
5 | # Depends on: util-linux-ng expat db gdbm | |
6 | ||
7 | name=apr | |
8 | version=1.4.2 | |
9 | release=2 | |
10 | source=(http://www.apache.org/dist/$name/$name-$version.tar.bz2 \ | |
11 | http://www.apache.org/dist/$name/$name-util-1.3.10.tar.bz2) | |
12 | ||
13 | build(){ | |
14 | cd $name-$version | |
15 | ||
16 | echo "ac_cv_file__dev_zero=yes" > config.cache | |
17 | echo "ac_cv_func_setpgrp_void=no" >> config.cache | |
18 | echo "ac_cv_define_PTHREAD_PROCESS_SHARED=no" >> config.cache | |
19 | echo "apr_cv_mutex_robust_shared=no" >> config.cache | |
20 | echo "ac_cv_tcp_nodelay_inherited=no" >> config.cache | |
21 | echo "ac_cv_o_nonblock_inherited=no" >> config.cache | |
22 | echo "apr_cv_tcp_nodelay_with_cork=no" >> config.cache | |
23 | echo "ac_cv_sizeof_struct_iovec=yes" >> config.cache | |
24 | ||
25 | ./configure --build=$CHOST \ | |
26 | --host=$CTARGET \ | |
27 | --prefix=/usr \ | |
28 | --with-installbuilddir=/usr/share/apr-1 \ | |
29 | --cache-file=config.cache | |
30 | ||
31 | sed -i Makefile \ | |
32 | -e "s|-L/usr|-L$CLFS/usr|g" \ | |
33 | -e "s|-I/usr|-I$CLFS/usr|g" | |
34 | ||
35 | make | |
36 | make DESTDIR=$PKG install | |
37 | ||
38 | cd $SRC/$name-util-1.3.10 | |
39 | ./configure --build=$CHOST \ | |
40 | --host=$CTARGET \ | |
41 | --prefix=/usr \ | |
42 | --with-apr=$SRC/$name-$version \ | |
43 | --with-expat=$CLFS/usr \ | |
44 | --with-berkeley-db=$CLFS/usr \ | |
45 | --with-gdbm=$CLFS/usr \ | |
46 | --without-sqlite3 \ | |
47 | --disable-util-dso | |
48 | ||
49 | ||
50 | sed -i Makefile \ | |
51 | -e '/APRUTIL_LIBS/ s/ldb-5\.0/ldb-4\.7/' \ | |
52 | -e "s|-L/usr|-L$CLFS/usr|g" \ | |
53 | -e "s|-I/usr|-I$CLFS/usr|g" | |
54 | ||
55 | make | |
56 | make DESTDIR=$PKG install | |
57 | ||
58 | sed -i -r "/^APR_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apr-1-config | |
59 | sed -i -r "/^APU_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apu-1-config | |
60 | rm -r $PKG/usr/lib/*.exp | |
61 | } |