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

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
11
12
13
14
15
16
17
18

$(TARBALLS)/libpng-$(PNG_VERSION).tar.bz2:
	$(call download,$(PNG_URL))

.sum-png: libpng-$(PNG_VERSION).tar.bz2

png: libpng-$(PNG_VERSION).tar.bz2 .sum-png
	$(UNPACK)
	$(MOVE)

19
20
21
DEPS_png = zlib $(DEPS_zlib)

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