summaryrefslogtreecommitdiff
path: root/graphics/xplot/patches/patch-aa
blob: 1728a358223a3d3751352a8ebbb3e826a8e52b5e (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
$NetBSD: patch-aa,v 1.8 2009/12/11 16:57:12 asau Exp $

--- Makefile.in.orig	2000-05-05 01:04:20.000000000 +0400
+++ Makefile.in	2009-12-11 19:54:53.000000000 +0300
@@ -62,7 +62,7 @@
 all:	${PROG}
 
 ${PROG}: ${OFILES}
-	${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS}
+	${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS} ${LDFLAGS}
 	-mv -f $@ $@.old
 	mv -f $@.new $@
 
@@ -70,11 +70,11 @@
 	echo 'char *version_string = "'`cat version`'";' >version_string.c
 
 install: all
-	mkdir -p $(bindir)
-	$(INSTALL_PROGRAM) xplot $(bindir)/xplot
-	$(INSTALL) tcpdump2xplot.pl $(bindir)/tcpdump2xplot
-	mkdir -p $(mandir)
-	$(INSTALL_MAN) $(MANFILES) $(mandir)
+	mkdir -p $(DESTDIR)$(bindir)
+	$(INSTALL_PROGRAM) xplot $(DESTDIR)$(bindir)/xplot
+	$(INSTALL) tcpdump2xplot.pl $(DESTDIR)$(bindir)/tcpdump2xplot
+	mkdir -p $(DESTDIR)$(mandir)
+	$(INSTALL_MAN) $(MANFILES) $(DESTDIR)$(mandir)
 clean:
 	rm -f ${PROG} ${PROG}.old *.o version_string.c