harfbuzz: update to 1.3.3
[openadk.git] / package / pcre / Makefile
blob54995240ba6c175b3cbc791f2f309a521eb3e5cf
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
6 PKG_NAME:= pcre
7 PKG_VERSION:= 8.39
8 PKG_RELEASE:= 1
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/}
15 PKG_LIBNAME:= libpcre
16 PKG_OPTS:= dev
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
36 else
37 CONFIGURE_ARGS+= --disable-cpp
38 endif
40 libpcre-install:
41 ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
42 ${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so* ${IDIR_LIBPCRE}/usr/lib
44 libpcrecpp-install:
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