root/trunk/freewrt/package/apr/Makefile

Revision 3861, 1.7 kB (checked in by sumsum, 3 years ago)

Update Apache Portable Runtime to the newest version.
This is required for subversion 1.6.x
configureargs are required for cross compile here *and* in subversion.

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8
9 PKG_NAME:=              apr
10 PKG_VERSION:=           1.3.3
11 PKG_RELEASE:=           3
12 PKG_MD5SUM:=            b254a9abecaedb05efde71daa7517480
13 MASTER_SITES:=          http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/
14
15 include ${TOPDIR}/mk/package.mk
16
17 $(eval $(call PKG_template,APR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
18
19 CONFIGURE_STYLE:=       gnu
20 CONFIGURE_ENV+=         ac_cv_func_setpgrp_void=no
21 CONFIGURE_ENV+=         ac_cv_sizeof_size_t=4
22 CONFIGURE_ENV+=         ac_cv_sizeof_ssize_t=4
23 CONFIGURE_ENV+=         ac_cv_file__dev_zero=yes
24 CONFIGURE_ENV+=         apr_cv_tcp_nodelay_with_cork=no
25 CONFIGURE_ENV+=         ac_cv_sizeof_off_t='4' \
26                         ac_cv_sizeof_pid_t='4'
27 CONFIGURE_ARGS+=        --with-devrandom=/dev/urandom
28
29
30 ifeq (${FWRT_PACKAGE_APR_THREADING},y)
31 CONFIGURE_ARGS+=        --enable-threads
32 else
33 CONFIGURE_ARGS+=        --disable-threads
34 endif
35
36 BUILD_STYLE:=           auto
37 INSTALL_STYLE:=         auto
38
39 post-install:
40         ${INSTALL_DIR} ${IDIR_APR}/usr/lib
41         ${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
42
43         ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build-1
44         ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_DIR}/usr/share/build-1/
45
46         # we need to patch paths to get apr-util compiling
47         printf '%s\n%s\n%s\n%s\n%s\nwq\n' \
48             '/^installbuilddir="/s##&${STAGING_DIR}/#' \
49             '/^libdir="/s##&${STAGING_DIR}/#' \
50             '/^datadir="/s##&${STAGING_DIR}/#' \
51             '/^includedir="/s##&${STAGING_DIR}/#' \
52             '/^bindir="/s##&${STAGING_DIR}/#' | \
53             ed -s ${WRKINST}/usr/bin/apr-1-config
54 ifeq (${FWRT_PACKAGE_APR_THREADING},y)
55         echo 'Depends: libpthread' >> ${IDIR_APR}/CONTROL/control
56 endif
57
58 include ${TOPDIR}/mk/pkg-bottom.mk
59
Note: See TracBrowser for help on using the browser.