m4: update to 1.4.18, fix Mac High Sierra issue
[openadk.git] / package / pcre / Makefile
blob435d5dcb201ec5f6775f885803a1142eef973ff5
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.41
8 PKG_RELEASE:= 1
9 PKG_HASH:= 244838e1f1d14f7e2fa7681b857b3a8566b74215f28133f14a8f5e59241b682c
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/}
14 PKG_LIBNAME:= libpcre
15 PKG_OPTS:= dev
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
35 else
36 CONFIGURE_ARGS+= --disable-cpp
37 endif
39 libpcre-install:
40 ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
41 ${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so* ${IDIR_LIBPCRE}/usr/lib
43 libpcrecpp-install:
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