binutils: update to 2.43.1
[openadk.git] / package / pcre / Makefile
blobc9814fbaec6bfb51bbd41f37404f5717939d6098
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.45
8 PKG_RELEASE:= 1
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/}
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