forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libksba.mk
48 lines (39 loc) · 1.32 KB
/
libksba.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
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
STRAPPROJECTS += libksba
KSBA_VERSION := 1.4.0
DEB_KSBA_V ?= $(KSBA_VERSION)
libksba-setup: setup
wget -q -nc -P $(BUILD_SOURCE) https://gnupg.org/ftp/gcrypt/libksba/libksba-$(KSBA_VERSION).tar.bz2{,.sig}
$(call PGP_VERIFY,libksba-$(KSBA_VERSION).tar.bz2)
$(call EXTRACT_TAR,libksba-$(KSBA_VERSION).tar.bz2,libksba-$(KSBA_VERSION),libksba)
ifneq ($(wildcard $(BUILD_WORK)/libksba/.build_complete),)
libksba:
@echo "Using previously built libksba."
else
libksba: libksba-setup libgpg-error
cd $(BUILD_WORK)/libksba && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr \
--with-gpg-error-prefix=$(BUILD_BASE)/usr
+$(MAKE) -C $(BUILD_WORK)/libksba
+$(MAKE) -C $(BUILD_WORK)/libksba install \
DESTDIR=$(BUILD_STAGE)/libksba
+$(MAKE) -C $(BUILD_WORK)/libksba install \
DESTDIR=$(BUILD_BASE)
touch $(BUILD_WORK)/libksba/.build_complete
endif
libksba-package: libksba-stage
# libksba.mk Package Structure
rm -rf $(BUILD_DIST)/libksba
mkdir -p $(BUILD_DIST)/libksba
# libksba.mk Prep libksba
cp -a $(BUILD_STAGE)/libksba/usr $(BUILD_DIST)/libksba
# libksba.mk Sign
$(call SIGN,libksba,general.xml)
# libksba.mk Make .debs
$(call PACK,libksba,DEB_KSBA_V)
# libksba.mk Build cleanup
rm -rf $(BUILD_DIST)/libksba
.PHONY: libksba libksba-package