forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sl.mk
40 lines (31 loc) · 909 Bytes
/
sl.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
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
SUBPROJECTS += sl
DOWNLOAD += https://github.com/M1staAwesome/sl/archive/$(SL_VERSION).tar.gz
SL_VERSION := 5.02
DEB_SL_V ?= $(SL_VERSION)
sl-setup: setup
$(call EXTRACT_TAR,$(SL_VERSION).tar.gz,sl-$(SL_VERSION),sl)
mkdir -p $(BUILD_STAGE)/sl/usr/bin
ifneq ($(wildcard $(BUILD_WORK)/sl/.build_complete),)
sl:
@echo "Using previously built sl."
else
sl: sl-setup ncurses
$(CC) $(CFLAGS) -o $(BUILD_STAGE)/sl/usr/bin/sl $(BUILD_WORK)/sl/sl.c $(LDFLAGS) -lncursesw
touch $(BUILD_WORK)/sl/.build_complete
endif
sl-package: sl-stage
# sl.mk Package Structure
rm -rf $(BUILD_DIST)/sl
mkdir -p $(BUILD_DIST)/sl
# sl.mk Prep sl
cp -a $(BUILD_STAGE)/sl/usr $(BUILD_DIST)/sl
# sl.mk Sign
$(call SIGN,sl,general.xml)
# sl.mk Make .debs
$(call PACK,sl,DEB_SL_V)
# sl.mk Build cleanup
rm -rf $(BUILD_DIST)/sl
.PHONY: sl sl-package