pkgsrc/news/newsfetch/patches/patch-aa
2009-10-29 22:40:23 +00:00

41 lines
1.1 KiB
Text

$NetBSD: patch-aa,v 1.3 2009/10/29 22:40:23 tnn Exp $
--- Makefile.orig 2000-11-13 03:01:49.000000000 +0100
+++ Makefile
@@ -1,9 +1,9 @@
# Makefile for newsfetch program
-CC = gcc
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+#CC = gcc
+BINDIR = ${DESTDIR}${PREFIX}/bin
+MANDIR = ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-CFLAGS= -O2 # inline opt
+#CFLAGS= -O2 # inline opt
# uncomment this for strict checking
#CFLAGS = -O2 -Wall -pedantic -Wstrict-prototypes -fno-strength-reduce
@@ -15,8 +15,7 @@ all: newsfetch
objs = newsfetch.o nntp.o net.o opt.o util.o getopt.o
newsfetch: $(objs)
- $(CC) -o newsfetch $(objs)
- strip newsfetch
+ $(CC) -o newsfetch $(objs) $(LDFLAGS)
.c.o:
$(CC) -c $(CFLAGS) $<
@@ -25,10 +24,8 @@ clean:
rm -f *.o newsfetch
install:
-# cp newsfetch $(BINDIR)/newsfetch
-# cp newsfetch.1 $(MANDIR)/newsfetch.1
- cp newsfetch /usr/local/bin
- cp newsfetch.1 /usr/local/man/man1
+ ${BSD_INSTALL_PROGRAM} newsfetch $(BINDIR)/newsfetch
+ ${BSD_INSTALL_MAN} newsfetch.1 $(MANDIR)/newsfetch.1
uninstall:
rm -f $(BINDIR)/newsfetch