Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,APR,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. # uClibc setpgrp does not take arguments
  16. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  17. CONFIGURE_ENV+= ac_cv_sizeof_size_t=4
  18. CONFIGURE_ENV+= ac_cv_sizeof_ssize_t=4
  19. CONFIGURE_ENV+= ac_cv_file__dev_zero=yes
  20. CONFIGURE_ENV+= apr_cv_process_shared_works=no
  21. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  22. CONFIGURE_ENV+= apr_cv_tcp_nodelay_with_cork=no
  23. CONFIGURE_ARGS+= --with-devrandom=/dev/urandom
  24. CONFIGURE_ARGS+= --enable-threads
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_APR}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libapr-1.so* ${IDIR_APR}/usr/lib/
  28. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/build-1
  29. ${CP} ${WRKINST}/usr/share/build-1/* ${STAGING_DIR}/usr/share/build-1/
  30. # we need to patch paths to get apr-util compiling
  31. $(SED) "s,\(^installbuilddir=\"\)\(.*\),\1${STAGING_DIR}\2," \
  32. ${WRKINST}/usr/bin/apr-1-config
  33. $(SED) "s,\(^datadir=\"\)\(.*\),\1${STAGING_DIR}\2," \
  34. ${WRKINST}/usr/bin/apr-1-config
  35. include ${TOPDIR}/mk/pkg-bottom.mk