]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/gettext
Rootfile update (ipfireseeder).
[people/pmueller/ipfire-2.x.git] / lfs / gettext
CommitLineData
cd1a2927 1###############################################################################
cd1a2927 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
cd1a2927 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
cd1a2927
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
cd1a2927
MT
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. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
cd1a2927 18# #
cd1a2927
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
dd714b8a 27VER = 0.14.5
cd1a2927
MT
28
29THISAPP = gettext-$(VER)
30DL_FILE = $(THISAPP).tar.gz
dd714b8a 31DL_FROM = $(URL_IPFIRE)
cd1a2927
MT
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33
34# Normal build or /tools build.
35#
36ifeq "$(ROOT)" ""
72d80898
MT
37ifeq "$(LFS_PASS)" "install"
38 TARGET = $(DIR_INFO)/$(THISAPP)-install
39else
cd1a2927
MT
40 TARGET = $(DIR_INFO)/$(THISAPP)
41 EXTRA_CONFIG = --prefix=/usr --disable-nls
fcb5057d 42 EXTRA_MAKE =
cd1a2927 43 EXTRA_INSTALL =
72d80898 44endif
cd1a2927
MT
45else
46 TARGET = $(DIR_INFO)/$(THISAPP)-tools
dd714b8a 47 EXTRA_CONFIG = --prefix=/tools --disable-shared --disable-nls
cd1a2927
MT
48 EXTRA_MAKE =
49 EXTRA_INSTALL =
50endif
51
52###############################################################################
53# Top-level Rules
54###############################################################################
55
56objects = $(DL_FILE)
57
58$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
59
dd714b8a 60$(DL_FILE)_MD5 = e2f6581626a22a0de66dce1d81d00de3
cd1a2927
MT
61
62install : $(TARGET)
63
64check : $(patsubst %,$(DIR_CHK)/%,$(objects))
65
66download :$(patsubst %,$(DIR_DL)/%,$(objects))
67
68md5 : $(subst %,%_MD5,$(objects))
69
70###############################################################################
71# Downloading, checking, md5sum
72###############################################################################
73
74$(patsubst %,$(DIR_CHK)/%,$(objects)) :
75 @$(CHECK)
76
77$(patsubst %,$(DIR_DL)/%,$(objects)) :
78 @$(LOAD)
79
80$(subst %,%_MD5,$(objects)) :
81 @$(MD5)
82
83###############################################################################
84# Installation Details
85###############################################################################
86
87$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
88 @$(PREBUILD)
89 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
dd714b8a 90ifeq "$(ROOT)" ""
72d80898
MT
91ifeq "$(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
98else
cd1a2927 99 cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
314d36f0 100 cd $(DIR_APP) && make $(EXTRA_MAKE)
cd1a2927 101 cd $(DIR_APP) && make $(EXTRA_INSTALL) install
72d80898 102endif
dd714b8a
MT
103else
104 cd $(DIR_APP)/gettext-tools && ./configure $(EXTRA_CONFIG)
6d9d8b63
MT
105 cd $(DIR_APP)/gettext-tools && make -C lib
106 cd $(DIR_APP)/gettext-tools && make -C src msgfmt
dd714b8a
MT
107 cd $(DIR_APP)/gettext-tools && cp -v src/msgfmt /tools/bin
108endif
cd1a2927
MT
109 @rm -rf $(DIR_APP)
110 @$(POSTBUILD)