summaryrefslogtreecommitdiff
path: root/devel/dmalloc
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-04-27 03:09:57 +0000
committersnj <snj@pkgsrc.org>2004-04-27 03:09:57 +0000
commit7bdebf24803487049941804bf2aac9ebc164c856 (patch)
treeeac6ef5b03c91018b18823ef21153f9000aa747d /devel/dmalloc
parentd130ecc51b7c4390111ad9153525cc4d08207fd0 (diff)
downloadpkgsrc-7bdebf24803487049941804bf2aac9ebc164c856.tar.gz
Convert to buildlink3.
Diffstat (limited to 'devel/dmalloc')
-rw-r--r--devel/dmalloc/Makefile6
-rw-r--r--devel/dmalloc/buildlink2.mk25
-rw-r--r--devel/dmalloc/buildlink3.mk19
3 files changed, 22 insertions, 28 deletions
diff --git a/devel/dmalloc/Makefile b/devel/dmalloc/Makefile
index 43efe15b8f3..331308dd4c0 100644
--- a/devel/dmalloc/Makefile
+++ b/devel/dmalloc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2004/04/15 18:54:29 drochner Exp $
+# $NetBSD: Makefile,v 1.12 2004/04/27 03:09:58 snj Exp $
DISTNAME= dmalloc-5.3.0
CATEGORIES= devel
@@ -9,7 +9,7 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.dmalloc.com/
COMMENT= Run-time configurable debugging malloc library
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shlib
@@ -23,5 +23,5 @@ post-install:
INFO_FILES= dmalloc.info
-.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/dmalloc/buildlink2.mk b/devel/dmalloc/buildlink2.mk
deleted file mode 100644
index 510f6e22541..00000000000
--- a/devel/dmalloc/buildlink2.mk
+++ /dev/null
@@ -1,25 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2003/07/15 12:56:36 drochner Exp $
-#
-
-.if !defined(DMALLOC_BUILDLINK2_MK)
-DMALLOC_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= dmalloc
-BUILDLINK_DEPENDS.dmalloc?= dmalloc>=4.8.2nb2
-BUILDLINK_PKGSRCDIR.dmalloc?= ../../devel/dmalloc
-
-BUILDLINK_DEPMETHOD.dmalloc?= build
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.dmalloc=dmalloc
-BUILDLINK_PREFIX.dmalloc_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.dmalloc+= include/dmalloc.h
-BUILDLINK_FILES.dmalloc+= lib/libdmalloc.*
-BUILDLINK_FILES.dmalloc+= lib/libdmallocxx.*
-BUILDLINK_FILES.dmalloc+= lib/libdmallocth.*
-BUILDLINK_FILES.dmalloc+= lib/libdmallocthcxx.*
-
-BUILDLINK_TARGETS+= dmalloc-buildlink
-
-dmalloc-buildlink: _BUILDLINK_USE
-
-.endif # DMALLOC_BUILDLINK2_MK
diff --git a/devel/dmalloc/buildlink3.mk b/devel/dmalloc/buildlink3.mk
new file mode 100644
index 00000000000..3891135fe73
--- /dev/null
+++ b/devel/dmalloc/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/27 03:09:58 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+DMALLOC_BUILDLINK3_MK:= ${DMALLOC_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= dmalloc
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndmalloc}
+BUILDLINK_PACKAGES+= dmalloc
+
+.if !empty(DMALLOC_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.dmalloc+= dmalloc>=4.8.2nb2
+BUILDLINK_PKGSRCDIR.dmalloc?= ../../devel/dmalloc
+BUILDLINK_DEPMETHOD.dmalloc?= build
+.endif # DMALLOC_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}