2012-08-17 06:44:05 +00:00
|
|
|
include ports/pcre.inc
|
|
|
|
|
2013-05-25 12:50:46 +00:00
|
|
|
PCRE_TBZ = $(PCRE).tar.bz2
|
|
|
|
PCRE_SIG = $(PCRE_TBZ).sig
|
2013-08-15 17:51:08 +00:00
|
|
|
PCRE_BASE_URL = http://sourceforge.net/projects/pcre/files/pcre/$(PCRE_VERSION)
|
|
|
|
PCRE_URL = $(PCRE_BASE_URL)/$(PCRE_TBZ)/download
|
|
|
|
PCRE_URL_SIG = $(PCRE_BASE_URL)/$(PCRE_SIG)/download
|
2013-05-25 12:50:46 +00:00
|
|
|
PCRE_KEY = ph10@cam.ac.uk
|
2012-08-17 06:44:05 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Interface to top-level prepare Makefile
|
|
|
|
#
|
|
|
|
PORTS += $(PCRE)
|
|
|
|
|
|
|
|
prepare-pcre: $(CONTRIB_DIR)/$(PCRE) include/pcre
|
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(PCRE): clean-pcre
|
|
|
|
|
|
|
|
#
|
|
|
|
# Port-specific local rules
|
|
|
|
#
|
|
|
|
$(DOWNLOAD_DIR)/$(PCRE_TBZ):
|
2013-08-15 17:51:08 +00:00
|
|
|
$(VERBOSE)wget -c -O $(DOWNLOAD_DIR)/$(PCRE_TBZ) $(PCRE_URL) && touch $@
|
2013-06-10 09:38:52 +00:00
|
|
|
|
|
|
|
$(DOWNLOAD_DIR)/$(PCRE_SIG):
|
2013-08-15 17:51:08 +00:00
|
|
|
$(VERBOSE)wget -c -O $(DOWNLOAD_DIR)/$(PCRE_SIG) $(PCRE_URL_SIG) && touch $@
|
2013-06-06 14:49:56 +00:00
|
|
|
|
2013-06-10 09:38:52 +00:00
|
|
|
$(DOWNLOAD_DIR)/$(PCRE_TBZ).verified: $(DOWNLOAD_DIR)/$(PCRE_TBZ) \
|
|
|
|
$(DOWNLOAD_DIR)/$(PCRE_SIG)
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(PCRE_TBZ) $(DOWNLOAD_DIR)/$(PCRE_SIG) $(PCRE_KEY)
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)touch $@
|
2012-08-17 06:44:05 +00:00
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(PCRE): $(DOWNLOAD_DIR)/$(PCRE_TBZ)
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)tar xfj $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
2012-08-17 06:44:05 +00:00
|
|
|
|
|
|
|
include/pcre:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)ln -sf ../../src/lib/pcre/include/pcre.h include/pcre
|
|
|
|
|
|
|
|
clean-pcre:
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(PCRE)
|
|
|
|
$(VERBOSE)rm -rf include/pcre
|