1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
33 # --- Settings -----------------------------------------------------
35 .INCLUDE
: settings.mk
37 .IF
"$(SYSTEM_GETTEXT)" == "YES"
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."
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
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
)
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
97 BUILD_DIR
=gettext-runtime
/intl
100 BUILD_ACTION
+=VERBOSE
=t
102 PATCH_FILES
=gettext-0.18
.1.1.patch
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
112 BUILD_DIR
=gettext-runtime
/intl
114 PATCH_FILES
=gettext-0.18
.1.1.patch
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
124 # --- Targets ------------------------------------------------------
126 .INCLUDE
: set_ext.mk