Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:= 0.9.17
  6. PKG_RELEASE:= 1
  7. ifeq ($(ADK_PACKAGE_APR_THREADING),y)
  8. PKG_BUILDDEP+= libpthread
  9. endif
  10. PKG_MD5SUM:= ca1e22d98081a03a33c2a0b8684eb192
  11. PKG_DESCR:= Apache Portable Runtime library
  12. PKG_SECTION:= libs
  13. PKG_URL:= http://apr.apache.org
  14. PKG_SITES:= http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/
  15. PKG_FLAVOURS= THREADING
  16. PKGFD_FULL= Enable threading support
  17. include ${TOPDIR}/mk/package.mk
  18. ifeq (${ADK_PACKAGE_APR_THREADING},y)
  19. PKG_DEPENDS:= libpthread
  20. endif
  21. $(eval $(call PKG_template,APR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIGURE_STYLE:= gnu
  23. # uClibc setpgrp does not take arguments
  24. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  25. CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
  26. CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
  27. CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
  28. CONFIGURE_ENV+= apr_cv_process_shared_works=no
  29. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  30. CONFIGURE_ARGS+= --with-devrandom=/dev/urandom
  31. ifeq (${ADK_PACKAGE_APR_THREADING},y)
  32. CONFIGURE_ARGS+= --enable-threads
  33. else
  34. CONFIGURE_ARGS+= --disable-threads
  35. endif
  36. BUILD_STYLE:= auto
  37. INSTALL_STYLE:= auto
  38. post-install:
  39. ${INSTALL_DIR} ${IDIR_APR}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libapr-0.so* ${IDIR_APR}/usr/lib/
  41. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build
  42. ${CP} ${WRKINST}/usr/share/build/* ${STAGING_DIR}/usr/share/build/
  43. # we need to patch paths to get apr-util compiling
  44. $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_DIR}\2," ${WRKINST}/usr/bin/apr-config
  45. $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_DIR}\2," ${WRKINST}/usr/bin/apr-config
  46. include ${TOPDIR}/mk/pkg-bottom.mk