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
:= ccdf7e788769838f8285b3ee672ed573358202305ee361cfec7a4a4fb005bbc7
10 PKG_DESCR
:= perl compatible regular expression library
11 PKG_SECTION
:= libs
/misc
12 PKG_BUILDDEPS
:= gettext-tiny
13 PKG_URL
:= http
://www.pcre.org
/
14 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=pcre
/}
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
20 PKG_SUBPKGS
:= LIBPCRE LIBPCRECPP
21 PKGSD_LIBPCRECPP
:= PCRE c
++ library
23 include ${ADK_TOPDIR}/mk
/host.mk
24 include ${ADK_TOPDIR}/mk
/package.mk
26 $(eval
$(call HOST_template
,PCRE
,pcre
,${PKG_VERSION}-${PKG_RELEASE}))
27 $(eval
$(call PKG_template
,LIBPCRE
,libpcre
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
28 $(eval
$(call PKG_template
,LIBPCRECPP
,libpcrecpp
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCRECPP},${PKG_SECTION}))
30 CONFIGURE_ARGS
+= --enable-utf \
31 --enable-unicode-properties
32 XAKE_FLAGS
+= ${TARGET_CONFIGURE_OPTS}
34 ifeq ($(ADK_PACKAGE_LIBPCRECPP
),y
)
35 CONFIGURE_ARGS
+= --enable-cpp
37 CONFIGURE_ARGS
+= --disable-cpp
41 ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr
/lib
42 ${CP} ${WRKINST}/usr
/lib
/libpcre
{,posix
}.so
* ${IDIR_LIBPCRE}/usr
/lib
45 ${INSTALL_DIR} ${IDIR_LIBPCRECPP}/usr
/lib
46 ${CP} ${WRKINST}/usr
/lib
/libpcrecpp.so
* ${IDIR_LIBPCRECPP}/usr
/lib
48 include ${ADK_TOPDIR}/mk
/host-bottom.mk
49 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk