root/trunk/freewrt/package/apr/Makefile

Revision 3318, 1.6 kB (checked in by austriancoder, 1 year ago)

add 'Depends: ...' only if needed

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:=           0.9.14
11 PKG_RELEASE:=           2
12 PKG_MD5SUM:=            4ece501c0ae86403db8b4942d7e3458c
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_ARGS+=        --with-devrandom=/dev/urandom
25
26 ifeq (${FWRT_PACKAGE_APR_THREADING},y)
27 CONFIGURE_ARGS+=        --enable-threads
28 else
29 CONFIGURE_ARGS+=        --disable-threads
30 endif
31
32 BUILD_STYLE:=           auto
33 INSTALL_STYLE:=         auto
34
35 post-install:
36         ${INSTALL_DIR} ${IDIR_APR}/usr/lib
37         ${CP} ${WRKINST}/usr/lib/libapr-0.so* ${IDIR_APR}/usr/lib/
38
39         ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build
40         ${CP} ${WRKINST}/usr/share/build/* ${STAGING_DIR}/usr/share/build/
41
42         # we need to patch paths to get apr-util compiling
43         printf '%s\n%s\n%s\n%s\n%s\nwq\n' \
44             '/^installbuilddir="/s##&${STAGING_DIR}/#' \
45             '/^libdir="/s##&${STAGING_DIR}/#' \
46             '/^datadir="/s##&${STAGING_DIR}/#' \
47             '/^includedir="/s##&${STAGING_DIR}/#' \
48             '/^bindir="/s##&${STAGING_DIR}/#' | \
49             ed -s ${WRKINST}/usr/bin/apr-config
50 ifeq (${FWRT_PACKAGE_APR_THREADING},y)
51         echo 'Depends: libpthread' >> ${IDIR_APR}/CONTROL/control
52 endif
53
54 include ${TOPDIR}/mk/pkg-bottom.mk
55
Note: See TracBrowser for help on using the browser.