1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= pcre
  5. PKG_VERSION:= 8.34
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= eb34b2c9c727fd64940d6fd9a00995eb
  8. PKG_DESCR:= a Perl Compatible Regular Expression library
  9. PKG_SECTION:= libs
  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. ifeq ($(ADK_STATIC),y)
  19. PKG_OPTS+= libmix
  20. endif
  21. include ${TOPDIR}/mk/host.mk
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call HOST_template,PCRE,pcre,${PKG_VERSION}-${PKG_RELEASE}))
  24. $(eval $(call PKG_template,LIBPCRE,libpcre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  25. $(eval $(call PKG_template,LIBPCRECPP,libpcrecpp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCRECPP},${PKG_SECTION}))
  26. HOST_STYLE:= auto
  27. CONFIGURE_ARGS+= --enable-utf
  28. XAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS}
  29. libpcre-install:
  30. ${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so* ${IDIR_LIBPCRE}/usr/lib
  32. libpcrecpp-install:
  33. ${INSTALL_DIR} ${IDIR_LIBPCRECPP}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libpcrecpp.so* ${IDIR_LIBPCRECPP}/usr/lib
  35. include ${TOPDIR}/mk/host-bottom.mk
  36. include ${TOPDIR}/mk/pkg-bottom.mk