pcre.mk 875 B

1234567891011121314151617181920212223242526272829303132
  1. #############################################################
  2. #
  3. # PCRE
  4. #
  5. #############################################################
  6. PCRE_VERSION = 7.9
  7. PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
  8. PCRE_INSTALL_STAGING = YES
  9. ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
  10. # pcre will use the host g++ if a cross version isn't available
  11. PCRE_CONF_OPT = --disable-cpp
  12. endif
  13. define PCRE_STAGING_PCRE_CONFIG_FIXUP
  14. $(SED) 's,^prefix=.*,prefix=$(STAGING_DIR)/usr,' \
  15. -e 's,^exec_prefix=.*,exec_prefix=$(STAGING_DIR)/usr,' \
  16. $(STAGING_DIR)/usr/bin/pcre-config
  17. endef
  18. PCRE_POST_INSTALL_STAGING_HOOKS += PCRE_STAGING_PCRE_CONFIG_FIXUP
  19. define PCRE_TARGET_REMOVE_PCRE_CONFIG
  20. rm -f $(TARGET_DIR)/usr/bin/pcre-config
  21. endef
  22. ifneq ($(BR2_HAVE_DEVFILES),y)
  23. PCRE_POST_INSTALL_TARGET_HOOKS += PCRE_TARGET_REMOVE_PCRE_CONFIG
  24. endif
  25. $(eval $(call AUTOTARGETS,package,pcre))