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