summaryrefslogtreecommitdiffstats
path: root/net/netdude/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/netdude/Makefile')
-rw-r--r--net/netdude/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/net/netdude/Makefile b/net/netdude/Makefile
new file mode 100644
index 0000000..a38f46e
--- /dev/null
+++ b/net/netdude/Makefile
@@ -0,0 +1,45 @@
+# ex:ts=8
+# New ports collection makefile for: netdude
+# Date created: Dec 27, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= netdude
+PORTVERSION= 0.3.1
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext \
+ iconv:${PORTSDIR}/converters/libiconv \
+ ltdl:${PORTSDIR}/devel/libtool
+
+USE_REINPLACE= yes
+USE_GNOMENG= yes
+USE_GNOME= glib12 gtk12
+USE_LIBTOOL= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -lltdl"
+USE_GMAKE= yes
+
+MAN1= netdude.1
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|g" \
+ -e "s|glib-config|${GLIB_CONFIG}|g" ${WRKSRC}/configure
+.for file in nd_icmp.c nd_icmp.h nd_icmp_callbacks.c
+ @${REINPLACE_CMD} -e "s|struct icmphdr|struct icmp|g" \
+ ${WRKSRC}/protocols/icmp/${file}
+.endfor
+ @${REINPLACE_CMD} -e "s|->type|->icmp_type|g" \
+ -e "s|->code|->icmp_code|g" \
+ -e "s|->checksum|->icmp_cksum|g" \
+ -e "s|->un.echo.id|->icmp_id|g" \
+ -e "s|->un.echo.sequence|->icmp_seq|g" \
+ ${WRKSRC}/protocols/icmp/nd_icmp.c
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud