1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09
10 PKG_DESCR
:= perl compatible regular expression library
11 PKG_SECTION
:= libs
/misc
12 PKG_URL
:= http
://www.pcre.org
/
13 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=pcre
/}
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
19 PKG_SUBPKGS
:= LIBPCRE LIBPCRECPP
20 PKGSD_LIBPCRECPP
:= pcre c
++ library
22 include ${ADK_TOPDIR}/mk
/host.mk
23 include ${ADK_TOPDIR}/mk
/package.mk
25 $(eval
$(call HOST_template
,PCRE
,pcre
,${PKG_VERSION}-${PKG_RELEASE}))
26 $(eval
$(call PKG_template
,LIBPCRE
,libpcre
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
27 $(eval
$(call PKG_template
,LIBPCRECPP
,libpcrecpp
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCRECPP},${PKG_SECTION}))
29 CONFIGURE_ARGS
+= --enable-utf \
30 --enable-unicode-properties
31 XAKE_FLAGS
+= ${TARGET_CONFIGURE_OPTS}
33 ifeq ($(ADK_PACKAGE_LIBPCRECPP
),y
)
34 CONFIGURE_ARGS
+= --enable-cpp
36 CONFIGURE_ARGS
+= --disable-cpp
40 ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr
/lib
41 ${CP} ${WRKINST}/usr
/lib
/libpcre
{,posix
}.so
* ${IDIR_LIBPCRE}/usr
/lib
44 ${INSTALL_DIR} ${IDIR_LIBPCRECPP}/usr
/lib
45 ${CP} ${WRKINST}/usr
/lib
/libpcrecpp.so
* ${IDIR_LIBPCRECPP}/usr
/lib
47 include ${ADK_TOPDIR}/mk
/host-bottom.mk
48 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk