rules.mak 550 Bytes
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1
# PNG
2
3
PNG_VERSION := 1.6.3
PNG_URL := $(SF)/libpng/libpng16/$(PNG_VERSION)/libpng-$(PNG_VERSION).tar.xz
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
4
5

PKGS += png
6
7
8
ifeq ($(call need_pkg,"libpng"),)
PKGS_FOUND += png
endif
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
9

10
$(TARBALLS)/libpng-$(PNG_VERSION).tar.xz:
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
11
12
	$(call download,$(PNG_URL))

13
.sum-png: libpng-$(PNG_VERSION).tar.xz
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
14

15
png: libpng-$(PNG_VERSION).tar.xz .sum-png
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
16
	$(UNPACK)
17
	$(APPLY) $(SRC)/png/winrt.patch
18
	$(APPLY) $(SRC)/png/bins.patch
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
19
20
	$(MOVE)

21
22
23
DEPS_png = zlib $(DEPS_zlib)

.png: png
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
24
25
26
27
	$(RECONF)
	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
	cd $< && $(MAKE) install
	touch $@