2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_HASH
:=19108658b23b3ec5058edc9f66ac545ea19f9537234be1ec62b714c84399366d
18 PKG_MAINTAINER
:=Thomas Heil
<heil@terminal-consulting.de
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=LICENCE
21 PKG_CPE_ID
:=cpe
:/a
:pcre
:pcre
27 CONFIG_PACKAGE_libpcrecpp \
28 CONFIG_PCRE_JIT_ENABLED
30 include $(INCLUDE_DIR
)/uclibc
++.mk
31 include $(INCLUDE_DIR
)/package.mk
33 define Package
/libpcre
/default
36 URL
:=https
://www.pcre.org
/
39 define Package
/libpcre
/config
40 source
"$(SOURCE)/Config.in"
43 define Package
/libpcre
44 $(call Package
/libpcre
/default
)
45 TITLE
:=A Perl Compatible Regular Expression library
48 define Package
/libpcre16
49 $(call Package
/libpcre
/default
)
50 TITLE
:=A Perl Compatible Regular Expression library
(16bit support
)
53 define Package
/libpcre32
54 $(call Package
/libpcre
/default
)
55 TITLE
:=A Perl Compatible Regular Expression library
(32bit support
)
58 define Package
/libpcrecpp
59 $(call Package
/libpcre
/default
)
60 TITLE
:=C
++ wrapper for Perl Compatible Regular Expression library
61 DEPENDS
:=+libpcre
$(CXX_DEPENDS
)
64 TARGET_CFLAGS
+= $(FPIC
)
68 --enable-unicode-properties \
71 $(if
$(CONFIG_PCRE_JIT_ENABLED
),--enable-jit
,--disable-jit
) \
72 --with-match-limit-recursion
=16000 \
73 $(if
$(CONFIG_PACKAGE_libpcrecpp
),--enable
,--disable
)-cpp
76 CFLAGS
="$(TARGET_CFLAGS)"
78 define Build
/InstallDev
79 $(INSTALL_DIR
) $(1)/usr
/bin
80 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pcre-config
$(1)/usr
/bin
/
82 $(INSTALL_DIR
) $(2)/bin
83 $(LN
) $(STAGING_DIR
)/usr
/bin
/pcre-config
$(2)/bin
85 $(INSTALL_DIR
) $(1)/usr
/include
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/pcre
*.h
$(1)/usr
/include/
88 $(INSTALL_DIR
) $(1)/usr
/lib
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcre
*.
{a
,so
*} $(1)/usr
/lib
/
91 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libpcre
*.
pc $(1)/usr
/lib
/pkgconfig
/
95 define Package
/libpcre
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcre
{,posix
}.so.
* $(1)/usr
/lib
/
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcre.so
$(1)/usr
/lib
/
101 define Package
/libpcre16
/install
102 $(INSTALL_DIR
) $(1)/usr
/lib
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcre16.so
* $(1)/usr
/lib
/
106 define Package
/libpcre32
/install
107 $(INSTALL_DIR
) $(1)/usr
/lib
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcre32.so
* $(1)/usr
/lib
/
111 define Package
/libpcrecpp
/install
112 $(INSTALL_DIR
) $(1)/usr
/lib
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcrecpp.so.
* $(1)/usr
/lib
/
116 $(eval
$(call BuildPackage
,libpcre
))
117 $(eval
$(call BuildPackage
,libpcre16
))
118 $(eval
$(call BuildPackage
,libpcre32
))
119 $(eval
$(call BuildPackage
,libpcrecpp
))