Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= apr
  5. PKG_VERSION:= 1.4.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= fc80cb54f158c2674f9eeb47a1f672cd
  8. PKG_DESCR:= Apache Portable Runtime library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://apr.apache.org/
  12. PKG_SITES:= http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/
  13. PKG_FLAVOURS_APR:= WITH_IPV6
  14. PKGFD_WITH_IPV6:= enable IPv6 support
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,APR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. # uClibc setpgrp does not take arguments
  18. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  19. CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
  20. CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
  21. CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
  22. CONFIGURE_ENV+= apr_cv_process_shared_works=no
  23. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  24. CONFIGURE_ENV+= apr_cv_tcp_nodelay_with_cork=no
  25. CONFIGURE_ARGS+= --with-devrandom=/dev/urandom \
  26. --enable-threads
  27. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  28. CONFIGURE_ARGS+= --enable-ipv6
  29. else
  30. CONFIGURE_ARGS+= --disable-ipv6
  31. endif
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_APR}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
  35. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/build-1
  36. ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_TARGET_DIR}/usr/share/build-1/
  37. # we need to patch paths to get apr-util compiling
  38. $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
  39. ${WRKINST}/usr/bin/apr-1-config
  40. $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_TARGET_DIR}\2," \
  41. ${WRKINST}/usr/bin/apr-1-config
  42. include ${TOPDIR}/mk/pkg-bottom.mk