Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_SUBPKGS:= APR APR_DEV
  14. PKGSC_APR_DEV:= devel
  15. PKGSD_APR_DEV:= apr headers
  16. PKG_FLAVOURS_APR:= WITH_IPV6
  17. PKGFD_WITH_IPV6:= enable IPv6 support
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,APR,apr,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,APR_DEV,apr-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_APR_DEV},${PKGSC_APR_DEV}))
  21. # uClibc setpgrp does not take arguments
  22. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  23. CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
  24. CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
  25. CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
  26. CONFIGURE_ENV+= apr_cv_process_shared_works=no
  27. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  28. CONFIGURE_ENV+= apr_cv_tcp_nodelay_with_cork=no
  29. CONFIGURE_ARGS+= --with-devrandom=/dev/urandom \
  30. --enable-threads
  31. ifneq (${ADK_PACKAGE_APR_WITH_IPV6},)
  32. CONFIGURE_ARGS+= --enable-ipv6
  33. else
  34. CONFIGURE_ARGS+= --disable-ipv6
  35. endif
  36. post-build:
  37. # we need to patch paths to get apr-util compiling
  38. $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_DIR}\2," \
  39. ${WRKBUILD}/apr-1-config
  40. $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_DIR}\2," \
  41. ${WRKBUILD}/apr-1-config
  42. apr-install:
  43. ${INSTALL_DIR} ${IDIR_APR}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
  45. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build-1
  46. ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_DIR}/usr/share/build-1/
  47. apr-dev-install:
  48. ${INSTALL_DIR} ${IDIR_APR_DEV}/usr/include
  49. ${CP} ${WRKINST}/usr/include/* ${IDIR_APR_DEV}/usr/include
  50. include ${TOPDIR}/mk/pkg-bottom.mk