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