2014-05-07 21:52:52 +00:00
|
|
|
LICENSE := BSD
|
|
|
|
VERSION := 8.30
|
|
|
|
DOWNLOADS := pcre.archive
|
|
|
|
|
|
|
|
URL(pcre) := http://sourceforge.net/projects/pcre/files/pcre/$(VERSION)/pcre-$(VERSION).tar.bz2
|
2018-05-07 14:45:50 +00:00
|
|
|
SHA(pcre) := c1113fd7db934e97ad8b3917d432e5b642e9eb9afd127eb797804937c965f4ac
|
2014-05-07 21:52:52 +00:00
|
|
|
SIG(pcre) := ${URL(pcre)}.sig
|
|
|
|
KEY(pcre) := ph10@cam.ac.uk
|
|
|
|
DIR(pcre) := src/lib/pcre
|
|
|
|
|
|
|
|
default: include/pcre/pcre.h
|
|
|
|
|
|
|
|
include/pcre/pcre.h: $(DOWNLOADS)
|
|
|
|
|
|
|
|
subst := \
|
|
|
|
"@PCRE_MAJOR@/8" \
|
|
|
|
"@PCRE_MINOR@/30" \
|
|
|
|
"@PCRE_PRERELEASE@/" \
|
|
|
|
"@PCRE_DATE@/2012-02-04"
|
|
|
|
|
|
|
|
apply_substitutions = for i in $(subst); do sed -i "s/$$i/g" $(1); done
|
|
|
|
|
|
|
|
include/pcre/pcre.h:
|
|
|
|
$(VERBOSE)mkdir -p $(dir $@)
|
|
|
|
$(VERBOSE)cp src/lib/pcre/pcre.h.in $@
|
|
|
|
$(VERBOSE)$(call apply_substitutions,$@)
|