Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / getopt / patches / patch-ab
blobbe7f3945aecd178608eafb4aaca187dee1feed80
1 $NetBSD$
3 --- Makefile.orig       2012-08-12 09:07:43.000000000 +0000
4 +++ Makefile
5 @@ -1,7 +1,7 @@
6  .SUFFIXES:
7  
8  DESTDIR=
9 -prefix=/usr/local
10 +prefix=${PREFIX}
11  bindir=$(prefix)/bin
12  mandir=$(prefix)/man
13  man1dir=$(mandir)/man1
14 @@ -10,7 +10,7 @@ getoptdir=$(sharedir)/getopt
15  localedir=$(sharedir)/locale
17  # Define this to 0 to use the getopt(3) routines in this package.
18 -LIBCGETOPT=1
19 +LIBCGETOPT=0
21  # Define this to 1 if you do not have the gettext routines
22  WITHOUT_GETTEXT=0
23 @@ -23,8 +23,6 @@ UNLIKELYNAME=a8vwjfd92
25  SHELL=/bin/sh
27 -CC=gcc
28 -LD=ld
29  RM=rm -f
30  INSTALL=install
31  MSGFMT=msgfmt
32 @@ -42,8 +40,7 @@ WARNINGS=-Wall \
33           -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
34           -Wnested-externs -Winline
35  OPTIMIZE=-O3 -fno-strength-reduce
36 -CFLAGS=$(WARNINGS) $(OPTIMIZE)
37 -LDFLAGS=
38 +CFLAGS+=$(WARNINGS)
40  sources=getopt.c
41  ifeq ($(LIBCGETOPT),0)
42 @@ -61,7 +58,7 @@ clean: clean_po
43         -$(RM) $(objects) $(binaries) 
45  getopt: $(objects)
46 -       $(CC) $(LDFLAGS) -o $@ $(objects)
47 +       $(CC) $(LDFLAGS) -o $@ $(objects) -lintl
49  install: getopt install_po
50         $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)