Merge pull request #4314 from MartijnKaijser/beta1
[vuplus_xbmc] / tools / depends / target / libxslt / Makefile
1 include ../../Makefile.include
2 DEPS= ../../Makefile.include Makefile
3
4 # lib name, version
5 LIBNAME=libxslt
6 VERSION=1.1.28
7 SOURCE=$(LIBNAME)-$(VERSION)
8 ARCHIVE=$(SOURCE).tar.gz
9
10 # configuration settings
11 CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
12           ./configure --prefix=$(PREFIX) --without-python --disable-shared   --with-debug --with-debugger --with-mem-debug --with-libxml-prefix=$(PREFIX)
13
14 LIBDYLIB=$(PLATFORM)/$(LIBNAME)/.libs/$(LIBNAME).a
15
16 CLEAN_FILES=$(ARCHIVE) $(PLATFORM)
17
18 all: .installed-$(PLATFORM)
19
20 $(TARBALLS_LOCATION)/$(ARCHIVE):
21         cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
22
23 $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
24         rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
25         cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
26         sed -ie "s|runtest$$(EXEEXT)||" "$(PLATFORM)/Makefile.in"
27         sed -ie "s|testrecurse$$(EXEEXT)||" "$(PLATFORM)/Makefile.in"
28         sed -ie "s|xsltproc||" "$(PLATFORM)/Makefile.in"
29         cd $(PLATFORM); $(CONFIGURE)
30
31 $(LIBDYLIB): $(PLATFORM)
32         $(MAKE) -C $(PLATFORM)
33
34 .installed-$(PLATFORM): $(LIBDYLIB)
35         $(MAKE) -C $(PLATFORM) install
36         touch $@
37
38 clean:
39         $(MAKE) -C $(PLATFORM) clean
40         rm -f .installed-$(PLATFORM)
41
42 distclean::
43         rm -rf $(PLATFORM) .installed-$(PLATFORM)
44