irssi: update to 1.0.2
[openadk.git] / package / apr / Makefile
blobf7bebeccd3898369f599bff6ac33aec6abe19d32
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= apr
7 PKG_VERSION:= 1.5.2
8 PKG_RELEASE:= 1
9 PKG_HASH:= 1af06e1720a58851d90694a984af18355b65bb0d047be03ec7d659c746d6dbdb
10 PKG_DESCR:= apache portable runtime library
11 PKG_SECTION:= libs/misc
12 PKG_NEEDS:= threads
13 PKG_URL:= http://apr.apache.org/
14 PKG_SITES:= http://mirrors.ibiblio.org/apache//apr/
15 PKG_OPTS:= dev
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 PKG_FLAVOURS_APR:= WITH_IPV6
20 PKGFD_WITH_IPV6:= enable IPv6 support
22 include ${ADK_TOPDIR}/mk/package.mk
24 $(eval $(call PKG_template,APR,apr,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
26 # uClibc setpgrp does not take arguments
27 CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
28 CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
29 CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
30 CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
31 CONFIGURE_ENV+= apr_cv_process_shared_works=no
32 CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
33 CONFIGURE_ENV+= apr_cv_tcp_nodelay_with_cork=no
34 CONFIGURE_ENV+= supports_anon_versioning=no
35 CONFIGURE_ARGS+= --with-devrandom=/dev/urandom \
36 --enable-threads
38 ifneq (${ADK_PACKAGE_APR_WITH_IPV6},)
39 CONFIGURE_ARGS+= --enable-ipv6
40 else
41 CONFIGURE_ARGS+= --disable-ipv6
42 endif
44 pre-build:
45 # we need to patch paths to get apr-util compiling
46 $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
47 ${WRKBUILD}/apr-1-config
48 $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
49 ${WRKBUILD}/apr-1-config
51 apr-install:
52 ${INSTALL_DIR} ${IDIR_APR}/usr/lib
53 ${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
54 ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/build-1
55 ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_TARGET_DIR}/usr/share/build-1/
57 include ${ADK_TOPDIR}/mk/pkg-bottom.mk