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.

101 lines
2.4 KiB

pcre: Integrate pending patches for next upstream version 8.39 - Fix auto-callout (http://vcs.pcre.org/viewvc?view=rev&revision=1611) - Fix negated POSIX class within negated overall class UCP (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1612 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Fix bug for isolated \E between an item and its qualifier when auto callout is set. (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1613 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Give error for regexec with pmatch=NULL and REG_STARTEND set (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1614 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Fix \Q\E before qualifier bug when auto callouts are (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1616 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Fix /x bug when pattern starts with white space and (?-x) (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1617 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Fix copy named substring bug. (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1618 2f5784b3-3f2a-0410-8824-cb99058d5e15) - Fix (by hacking) another length computation issue. (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1619 2f5784b3-3f2a-0410-8824-cb99058d5e15 - Fix get_substring_list() bug when \K is used in an assertion. (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1620 2f5784b3-3f2a-0410-8824-cb99058d5e15 - Fix pcretest bad behaviour for callout in lookbehind. (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1625 2f5784b3-3f2a-0410-8824-cb99058d5e15 - Fix workspace overflow for (*ACCEPT) with deeply nested (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1631 2f5784b3-3f2a-0410-8824-cb99058d5e15 fixes CVE-2016-3191 - Fix Yet another duplicate name bugfix by overestimating the memory needed (i.e. another hack - PCRE2 has this "properly" fixed). (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1636 2f5784b3-3f2a-0410-8824-cb99058d5e15 - Fix pcretest loop for global matching with an ovector size (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1637 2f5784b3-3f2a-0410-8824-cb99058d5e15 Signed-off-by: heil <heil@terminal-consulting.de>
9 years ago
  1. #
  2. # Copyright (C) 2006-2015 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:=pcre
  9. PKG_VERSION:=8.38
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
  13. PKG_MD5SUM:=00aabbfe56d5a48b270f999b508c5ad2
  14. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENCE
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libpcre/default
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. URL:=http://www.pcre.org/
  24. endef
  25. define Package/libpcre
  26. $(call Package/libpcre/default)
  27. TITLE:=A Perl Compatible Regular Expression library
  28. endef
  29. define Package/libpcre16
  30. $(call Package/libpcre/default)
  31. TITLE:=A Perl Compatible Regular Expression library (16bit support)
  32. endef
  33. define Package/libpcrecpp
  34. $(call Package/libpcre/default)
  35. TITLE:=C++ wrapper for Perl Compatible Regular Expression library
  36. DEPENDS:=+libpcre +libstdcpp
  37. endef
  38. TARGET_CFLAGS += $(FPIC)
  39. CONFIGURE_ARGS += \
  40. --enable-utf8 \
  41. --enable-unicode-properties \
  42. --enable-pcre16 \
  43. ifneq ($(CONFIG_PACKAGE_libpcrecpp),)
  44. CONFIGURE_ARGS+= --enable-cpp
  45. else
  46. CONFIGURE_ARGS+= --disable-cpp
  47. endif
  48. MAKE_FLAGS += \
  49. CFLAGS="$(TARGET_CFLAGS)"
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pcre-config $(1)/usr/bin/
  53. $(INSTALL_DIR) $(2)/bin
  54. $(LN) $(STAGING_DIR)/usr/bin/pcre-config $(2)/bin
  55. $(INSTALL_DIR) $(1)/usr/include
  56. $(CP) $(PKG_INSTALL_DIR)/usr/include/pcre*.h $(1)/usr/include/
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre*.{a,so*} $(1)/usr/lib/
  59. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcre*.pc $(1)/usr/lib/pkgconfig/
  61. endef
  62. define Package/libpcre/install
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(1)/usr/lib/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre.so $(1)/usr/lib/
  66. endef
  67. define Package/libpcre16/install
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre16.so* $(1)/usr/lib/
  70. endef
  71. define Package/libpcrecpp/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcrecpp.so.* $(1)/usr/lib/
  74. endef
  75. $(eval $(call BuildPackage,libpcre))
  76. $(eval $(call BuildPackage,libpcre16))
  77. $(eval $(call BuildPackage,libpcrecpp))