Fix build when net/libpcap is installed.

PR:		ports/172623
Approved by:	Yoshifumi Nishida <nishida@sfc.wide.ad.jp> (maintainer)
Feature safe:	yes
This commit is contained in:
Cy Schubert 2012-10-25 07:47:41 +00:00
parent b9ae6cb0ea
commit dafe98ab07
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306372

View File

@ -7,7 +7,7 @@
PORTNAME= tcpillust
PORTVERSION= 2.01
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net tcl tk
MASTER_SITES= http://www.jp.nishida.org/tcpillust/
@ -34,10 +34,10 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
do-build:
.for file in binread.c button.c draw.c parser.c tcpillust.c tcpdump/print-tcp.c
${CC} ${CFLAGS} -I${LOCALBASE}/include/ -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \
${CC} ${CFLAGS} -I/usr/include -I/usr/include/pcap -I${LOCALBASE}/include/ -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \
-I${LOCALBASE}/include -DILTDIR=\"${DATADIR}\" -c ${WRKSRC}/${file} -o ${WRKSRC}/${file:S/.c/.o/}
.endfor
${CC} ${CFLAGS} -L${TCL_LIBDIR} -L${TK_LIBDIR} -L${LOCALBASE}/lib \
${CC} ${CFLAGS} -L/lib -L/usr/lib -L${TCL_LIBDIR} -L${TK_LIBDIR} -L${LOCALBASE}/lib \
-lm -ltcl${TCL_VER:S/.//} -ltk${TK_VER:S/.//} ${WRKSRC}/*.o ${WRKSRC}/tcpdump/*.o -o ${WRKSRC}/tcpillust -lpcap
do-install: