Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= pcre
  5. PKG_VERSION:= 8.34
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= eb34b2c9c727fd64940d6fd9a00995eb
  8. PKG_DESCR:= perl compatible regular expression library
  9. PKG_SECTION:= libs/misc
  10. PKG_BUILDDEPS:= gettext-tiny
  11. PKG_URL:= http://www.pcre.org/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=pcre/}
  13. PKG_LIBNAME:= libpcre
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_SUBPKGS:= LIBPCRE LIBPCRECPP
  17. PKGSD_LIBPCRECPP:= PCRE c++ library
  18. include ${ADK_TOPDIR}/mk/host.mk
  19. include ${ADK_TOPDIR}/mk/package.mk
  20. $(eval $(call HOST_template,PCRE,pcre,${PKG_VERSION}-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,LIBPCRE,libpcre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,LIBPCRECPP,libpcrecpp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCRECPP},${PKG_SECTION}))
  23. CONFIGURE_ARGS+= --enable-utf \
  24. --enable-unicode-properties
  25. XAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS}
  26. libpcre-install:
  27. ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so* ${IDIR_LIBPCRE}/usr/lib
  29. libpcrecpp-install:
  30. ${INSTALL_DIR} ${IDIR_LIBPCRECPP}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libpcrecpp.so* ${IDIR_LIBPCRECPP}/usr/lib
  32. include ${ADK_TOPDIR}/mk/host-bottom.mk
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk