summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-08-23 04:24:21 +0000
committerjlam <jlam>2001-08-23 04:24:21 +0000
commit2b3a25f294c80ee47c2837b7690b8b49227dd6ad (patch)
tree5ec2538bff593df702327fcb8ccd9d5a331f9a62 /mk
parentf4f2c56f4898e07dca177e88c2aa9ac150bc9cea (diff)
downloadpkgsrc-2b3a25f294c80ee47c2837b7690b8b49227dd6ad.tar.gz
Create buildlink.mk files for the various Xaw libraries. Instead of
USE_XAW, a package Makefile may just include mk/xaw.buildlink.mk, which pulls in the correct buildlink.mk file depending on the value of XAW_TYPE. A package Makefile may also rely on LIBXAW being set to the correct libraries.
Diffstat (limited to 'mk')
-rw-r--r--mk/xaw.buildlink.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/mk/xaw.buildlink.mk b/mk/xaw.buildlink.mk
new file mode 100644
index 00000000000..df4bbc17806
--- /dev/null
+++ b/mk/xaw.buildlink.mk
@@ -0,0 +1,26 @@
+# $NetBSD: xaw.buildlink.mk,v 1.1 2001/08/23 04:24:21 jlam Exp $
+#
+# This Makefile fragment is included by packages that use Xaw.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally set XAW_TYPE to the Xaw library desired, and
+# (2) Include this Makefile fragment in the package Makefile.
+
+.if !defined(XAW_BUILDLINK_MK)
+XAW_BUILDLINK_MK= # defined
+
+# Pull in setting for XAW_TYPE.
+XAW_TYPE?= standard
+.include "../../mk/bsd.prefs.mk"
+
+.if ${XAW_TYPE} == "xpm"
+.include "../../x11/Xaw-Xpm/buildlink.mk"
+.elif ${XAW_TYPE} == "3d"
+.include "../../x11/Xaw3d/buildlink.mk"
+.else
+LIBXAW?= -L${BUILDLINK_X11_DIR}/lib -lXaw
+MAKE_ENV+= LIBXAW="${LIBXAW}"
+.endif
+
+.endif # XAW_BUILDLINK_MK