summaryrefslogtreecommitdiff
path: root/devel/libnet
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-04-25 04:13:14 +0000
committersnj <snj@pkgsrc.org>2004-04-25 04:13:14 +0000
commit25e93f88f3fb18991a27d3d3a999485cfd0ea745 (patch)
tree1c1e807efbf27abf70f74086360b3fb0b4a9f5e0 /devel/libnet
parente36972a3c037b62461c2e6b7f752c42a31a79fdb (diff)
downloadpkgsrc-25e93f88f3fb18991a27d3d3a999485cfd0ea745.tar.gz
Convert to buildlink3.
Diffstat (limited to 'devel/libnet')
-rw-r--r--devel/libnet/Makefile4
-rw-r--r--devel/libnet/buildlink3.mk18
2 files changed, 20 insertions, 2 deletions
diff --git a/devel/libnet/Makefile b/devel/libnet/Makefile
index a3aed2316be..bee2516ac52 100644
--- a/devel/libnet/Makefile
+++ b/devel/libnet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2004/01/20 12:13:28 agc Exp $
+# $NetBSD: Makefile,v 1.17 2004/04/25 04:13:14 snj Exp $
#
DISTNAME= libnet-1.0.1b
@@ -11,7 +11,7 @@ HOMEPAGE= http://www.packetfactory.net/libnet/
COMMENT= C library for portable packet creation and injection
WRKSRC= ${WRKDIR}/${DISTNAME:C/l/L/}
-USE_BUILDLINK2= # defined
+USE_BUILDLINK3= yes
USE_LIBTOOL= # defined
GNU_CONFIGURE= # defined
diff --git a/devel/libnet/buildlink3.mk b/devel/libnet/buildlink3.mk
new file mode 100644
index 00000000000..8ca0e11aa5d
--- /dev/null
+++ b/devel/libnet/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/25 04:13:14 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBNET_BUILDLINK3_MK:= ${LIBNET_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libnet
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibnet}
+BUILDLINK_PACKAGES+= libnet
+
+.if !empty(LIBNET_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libnet+= libnet>=1.0.1bnb3
+BUILDLINK_PKGSRCDIR.libnet?= ../../devel/libnet
+.endif # LIBNET_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}