summaryrefslogtreecommitdiff
path: root/net/gspoof/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-12 08:12:41 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-05-12 08:12:41 +0000
commit7b3f5df25bd6541c53817b52b7c5e8cfc41ff339 (patch)
tree1cb33bffbf1a6ec61e391b20220e0e89fc17b589 /net/gspoof/Makefile
parentupgrade to 5.1.5 (diff)
- Fix build on -stable
- Utilize USE_GETOPT_LONG - Utilize NOPORTDOCS PR: 51895 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=80803
Diffstat (limited to 'net/gspoof/Makefile')
-rw-r--r--net/gspoof/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/net/gspoof/Makefile b/net/gspoof/Makefile
index 5159ab82d1dc..58796f3f5b11 100644
--- a/net/gspoof/Makefile
+++ b/net/gspoof/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gspoof
PORTVERSION= 2.1.1
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,16 +18,22 @@ COMMENT= Console/GTK+ TCP/IP Packets Forger
BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel
-USE_REINPLACE= yes
-USE_GNOME= gtk12
WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_GETOPT_LONG= yes
+USE_GNOME= gtk12
+USE_REINPLACE= yes
+MAKE_ARGS= CC="${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
ALL_TARGET= gtk
-CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
post-patch:
- @${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|g" ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e "s|gtk-config|\$${GTK_CONFIG}|g" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gspoof ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>