forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libpng16.mk
46 lines (37 loc) · 1.29 KB
/
libpng16.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
SUBPROJECTS += libpng16
LIBPNG16_VERSION := 1.6.37
DEB_LIBPNG16_V ?= $(LIBPNG16_VERSION)
libpng16-setup: setup
wget -q -nc -P $(BUILD_SOURCE) https://sourceforge.net/projects/libpng/files/libpng16/$(LIBPNG16_VERSION)/libpng-$(LIBPNG16_VERSION).tar.xz
$(call EXTRACT_TAR,libpng-$(LIBPNG16_VERSION).tar.xz,libpng-$(LIBPNG16_VERSION),libpng16)
ifneq ($(wildcard $(BUILD_WORK)/libpng16/.build_complete),)
libpng16:
@echo "Using previously built libpng16."
else
libpng16: libpng16-setup
cd $(BUILD_WORK)/libpng16 && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr
+$(MAKE) -C $(BUILD_WORK)/libpng16
+$(MAKE) -C $(BUILD_WORK)/libpng16 install \
DESTDIR=$(BUILD_STAGE)/libpng16
+$(MAKE) -C $(BUILD_WORK)/libpng16 install \
DESTDIR=$(BUILD_BASE)
touch $(BUILD_WORK)/libpng16/.build_complete
endif
libpng16-package: libpng16-stage
# libpng16.mk Package Structure
rm -rf $(BUILD_DIST)/libpng16
mkdir -p $(BUILD_DIST)/libpng16
# libpng16.mk Prep libpng16
cp -a $(BUILD_STAGE)/libpng16/usr $(BUILD_DIST)/libpng16
# libpng16.mk Sign
$(call SIGN,libpng16,general.xml)
# libpng16.mk Make .debs
$(call PACK,libpng16,DEB_LIBPNG16_V)
# libpng16.mk Build cleanup
rm -rf $(BUILD_DIST)/libpng16
.PHONY: libpng16 libpng16-package