forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libidn2.mk
47 lines (38 loc) · 1.27 KB
/
libidn2.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
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
SUBPROJECTS += libidn2
IDN2_VERSION := 2.3.0
DEB_IDN2_V ?= $(IDN2_VERSION)
libidn2-setup: setup
wget -q -nc -P $(BUILD_SOURCE) https://ftpmirror.gnu.org/libidn/libidn2-$(IDN2_VERSION).tar.gz{,.sig}
$(call PGP_VERIFY,libidn2-$(IDN2_VERSION).tar.gz)
$(call EXTRACT_TAR,libidn2-$(IDN2_VERSION).tar.gz,libidn2-$(IDN2_VERSION),libidn2)
ifneq ($(wildcard $(BUILD_WORK)/libidn2/.build_complete),)
libidn2:
@echo "Using previously built libidn2."
else
libidn2: libidn2-setup gettext libunistring
cd $(BUILD_WORK)/libidn2 && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr
+$(MAKE) -C $(BUILD_WORK)/libidn2
+$(MAKE) -C $(BUILD_WORK)/libidn2 install \
DESTDIR=$(BUILD_STAGE)/libidn2
+$(MAKE) -C $(BUILD_WORK)/libidn2 install \
DESTDIR=$(BUILD_BASE)
touch $(BUILD_WORK)/libidn2/.build_complete
endif
libidn2-package: libidn2-stage
# libidn2.mk Package Structure
rm -rf $(BUILD_DIST)/libidn2
mkdir -p $(BUILD_DIST)/libidn2
# libidn2.mk Prep libidn2
cp -a $(BUILD_STAGE)/libidn2/usr $(BUILD_DIST)/libidn2
# libidn2.mk Sign
$(call SIGN,libidn2,general.xml)
# libidn2.mk Make .debs
$(call PACK,libidn2,DEB_IDN2_V)
# libidn2.mk Build cleanup
rm -rf $(BUILD_DIST)/libidn2
.PHONY: libidn2 libidn2-package