blob: 232e487b3d316f56ccbfc949ccc698f5a1b7dd92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Index: getopt-1.1.4/Makefile
===================================================================
--- getopt-1.1.4.orig/Makefile
+++ getopt-1.1.4/Makefile
@@ -33,7 +33,10 @@ MSGFMT=msgfmt
LANGUAGES = cs de es fr it ja nl pt_BR
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
+CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
+ifeq ($(WITHOUT_GETTEXT),1)
+CPPFLAGS+=-DWITHOUT_GETTEXT
+endif
ifeq ($(LIBCGETOPT),0)
CPPFLAGS+=-I./gnu
endif
@@ -62,7 +65,7 @@ clean: clean_po
-$(RM) $(objects) $(binaries)
getopt: $(objects)
- $(CC) $(LDFLAGS) -o $@ $(objects)
+ $(CC) $(LDFLAGS) -o $@ $(objects) $(LIBINTL)
install: getopt install_po
$(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
@@ -75,7 +78,7 @@ install_doc:
getopt-test.bash getopt-test.tcsh \
$(DESTDIR)$(getoptdir)
-ifeq ($(WITH_GETTEXT),1)
+ifeq ($(WITHOUT_GETTEXT),0)
all_po: $(MOFILES)
install_po: all_po
$(INSTALL) -m 755 -d $(DESTDIR)$(localedir)
|