1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 THISAPP = gettext-$(VER)
30 DL_FILE = $(THISAPP).tar.gz
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
34 # Normal build or /tools build.
37 ifeq "$(LFS_PASS)" "install"
38 TARGET = $(DIR_INFO)/$(THISAPP)-install
40 TARGET = $(DIR_INFO)/$(THISAPP)
41 EXTRA_CONFIG = --prefix=/usr --disable-nls
46 TARGET = $(DIR_INFO)/$(THISAPP)-tools
47 EXTRA_CONFIG = --prefix=/tools --disable-shared --disable-nls
52 ###############################################################################
54 ###############################################################################
58 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
60 $(DL_FILE)_MD5 = e2f6581626a22a0de66dce1d81d00de3
64 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
66 download :$(patsubst %,$(DIR_DL)/%,$(objects))
68 md5 : $(subst %,%_MD5,$(objects))
70 ###############################################################################
71 # Downloading, checking, md5sum
72 ###############################################################################
74 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
77 $(patsubst %,$(DIR_DL)/%,$(objects)) :
80 $(subst %,%_MD5,$(objects)) :
83 ###############################################################################
84 # Installation Details
85 ###############################################################################
87 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
89 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
91 ifeq "$(LFS_PASS)" "install"
92 cd $(DIR_APP) && ./configure --prefix=/ --libdir=/lib \
93 --with-included-gettext --disable-rpath \
94 --enable-relocatable --disable-shared
95 cd $(DIR_APP)/gettext-runtime && make CFLAGS="-Os -fomit-frame-pointer" -C intl/
96 cd $(DIR_APP)/gettext-runtime && make CFLAGS="-Os -fomit-frame-pointer" \
97 DESTDIR=/opt/$(MACHINE)-uClibc -C intl/ install
99 cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
100 cd $(DIR_APP) && make $(EXTRA_MAKE)
101 cd $(DIR_APP) && make $(EXTRA_INSTALL) install
104 cd $(DIR_APP)/gettext-tools && ./configure $(EXTRA_CONFIG)
105 cd $(DIR_APP)/gettext-tools && make -C lib
106 cd $(DIR_APP)/gettext-tools && make -C src msgfmt
107 cd $(DIR_APP)/gettext-tools && cp -v src/msgfmt /tools/bin