Makefile 1.7 KB

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