summaryrefslogtreecommitdiff
path: root/print/transfig
diff options
context:
space:
mode:
authorsnj <snj@pkgsrc.org>2004-04-12 20:50:27 +0000
committersnj <snj@pkgsrc.org>2004-04-12 20:50:27 +0000
commit161c8b4a603582d59c298c251bde7ef2287fb377 (patch)
treec97a0c57ca78005f3b4f4e673d4d2cf7d71aa86d /print/transfig
parent9cc55cb3b9a4e4811823e631b0e39530d19be65e (diff)
downloadpkgsrc-161c8b4a603582d59c298c251bde7ef2287fb377.tar.gz
Convert to buildlink3.
Diffstat (limited to 'print/transfig')
-rw-r--r--print/transfig/Makefile8
-rw-r--r--print/transfig/buildlink2.mk23
-rw-r--r--print/transfig/buildlink3.mk21
3 files changed, 25 insertions, 27 deletions
diff --git a/print/transfig/Makefile b/print/transfig/Makefile
index d8792cd848f..e2ae3ee42be 100644
--- a/print/transfig/Makefile
+++ b/print/transfig/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2003/11/10 03:06:12 danw Exp $
+# $NetBSD: Makefile,v 1.24 2004/04/12 20:55:33 snj Exp $
#
DISTNAME= transfig.3.2.4
@@ -10,7 +10,7 @@ MASTER_SITES= ftp://epb.lbl.gov/xfig/
MAINTAINER= root@garbled.net
COMMENT= TeX document creation tool utilizing portable graphics
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
USE_IMAKE= YES
.include "../../mk/bsd.prefs.mk"
@@ -25,7 +25,7 @@ MAKE_ENV+= DDA4="-DA4"
USE_GNU_TOOLS+= make
.endif
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/xpm/buildlink2.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/print/transfig/buildlink2.mk b/print/transfig/buildlink2.mk
deleted file mode 100644
index 1820b38c3b3..00000000000
--- a/print/transfig/buildlink2.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.1 2003/01/07 06:19:05 rh Exp $
-#
-# This Makefile fragment is included by packages that use transfig.
-#
-
-.if !defined(TRANSFIG_BUILDLINK2_MK)
-TRANSFIG_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= transfig
-BUILDLINK_DEPENDS.transfig?= transfig>=3.2.4
-BUILDLINK_PKGSRCDIR.transfig?= ../../print/transfig
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.transfig=transfig
-BUILDLINK_PREFIX.transfig_DEFAULT= ${X11PREFIX}
-
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/xpm/buildlink2.mk"
-
-BUILDLINK_TARGETS+= transfig-buildlink
-
-transfig-buildlink: _BUILDLINK_USE
-
-.endif # TRANSFIG_BUILDLINK2_MK
diff --git a/print/transfig/buildlink3.mk b/print/transfig/buildlink3.mk
new file mode 100644
index 00000000000..d1ad3d44b56
--- /dev/null
+++ b/print/transfig/buildlink3.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/12 20:55:33 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+TRANSFIG_BUILDLINK3_MK:= ${TRANSFIG_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= transfig
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ntransfig}
+BUILDLINK_PACKAGES+= transfig
+
+.if !empty(TRANSFIG_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.transfig+= transfig>=3.2.4
+BUILDLINK_PKGSRCDIR.transfig?= ../../print/transfig
+.endif # TRANSFIG_BUILDLINK3_MK
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}