summaryrefslogtreecommitdiff
path: root/misc/getopt/files/patch-Makefile
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2003-06-13 23:56:42 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2003-06-13 23:56:42 +0000
commit445d53b2d18b1e791d6ddea09bfbc5d48e35e0f1 (patch)
tree54c421cdb09d22f7eefa19cfc647d2240bb69438 /misc/getopt/files/patch-Makefile
parentNew port: graphical configuation utility for the newsreader slrn (diff)
A getopt(1) replacement that supports GNU-style long options
Submitted by: Sergei Kolobov <sergei@kolobov.com> PR: 53174 Approved by: fjoe (implicit)
Diffstat (limited to 'misc/getopt/files/patch-Makefile')
-rw-r--r--misc/getopt/files/patch-Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/misc/getopt/files/patch-Makefile b/misc/getopt/files/patch-Makefile
new file mode 100644
index 000000000000..fadb1f525005
--- /dev/null
+++ b/misc/getopt/files/patch-Makefile
@@ -0,0 +1,38 @@
+--- Makefile.orig Thu Jan 23 23:52:29 2003
++++ Makefile Thu Jun 5 16:17:44 2003
+@@ -1,7 +1,7 @@
+ .SUFFIXES:
+
+ DESTDIR=
+-prefix=/usr/local
++prefix=$(PREFIX)
+ bindir=$(prefix)/bin
+ mandir=$(prefix)/man
+ man1dir=$(mandir)/man1
+@@ -29,7 +29,7 @@
+ 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) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
+ ifeq ($(LIBCGETOPT),0)
+ CPPFLAGS+=-I./gnu
+ endif
+@@ -39,8 +39,6 @@
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline
+ OPTIMIZE=-O3 -fno-strength-reduce
+-CFLAGS=$(WARNINGS) $(OPTIMIZE)
+-LDFLAGS=
+
+ sources=getopt.c
+ ifeq ($(LIBCGETOPT),0)
+@@ -71,7 +69,7 @@
+ 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)