Merge pull request #25820 from hribz/master
[xbmc.git] / tools / depends / native / gettext / Makefile
blob2022d04b33acc0272fc73bf582c18f832e5c76b7
1 include ../../Makefile.include GETTEXT-VERSION ../../download-files.include
2 PREFIX=$(NATIVEPREFIX)
3 PLATFORM=$(NATIVEPLATFORM)
4 DEPS = ../../Makefile.include Makefile GETTEXT-VERSION ../../download-files.include \
5 02-disable-test-doc.patch
7 # configuration settings
8 CONFIGURE=./configure --prefix=$(PREFIX) \
9 --disable-csharp \
10 --disable-native-java \
11 --disable-java \
12 --disable-c++ \
13 --without-emacs \
14 --disable-libasprintf \
15 --disable-openmp \
16 --disable-curses \
17 --disable-acl \
18 --disable-nls \
19 --with-included-gettext \
20 --with-included-glib \
21 --with-included-libcroco \
22 --with-included-libxml \
23 --without-git \
24 --without-cvs \
25 --disable-shared
27 LIBDYLIB=$(PLATFORM)/gettext-tools/src/.libs/libgettextsrc.a
29 all: .installed-$(PLATFORM)
32 $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
33 rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
34 cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
35 cd $(PLATFORM); patch -p1 -i ../02-disable-test-doc.patch
36 cd $(PLATFORM); $(CONFIGURE)
38 $(LIBDYLIB): $(PLATFORM)
39 $(MAKE) -C $(PLATFORM)/gettext-runtime/intl libgnuintl.h
40 $(MAKE) -C $(PLATFORM)/libtextstyle
41 $(MAKE) -C $(PLATFORM)/gettext-tools
43 .installed-$(PLATFORM): $(LIBDYLIB)
44 $(MAKE) -C $(PLATFORM)/gettext-tools install
45 touch $@
47 clean:
48 $(MAKE) -C $(PLATFORM) clean
49 rm -f .installed-$(PLATFORM)
51 distclean::
52 rm -rf $(PLATFORM) .installed-$(PLATFORM)