summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-11 00:50:14 +0000
committerjlam <jlam@pkgsrc.org>2004-03-11 00:50:14 +0000
commitd62c2888d068cab04de17a530b38e37032db8a3b (patch)
treea582a81f8a9af3a8ca99be181383e25904edb742 /pkgtools
parent05cce146f3ed5d2ff5da46a5e38622f31d759af3 (diff)
downloadpkgsrc-d62c2888d068cab04de17a530b38e37032db8a3b.tar.gz
Add a buildlink3.mk file for pkgtools/x11-links. This isn't meant to be
included manually by a package, but is intended for inclusion by bsd.buildlink3.mk. It will be used to avoid special-casing x11-links when creating symlinks into the buildlink directory.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/x11-links/buildlink3.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgtools/x11-links/buildlink3.mk b/pkgtools/x11-links/buildlink3.mk
new file mode 100644
index 00000000000..0ed4b99f74e
--- /dev/null
+++ b/pkgtools/x11-links/buildlink3.mk
@@ -0,0 +1,31 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/03/11 00:50:14 jlam Exp $
+#
+# Don't include this file manually! It will be included as necessary
+# by bsd.buildlink3.mk.
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+X11_LINKS_BUILDLINK3_MK:= ${X11_LINKS_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= x11-links
+.endif
+
+# x11-links must come first so that packages listed later can overwrite
+# any symlinks created by buildlinking x11-links.
+#
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nx11-links}
+BUILDLINK_PACKAGES:= x11-links ${BUILDLINK_PACKAGES}
+
+.if !empty(X11_LINKS_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.x11-links+= x11-links>=0.23
+BUILDLINK_PKGSRCDIR.x11-links?= ../../pkgtools/x11-links
+BUILDLINK_DEPMETHOD.x11-links?= build
+
+# Rename the symlinks so that they appear in ${BUILDLINK_X11_DIR}/include
+# and ${BUILDLINK_X11_DIR}/lib.
+#
+BUILDLINK_TRANSFORM.x11-links+= -e "s|/share/x11-links/|/|"
+
+.endif # X11_LINKS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}