forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcre.mk
56 lines (47 loc) · 1.36 KB
/
pcre.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
STRAPPROJECTS += pcre
DOWNLOAD += https://ftp.pcre.org/pub/pcre/pcre-$(PCRE_VERSION).tar.bz2{,.sig}
PCRE_VERSION := 8.44
DEB_PCRE_V ?= $(PCRE_VERSION)
pcre-setup: setup
$(call PGP_VERIFY,pcre-$(PCRE_VERSION).tar.bz2)
$(call EXTRACT_TAR,pcre-$(PCRE_VERSION).tar.bz2,pcre-$(PCRE_VERSION),pcre)
ifneq ($(wildcard $(BUILD_WORK)/pcre/.build_complete),)
pcre:
@echo "Using previously built pcre."
else
pcre: pcre-setup
cd $(BUILD_WORK)/pcre && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr \
--disable-dependency-tracking \
--enable-utf8 \
--enable-pcre8 \
--enable-pcre16 \
--enable-pcre32 \
--enable-jit \
--enable-unicode-properties \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2
+$(MAKE) -C $(BUILD_WORK)/pcre
+$(MAKE) -C $(BUILD_WORK)/pcre install \
DESTDIR=$(BUILD_STAGE)/pcre
+$(MAKE) -C $(BUILD_WORK)/pcre install \
DESTDIR=$(BUILD_BASE)
touch $(BUILD_WORK)/pcre/.build_complete
endif
pcre-package: pcre-stage
# pcre.mk Package Structure
rm -rf $(BUILD_DIST)/libpcre
mkdir -p $(BUILD_DIST)/libpcre
# pcre.mk Prep pcre
cp -a $(BUILD_STAGE)/pcre/usr $(BUILD_DIST)/libpcre
# pcre.mk Sign
$(call SIGN,libpcre,general.xml)
# pcre.mk Make .debs
$(call PACK,libpcre,DEB_PCRE_V)
# pcre.mk Build cleanup
rm -rf $(BUILD_DIST)/libpcre
.PHONY: pcre pcre-package