aboutsummaryrefslogtreecommitdiffstats
path: root/net/trafshow/files
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2000-06-28 20:53:16 +0800
committeralex <alex@FreeBSD.org>2000-06-28 20:53:16 +0800
commitb816d59fb0dfcee5f702078a01c1dbdee37ce099 (patch)
treeb8efdb61149a34d8706a3e659ea3d493dafaffc1 /net/trafshow/files
parent25854433e9bba1db39d5d453bc15b4a149122cbd (diff)
downloadfreebsd-ports-gnome-b816d59fb0dfcee5f702078a01c1dbdee37ce099.tar.gz
freebsd-ports-gnome-b816d59fb0dfcee5f702078a01c1dbdee37ce099.tar.zst
freebsd-ports-gnome-b816d59fb0dfcee5f702078a01c1dbdee37ce099.zip
- Support CFLAGS/PREFIX/LOCALBASE properly
- Add WWW: line into pkg/DESCR PR: 19345 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'net/trafshow/files')
-rw-r--r--net/trafshow/files/patch-ac2
-rw-r--r--net/trafshow/files/patch-af19
2 files changed, 9 insertions, 12 deletions
diff --git a/net/trafshow/files/patch-ac b/net/trafshow/files/patch-ac
index 63308d0f003f..c15ab541f4d8 100644
--- a/net/trafshow/files/patch-ac
+++ b/net/trafshow/files/patch-ac
@@ -5,7 +5,7 @@
(void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name);
if ((fp = fopen(buf, "r")) == NULL) {
- (void) strcpy(buf, "/etc/");
-+ (void) strcpy(buf, "/usr/local/etc/");
++ (void) strcpy(buf, "%%PREFIX%%/etc/");
(void) strcat(buf, program_name);
if ((fp = fopen(buf, "r")) == NULL) return 0;
}
diff --git a/net/trafshow/files/patch-af b/net/trafshow/files/patch-af
index 01fbad9e17b8..dba73df91ae9 100644
--- a/net/trafshow/files/patch-af
+++ b/net/trafshow/files/patch-af
@@ -1,16 +1,13 @@
---- Makefile.in.orig Sun Aug 23 21:54:16 1998
-+++ Makefile.in Sun Feb 6 22:12:03 2000
-@@ -29,10 +29,11 @@
+--- Makefile.in.orig Mon Aug 24 13:54:16 1998
++++ Makefile.in Tue May 2 00:51:47 2000
+@@ -28,8 +28,8 @@
+
PROG = trafshow
CC = @CC@
- CCOPT = @V_CCOPT@
+-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
-+INCLS = -I. -I/usr/local/include @V_INCLS@
++CCOPT = @CFLAGS@
++INCLS = -I. @CPPFLAGS@
DEFS = @DEFS@
--CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
-+CFLAGS ?= -O2
-+CFLAGS += $(DEFS) $(INCLS)
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-
+ CFLAGS = $(CCOPT) $(DEFS) $(INCLS)