forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
man-db.mk
50 lines (41 loc) · 1.34 KB
/
man-db.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
49
50
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
SUBPROJECTS += man-db
DOWNLOAD += https://download.savannah.gnu.org/releases/man-db/man-db-$(MAN-DB_VERSION).tar.xz{,.asc}
MAN-DB_VERSION := 2.9.1
DEB_MAN-DB_V ?= $(MAN-DB_VERSION)
man-db-setup: setup
$(call PGP_VERIFY,man-db-$(MAN-DB_VERSION).tar.xz,asc)
$(call EXTRACT_TAR,man-db-$(MAN-DB_VERSION).tar.xz,man-db-$(MAN-DB_VERSION),man-db)
ifneq ($(wildcard $(BUILD_WORK)/man-db/.build_complete),)
man-db:
@echo "Using previously built man-db."
else
man-db: man-db-setup libpipeline libgdbm gettext
cd $(BUILD_WORK)/man-db && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr \
--sysconfdir=/etc \
--disable-cache-owner \
--disable-setuid \
--enable-nls
+$(MAKE) -C $(BUILD_WORK)/man-db \
LDFLAGS="$(LDFLAGS) -lintl -Wl,-framework -Wl,CoreFoundation"
+$(MAKE) -C $(BUILD_WORK)/man-db install \
DESTDIR=$(BUILD_STAGE)/man-db
touch $(BUILD_WORK)/man-db/.build_complete
endif
man-db-package: man-db-stage
# man-db.mk Package Structure
rm -rf $(BUILD_DIST)/man-db
mkdir -p $(BUILD_DIST)/man-db
# man-db.mk Prep man-db
cp -a $(BUILD_STAGE)/man-db $(BUILD_DIST)
# man-db.mk Sign
$(call SIGN,man-db,general.xml)
# man-db.mk Make .debs
$(call PACK,man-db,DEB_MAN-DB_V)
# man-db.mk Build cleanup
rm -rf $(BUILD_DIST)/man-db
.PHONY: man-db man-db-package