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:
Tilman Keskinoz 2007-09-02 13:55:44 +00:00
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

View file

@ -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

View 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;