Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / gettext / makefile.mk
blob270ac6cc769e41f5ad30b5b53268eed5205e04f3
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=gettext
31 TARGET=so_gettext
33 # --- Settings -----------------------------------------------------
35 .INCLUDE : settings.mk
37 .IF "$(SYSTEM_GETTEXT)" == "YES"
38 all:
39 @echo "An already available installation of gettext should exist on your system."
40 @echo "Therefore the version provided here does not need to be built in addition."
41 .ENDIF
43 # --- Files --------------------------------------------------------
45 GETTEXTVERSION=0.18.1.1
47 TARFILE_NAME=$(PRJNAME)-$(GETTEXTVERSION)
48 TARFILE_MD5=3dd55b952826d2b32f51308f2f91aa89
50 # see <https://savannah.gnu.org/bugs/index.php?33999>
51 PATCH_FILES=gettext-0.18.1.1.stpncpy.patch
54 .IF "$(OS)"=="MACOSX"
56 CONFIGURE_DIR=
57 CONFIGURE_ACTION=./configure --prefix=/@.__________________________________________________$(EXTRPATH) $(eq,$(VERBOSE),$(NULL) --enable-silent-rules --disable-silent-rules)
58 CONFIGURE_FLAGS=--disable-dependeny-tracking --disable-acl --disable-curses --without-emacs --without-git --disable-java
59 CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)" CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)" CXXFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
61 .IF "$(CROSS_COMPILING)"=="YES"
62 CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
63 .ENDIF
65 BUILD_ACTION=$(GNUMAKE)
66 BUILD_DIR=$(CONFIGURE_DIR)
68 OUT2LIB+=gettext-tools/intl/.libs/libintl.*.dylib
69 OUT2LIB+=gettext-runtime/libasprintf/.libs/libasprintf.*.dylib
70 OUT2LIB+=gettext-tools/gnulib-lib/.libs/libgettextlib-*.dylib
71 OUT2LIB+=gettext-tools/src/.libs/libgettextsrc-*.dylib
72 OUT2LIB+=gettext-tools/libgettextpo/.libs/libgettextpo.*.dylib
74 OUT2INC+=gettext-tools/intl/libintl.h
75 OUT2INC+=gettext-runtime/libasprintf/autosprintf.h
76 OUT2INC+=gettext-tools/libgettextpo/gettext-po.h
78 OUT2BIN_NONE+=gettext-tools/src/.libs/msgattrib
79 OUT2BIN_NONE+=gettext-tools/src/.libs/msgcat
80 OUT2BIN_NONE+=gettext-tools/src/.libs/msgcmp
81 OUT2BIN_NONE+=gettext-tools/src/.libs/msgcomm
82 OUT2BIN_NONE+=gettext-tools/src/.libs/msgconv
83 OUT2BIN_NONE+=gettext-tools/src/.libs/msgen
84 OUT2BIN_NONE+=gettext-tools/src/.libs/msgexec
85 OUT2BIN_NONE+=gettext-tools/src/.libs/msgfilter
86 OUT2BIN_NONE+=gettext-tools/src/.libs/msgfmt
87 OUT2BIN_NONE+=gettext-tools/src/.libs/msggrep
88 OUT2BIN_NONE+=gettext-tools/src/.libs/msginit
89 OUT2BIN_NONE+=gettext-tools/src/.libs/msgmerge
90 OUT2BIN_NONE+=gettext-tools/src/.libs/msgunfmt
91 OUT2BIN_NONE+=gettext-tools/src/.libs/msguniq
92 OUT2BIN_NONE+=gettext-tools/src/.libs/urlget
93 OUT2BIN_NONE+=gettext-tools/src/.libs/xgettext
95 .ELIF "$(OS)"=="IOS"
97 BUILD_DIR=gettext-runtime/intl
98 BUILD_ACTION=dmake
99 .IF "$(VERBOSE)"!=""
100 BUILD_ACTION+=VERBOSE=t
101 .ENDIF
102 PATCH_FILES=gettext-0.18.1.1.patch
103 ADDITIONAL_FILES=\
104 gettext-runtime/intl/makefile.mk \
105 gettext-runtime/intl/libgnuintl.h \
106 gettext-runtime/intl/libintl.h \
107 gettext-runtime/config.h
108 OUT2INC+=gettext-runtime/intl/libintl.h
110 .ELIF "$(OS)"=="WNT"
112 BUILD_DIR=gettext-runtime/intl
113 BUILD_ACTION=dmake
114 PATCH_FILES=gettext-0.18.1.1.patch
115 ADDITIONAL_FILES=\
116 gettext-runtime/intl/makefile.mk \
117 gettext-runtime/intl/libgnuintl.h \
118 gettext-runtime/intl/libintl.h \
119 gettext-runtime/config.h
120 OUT2INC+=gettext-runtime/intl/libintl.h
121 .ELSE
122 .ENDIF
124 # --- Targets ------------------------------------------------------
126 .INCLUDE : set_ext.mk
127 .INCLUDE : target.mk
128 .INCLUDE : tg_ext.mk