summaryrefslogtreecommitdiff
path: root/graphics/gdchart
diff options
context:
space:
mode:
authorsnj <snj>2004-04-25 04:40:48 +0000
committersnj <snj>2004-04-25 04:40:48 +0000
commitb11db91d5db002b201859479bc13f71cb981df64 (patch)
tree218cc477b41bd69187a75285d28ec46a28a4c95b /graphics/gdchart
parent2144e036e02510301c5699d707bbc84f97071347 (diff)
downloadpkgsrc-b11db91d5db002b201859479bc13f71cb981df64.tar.gz
Convert to buildlink3.
Diffstat (limited to 'graphics/gdchart')
-rw-r--r--graphics/gdchart/Makefile6
-rw-r--r--graphics/gdchart/buildlink3.mk20
2 files changed, 23 insertions, 3 deletions
diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile
index 68a81042f40..2aaa14ec481 100644
--- a/graphics/gdchart/Makefile
+++ b/graphics/gdchart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2003/07/17 21:40:42 grant Exp $
+# $NetBSD: Makefile,v 1.12 2004/04/25 04:40:48 snj Exp $
#
DISTNAME= gdchart0.11.4dev
@@ -14,7 +14,7 @@ COMMENT= Easy to use, fast C API for creating charts and graphs
MAKEFILE= makefile
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
USE_LIBTOOL= YES
TEST_TARGET= gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
@@ -42,5 +42,5 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/gdc_pie_samp.c \
${PREFIX}/share/examples/gdchart
-.include "../../graphics/gd/buildlink2.mk"
+.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/gdchart/buildlink3.mk b/graphics/gdchart/buildlink3.mk
new file mode 100644
index 00000000000..e4163713cfa
--- /dev/null
+++ b/graphics/gdchart/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/25 04:40:48 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GDCHART_BUILDLINK3_MK:= ${GDCHART_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= gdchart
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ngdchart}
+BUILDLINK_PACKAGES+= gdchart
+
+.if !empty(GDCHART_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.gdchart+= gdchart>=0.11.4nb1
+BUILDLINK_PKGSRCDIR.gdchart?= ../../graphics/gdchart
+.endif # GDCHART_BUILDLINK3_MK
+
+.include "../../graphics/gd/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}