diff options
author | rillig <rillig@pkgsrc.org> | 2007-03-09 02:04:04 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-03-09 02:04:04 +0000 |
commit | ffc69c656886b9ba757588fb059d77db48edf2dd (patch) | |
tree | 3dcce07d69d3d9347afcb07df69a14b287cc8256 /mk/xaw.buildlink3.mk | |
parent | aa979492e375a22744bac24979618b80578f1ef8 (diff) | |
download | pkgsrc-ffc69c656886b9ba757588fb059d77db48edf2dd.tar.gz |
Added documentation and error checking.
Diffstat (limited to 'mk/xaw.buildlink3.mk')
-rw-r--r-- | mk/xaw.buildlink3.mk | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/mk/xaw.buildlink3.mk b/mk/xaw.buildlink3.mk index 5794dfb843f..a90464d0c18 100644 --- a/mk/xaw.buildlink3.mk +++ b/mk/xaw.buildlink3.mk @@ -1,13 +1,23 @@ -# $NetBSD: xaw.buildlink3.mk,v 1.4 2006/11/06 10:51:51 joerg Exp $ +# $NetBSD: xaw.buildlink3.mk,v 1.5 2007/03/09 02:04:04 rillig Exp $ +# +# This file selects the X Athena Widgets (Xaw) implementation. +# +# User-settable variables: +# +# XAW_TYPE +# The Xaw type to be selected. +# +# Possible: 3d neXtaw standard xpm +# Default: standard +# .if !defined(XAW_BUILDLINK3_MK) XAW_BUILDLINK3_MK= # defined -# Pull in setting for XAW_TYPE. -XAW_TYPE?= standard - .include "../../mk/bsd.prefs.mk" +BUILD_DEFS+= XAW_TYPE + .if ${XAW_TYPE} == "xpm" . include "../../x11/Xaw-Xpm/buildlink3.mk" BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm} @@ -17,12 +27,16 @@ BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d} .elif ${XAW_TYPE} == "neXtaw" . include "../../x11/neXtaw/buildlink3.mk" BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw} -.elif ${X11_TYPE} == "modular" -.include "../../x11/libXaw/buildlink3.mk" +.elif ${XAW_TYPE} == "standard" +. if ${X11_TYPE} == "modular" +. include "../../x11/libXaw/buildlink3.mk" BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.libXaw} -.else -. include "../../mk/x11.buildlink3.mk" +. else +. include "../../mk/x11.buildlink3.mk" BUILDLINK_PREFIX.Xaw?= ${X11BASE} +. endif +.else +PKG_FAIL_REASON+= "[xaw.buildlink3.mk] Invalid value ${XAW_TYPE} for XAW_TYPE." .endif MAKE_ENV+= LIBXAW=${LIBXAW:Q} |