Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / xaw.buildlink3.mk
blob5507ffc5d0e5a673267e1765c16e907bf11bdafa
1 # $NetBSD: xaw.buildlink3.mk,v 1.5 2007/03/09 02:04:04 rillig Exp $
3 # This file selects the X Athena Widgets (Xaw) implementation.
5 # User-settable variables:
7 # XAW_TYPE
8 # The Xaw type to be selected.
10 # Possible: 3d neXtaw standard xpm
11 # Default: standard
14 .if !defined(XAW_BUILDLINK3_MK)
15 XAW_BUILDLINK3_MK= # defined
17 .include "../../mk/bsd.prefs.mk"
19 BUILD_DEFS+= XAW_TYPE
21 .if ${XAW_TYPE} == "xpm"
22 . include "../../x11/Xaw-Xpm/buildlink3.mk"
23 BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm}
24 .elif ${XAW_TYPE} == "3d"
25 . include "../../x11/Xaw3d/buildlink3.mk"
26 BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d}
27 .elif ${XAW_TYPE} == "neXtaw"
28 . include "../../x11/neXtaw/buildlink3.mk"
29 BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw}
30 .elif ${XAW_TYPE} == "standard"
31 . if ${X11_TYPE} == "modular"
32 . include "../../x11/libXaw/buildlink3.mk"
33 BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.libXaw}
34 . else
35 . include "../../mk/x11.buildlink3.mk"
36 BUILDLINK_PREFIX.Xaw?= ${X11BASE}
37 . endif
38 .else
39 PKG_FAIL_REASON+= "[xaw.buildlink3.mk] Invalid value ${XAW_TYPE} for XAW_TYPE."
40 .endif
42 .endif # XAW_BUILDLINK3_MK