mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build with gcc42
PR: 115791 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: Yann Berthier <yb@bashibuzuk.net> While here replace USE_XLIB with USE_XORG
This commit is contained in:
parent
7a30282aef
commit
1b360cbdbc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198645
2 changed files with 15 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= aguri
|
||||
PORTVERSION= 0.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= ftp://ftp.csl.sony.co.jp/pub/kjc/
|
||||
|
||||
|
@ -15,11 +16,14 @@ COMMENT= An Aggregation-based Traffic Profiler
|
|||
|
||||
.if defined(WITH_X11)
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
|
||||
USE_XLIB= yes
|
||||
USE_XORG= x11
|
||||
.endif
|
||||
|
||||
MAN1= aguri.1
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s,/usr/X11R6,${X11BASE}," ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/aguri ${PREFIX}/bin
|
||||
@${INSTALL_MAN} ${WRKSRC}/aguri.1 ${MANPREFIX}/man/man1
|
||||
|
|
10
net-mgmt/aguri/files/patch-aguri.h
Normal file
10
net-mgmt/aguri/files/patch-aguri.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- aguri.h.orig 2003-03-12 22:09:41.000000000 +0800
|
||||
+++ aguri.h 2007-08-25 02:33:28.000000000 +0800
|
||||
@@ -32,7 +32,6 @@
|
||||
#define AGURI_VERSION "0.7"
|
||||
|
||||
extern char *fmt_string;
|
||||
-extern int read_count;
|
||||
extern struct timeval start_time, end_time;
|
||||
extern int debug;
|
||||
extern int time_slot;
|
Loading…
Add table
Reference in a new issue