summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnj <snj>2004-04-25 04:40:48 +0000
committersnj <snj>2004-04-25 04:40:48 +0000
commitb67c9bd243c3ca310cfc104e05b6e03a3456dd46 (patch)
tree218cc477b41bd69187a75285d28ec46a28a4c95b
parent1acf809a6760667f3f69d7735264e5310dbdcff7 (diff)
downloadpkgsrc-b67c9bd243c3ca310cfc104e05b6e03a3456dd46.tar.gz
Convert to buildlink3.
-rw-r--r--graphics/gdchart/Makefile6
-rw-r--r--graphics/gdchart/buildlink3.mk20
-rw-r--r--graphics/py-gdchart/Makefile6
3 files changed, 26 insertions, 6 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/+$//}
diff --git a/graphics/py-gdchart/Makefile b/graphics/py-gdchart/Makefile
index bb6558a39e6..eb006fb55e4 100644
--- a/graphics/py-gdchart/Makefile
+++ b/graphics/py-gdchart/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/01/24 15:46:44 grant Exp $
+# $NetBSD: Makefile,v 1.14 2004/04/25 04:41:19 snj Exp $
#
DISTNAME= gdchart-py-0.6
@@ -11,7 +11,7 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://athani.pair.com/msteed/software/gdchart/
COMMENT= Python interface to GDChart
-USE_BUILDLINK2= yes
+USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
MAKE_ENV= GD_INCLUDE=${LOCALBASE}/include \
GDCHART_INCLUDE=${LOCALBASE}/include \
@@ -34,6 +34,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLE_DIR}
.endfor
-.include "../../graphics/gdchart/buildlink2.mk"
+.include "../../graphics/gdchart/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"