You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2007-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=apr
  9. PKG_VERSION:=1.6.5
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@APACHE/apr/
  13. PKG_HASH:=a67ca9fcf9c4ff59bce7f428a323c8b5e18667fdea7b0ebad47d194371b0a105
  14. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>, \
  15. Sebastian Kemper <sebastian_ml@gmx.net>
  16. PKG_LICENSE:=Apache-2.0
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_CPE_ID:=cpe:/a:apache:apr
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libapr
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+libpthread +librt +libuuid
  27. TITLE:=Apache Portable Runtime Library
  28. URL:=https://apr.apache.org/
  29. endef
  30. CONFIGURE_ARGS += \
  31. --with-devrandom=/dev/urandom \
  32. $(call autoconf_bool,CONFIG_IPV6,ipv6)
  33. # XXX: ac_cv_sizeof_struct_iovec=1 is just to trick configure
  34. CONFIGURE_VARS += \
  35. ac_cv_file__dev_zero=yes \
  36. ac_cv_func_pthread_mutexattr_setpshared=yes \
  37. ac_cv_func_sem_open=yes \
  38. ac_cv_func_setpgrp_void=yes \
  39. ac_cv_o_nonblock_inherited=no \
  40. ac_cv_sizeof_struct_iovec=1 \
  41. ac_cv_struct_rlimit=yes \
  42. apr_cv_accept4=yes \
  43. apr_cv_dup3=yes \
  44. apr_cv_epoll=yes \
  45. apr_cv_epoll_create1=yes \
  46. apr_cv_mutex_recursive=yes \
  47. apr_cv_mutex_robust_shared=yes \
  48. apr_cv_process_shared_works=yes \
  49. apr_cv_sock_cloexec=yes \
  50. apr_cv_tcp_nodelay_with_cork=yes \
  51. apr_cv_use_lfs64=yes
  52. define Build/InstallDev
  53. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include/apr-1 \
  54. $(1)/usr/lib/pkgconfig $(1)/usr/share/build-1
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/apr-1-config \
  56. $(1)/usr/bin
  57. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/apr-1/* \
  58. $(1)/usr/include/apr-1
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libapr-1.{a,so*} $(1)/usr/lib
  60. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/apr-1.pc \
  61. $(1)/usr/lib/pkgconfig
  62. $(CP) $(PKG_INSTALL_DIR)/usr/share/build-1/* $(1)/usr/share/build-1
  63. $(SED) '/^prefix=\|^exec_prefix=/s|/usr|$(STAGING_DIR)/usr|' \
  64. $(1)/usr/bin/apr-1-config
  65. $(SED) '/^datadir=/s|/usr|$$$${prefix}|' $(1)/usr/bin/apr-1-config
  66. $(SED) 's,/usr/share/build-1,$(STAGING_DIR)/usr/share/build-1,g' \
  67. $(1)/usr/share/build-1/apr_rules.mk
  68. endef
  69. define Package/libapr/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libapr-1.so.* $(1)/usr/lib
  72. endef
  73. $(eval $(call BuildPackage,libapr))