- 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>
101 lines
2.4 KiB
Makefile
101 lines
2.4 KiB
Makefile
#
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=pcre
|
|
PKG_VERSION:=8.38
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
|
|
PKG_MD5SUM:=00aabbfe56d5a48b270f999b508c5ad2
|
|
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENCE
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libpcre/default
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
URL:=http://www.pcre.org/
|
|
endef
|
|
|
|
define Package/libpcre
|
|
$(call Package/libpcre/default)
|
|
TITLE:=A Perl Compatible Regular Expression library
|
|
endef
|
|
|
|
define Package/libpcre16
|
|
$(call Package/libpcre/default)
|
|
TITLE:=A Perl Compatible Regular Expression library (16bit support)
|
|
endef
|
|
|
|
define Package/libpcrecpp
|
|
$(call Package/libpcre/default)
|
|
TITLE:=C++ wrapper for Perl Compatible Regular Expression library
|
|
DEPENDS:=+libpcre +libstdcpp
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
CONFIGURE_ARGS += \
|
|
--enable-utf8 \
|
|
--enable-unicode-properties \
|
|
--enable-pcre16 \
|
|
|
|
ifneq ($(CONFIG_PACKAGE_libpcrecpp),)
|
|
CONFIGURE_ARGS+= --enable-cpp
|
|
else
|
|
CONFIGURE_ARGS+= --disable-cpp
|
|
endif
|
|
|
|
MAKE_FLAGS += \
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pcre-config $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(2)/bin
|
|
$(LN) $(STAGING_DIR)/usr/bin/pcre-config $(2)/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/pcre*.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre*.{a,so*} $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcre*.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libpcre/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre.so $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libpcre16/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre16.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libpcrecpp/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcrecpp.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libpcre))
|
|
$(eval $(call BuildPackage,libpcre16))
|
|
$(eval $(call BuildPackage,libpcrecpp))
|