pkgsrc/news/newsfetch/patches/patch-aa

41 lines
1 KiB
Text

$NetBSD: patch-aa,v 1.2 2003/09/22 21:12:19 wiz Exp $
--- Makefile.orig Mon Nov 13 02:01:49 2000
+++ Makefile Mon Sep 22 19:38:52 2003
@@ -1,9 +1,9 @@
# Makefile for newsfetch program
-CC = gcc
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+#CC = gcc
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/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 @@
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 @@
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