pcre.mk 779 B

1234567891011121314151617181920212223242526
  1. #############################################################
  2. #
  3. # PCRE
  4. #
  5. #############################################################
  6. PCRE_VERSION = 7.7
  7. PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
  8. PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
  9. PCRE_INSTALL_STAGING = YES
  10. PCRE_INSTALL_TARGET = YES
  11. ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
  12. # pcre will use the host g++ if a cross version isn't available
  13. PCRE_CONF_OPT = --disable-cpp
  14. endif
  15. PCRE_DEPENDENCIES = uclibc
  16. $(eval $(call AUTOTARGETS,package,pcre))
  17. $(PCRE_HOOK_POST_INSTALL): $(PCRE_TARGET_INSTALL_TARGET)
  18. $(SED) 's,^prefix=.*,prefix=$(STAGING_DIR)/usr,' \
  19. -e 's,^exec_prefix=.*,exec_prefix=$(STAGING_DIR)/usr,' \
  20. $(STAGING_DIR)/usr/bin/pcre-config
  21. rm -rf $(TARGET_DIR)/usr/share/doc/pcre
  22. touch $@