[release] version bump to 13.0 beta1
[vuplus_xbmc] / tools / depends / target / libpng / Makefile
1 include ../../Makefile.include
2 DEPS= ../../Makefile.include Makefile
3
4 # lib name, version
5 LIBNAME=libpng
6 #VERSION=1.4.4
7 VERSION=1.5.13
8 SOURCE=$(LIBNAME)-$(VERSION)
9 ARCHIVE=$(SOURCE).tar.gz
10
11 # configuration settings
12 CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
13           ./configure --prefix=$(PREFIX) --disable-shared
14
15 LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
16
17 CLEAN_FILES=$(ARCHIVE) $(PLATFORM)
18
19 all: .installed-$(PLATFORM)
20
21 $(TARBALLS_LOCATION)/$(ARCHIVE):
22         cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
23
24 $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
25         rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
26         cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
27         cd $(PLATFORM); $(CONFIGURE)
28
29 $(LIBDYLIB): $(PLATFORM)
30         $(MAKE) -C $(PLATFORM)
31
32 .installed-$(PLATFORM): $(LIBDYLIB)
33         $(MAKE) -C $(PLATFORM) install
34         touch $@
35
36 clean:
37         $(MAKE) -C $(PLATFORM) clean
38         rm -f .installed-$(PLATFORM)
39
40 distclean::
41         rm -rf $(PLATFORM) .installed-$(PLATFORM)