2007-03-09 03:04:04 +01:00
|
|
|
# $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
|
|
|
|
#
|
2004-04-12 01:35:16 +02:00
|
|
|
|
|
|
|
.if !defined(XAW_BUILDLINK3_MK)
|
|
|
|
XAW_BUILDLINK3_MK= # defined
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-03-09 03:04:04 +01:00
|
|
|
BUILD_DEFS+= XAW_TYPE
|
|
|
|
|
2004-04-12 01:35:16 +02:00
|
|
|
.if ${XAW_TYPE} == "xpm"
|
|
|
|
. include "../../x11/Xaw-Xpm/buildlink3.mk"
|
|
|
|
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm}
|
|
|
|
.elif ${XAW_TYPE} == "3d"
|
|
|
|
. include "../../x11/Xaw3d/buildlink3.mk"
|
|
|
|
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d}
|
|
|
|
.elif ${XAW_TYPE} == "neXtaw"
|
|
|
|
. include "../../x11/neXtaw/buildlink3.mk"
|
|
|
|
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw}
|
2007-03-09 03:04:04 +01:00
|
|
|
.elif ${XAW_TYPE} == "standard"
|
|
|
|
. if ${X11_TYPE} == "modular"
|
|
|
|
. include "../../x11/libXaw/buildlink3.mk"
|
2006-11-06 11:51:51 +01:00
|
|
|
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.libXaw}
|
2007-03-09 03:04:04 +01:00
|
|
|
. else
|
|
|
|
. include "../../mk/x11.buildlink3.mk"
|
2004-04-12 01:35:16 +02:00
|
|
|
BUILDLINK_PREFIX.Xaw?= ${X11BASE}
|
2007-03-09 03:04:04 +01:00
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
PKG_FAIL_REASON+= "[xaw.buildlink3.mk] Invalid value ${XAW_TYPE} for XAW_TYPE."
|
2004-04-12 01:35:16 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-02 21:33:56 +02:00
|
|
|
MAKE_ENV+= LIBXAW=${LIBXAW:Q}
|
2004-04-12 01:35:16 +02:00
|
|
|
|
|
|
|
.endif # XAW_BUILDLINK3_MK
|