summaryrefslogtreecommitdiff
path: root/net/tcpreplay/Makefile
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-02-18 18:49:03 +0000
committeradrianp <adrianp@pkgsrc.org>2007-02-18 18:49:03 +0000
commitd26033d7b9e4efe3bcb307b70c47cfb77e1e7719 (patch)
treeac0acca89528302d815648e146e5ede098822ab7 /net/tcpreplay/Makefile
parent1301f2e671211d3eb100a87133597c2ee1c2f017 (diff)
downloadpkgsrc-d26033d7b9e4efe3bcb307b70c47cfb77e1e7719.tar.gz
buildlink updates and patches to handle the new libnet package structure
bump PKGREVISION
Diffstat (limited to 'net/tcpreplay/Makefile')
-rw-r--r--net/tcpreplay/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/tcpreplay/Makefile b/net/tcpreplay/Makefile
index 7431165d85c..35362ddda0d 100644
--- a/net/tcpreplay/Makefile
+++ b/net/tcpreplay/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2006/04/06 06:22:35 reed Exp $
+# $NetBSD: Makefile,v 1.16 2007/02/18 18:51:55 adrianp Exp $
DISTNAME= tcpreplay-2.3.5
+PKGREVSION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcpreplay/}
@@ -12,10 +13,17 @@ BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.6
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-libnet=${BUILDLINK_PREFIX.libnet}
CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap}
CONFIGURE_ARGS+= --without-pcapnav-config
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= pre-configure
+SUBST_FILES.conf= configure
+SUBST_SED.conf= -e "s|libnet-config|libnet11-config|g"
+SUBST_SED.conf+= -e "s|@@LN_INC@@|${BUILDLINK_PREFIX.libnet11}/include/libnet11|g"
+SUBST_SED.conf+= -e "s|@@LN_LIB@@|${BUILDLINK_PREFIX.libnet11}/lib/libnet11|g"
+SUBST_MESSAGE.conf= Fixing configuration script.
+
.include "../../devel/libnet11/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"