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