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
9 PKG_HASH
:= 131f06d16d7aabd097fa992a33eec2b6af3962f93e6d570a9bd4d85e95993172
10 PKG_DESCR
:= apache portable runtime library
11 PKG_SECTION
:= libs
/misc
13 PKG_URL
:= http
://apr.apache.org
/
14 PKG_SITES
:= http
://www.apache.org
/dist/apr
/
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
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 \
38 ifneq (${ADK_PACKAGE_APR_WITH_IPV6},)
39 CONFIGURE_ARGS
+= --enable-ipv6
41 CONFIGURE_ARGS
+= --disable-ipv6
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
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