pcre.mk 761 B

1234567891011121314151617181920212223242526
  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. $(eval $(call AUTOTARGETS,package,pcre))
  14. $(PCRE_HOOK_POST_INSTALL): $(PCRE_TARGET_INSTALL_TARGET)
  15. $(SED) 's,^prefix=.*,prefix=$(STAGING_DIR)/usr,' \
  16. -e 's,^exec_prefix=.*,exec_prefix=$(STAGING_DIR)/usr,' \
  17. $(STAGING_DIR)/usr/bin/pcre-config
  18. rm -rf $(TARGET_DIR)/usr/share/doc/pcre
  19. ifneq ($(BR2_HAVE_DEVFILES),y)
  20. rm -f $(TARGET_DIR)/usr/bin/pcre-config
  21. endif
  22. touch $@