Module Name: src
Committed By: mbalmer
Date: Sun Jun 2 11:02:40 UTC 2013
Modified Files:
src/external/mit/xorg/lib/libGLw: Makefile
src/share/man/man5: mk.conf.5
src/share/mk: bsd.README bsd.own.mk
Log Message:
New variable MKX11MOTIF to enable building libGLw with Motif support.
Defaults to 'no'.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/libGLw/Makefile
cvs rdiff -u -r1.66 -r1.67 src/share/man/man5/mk.conf.5
cvs rdiff -u -r1.317 -r1.318 src/share/mk/bsd.README
cvs rdiff -u -r1.730 -r1.731 src/share/mk/bsd.own.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mit/xorg/lib/libGLw/Makefile
diff -u src/external/mit/xorg/lib/libGLw/Makefile:1.2 src/external/mit/xorg/lib/libGLw/Makefile:1.3
--- src/external/mit/xorg/lib/libGLw/Makefile:1.2 Sat Sep 13 04:32:30 2008
+++ src/external/mit/xorg/lib/libGLw/Makefile Sun Jun 2 11:02:40 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/09/13 04:32:30 cube Exp $
+# $NetBSD: Makefile,v 1.3 2013/06/02 11:02:40 mbalmer Exp $
.include <bsd.own.mk>
@@ -9,6 +9,16 @@ SRCS= GLwDrawA.c
CPPFLAGS+= ${X11FLAGS.THREADLIB}
+# Motif stubs for glwMDrawingAreaClass are enabled by setting MKX11MOTIF
+# in /etc/mk.conf. If Motif is not installed in the default location
+# (/usr/pkg), set X11MOTIFPATH as well.
+
+.if "${MKX11MOTIF}" == "yes"
+X11MOTIFPATH?= /usr/pkg
+SRCS+= GLwMDrawA.c
+CPPFLAGS+= -I${X11MOTIFPATH}/include
+.endif
+
LIBDPLIBS= Xext ${.CURDIR}/../libXext \
X11 ${.CURDIR}/../libX11/dynamic \
Xxf86vm ${.CURDIR}/../libXxf86vm \
Index: src/share/man/man5/mk.conf.5
diff -u src/share/man/man5/mk.conf.5:1.66 src/share/man/man5/mk.conf.5:1.67
--- src/share/man/man5/mk.conf.5:1.66 Fri Feb 15 21:03:17 2013
+++ src/share/man/man5/mk.conf.5 Sun Jun 2 11:02:40 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: mk.conf.5,v 1.66 2013/02/15 21:03:17 wiz Exp $
+.\" $NetBSD: mk.conf.5,v 1.67 2013/06/02 11:02:40 mbalmer Exp $
.\"
.\" Copyright (c) 1999-2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd February 15, 2013
+.Dd June 2, 2013
.Dt MK.CONF 5
.Os
.\" turn off hyphenation
@@ -821,6 +821,13 @@ If
do not build and install the X fonts.
.DFLTy
.
+.It Sy MKX11MOTIF
+.YorN
+If
+.Dq yes ,
+build the native Xorg libGLw with Motif stubs.
+.DFLTn
+.
.It Sy MKYP
.YorN
Indicates whether the YP (NIS) infrastructure
Index: src/share/mk/bsd.README
diff -u src/share/mk/bsd.README:1.317 src/share/mk/bsd.README:1.318
--- src/share/mk/bsd.README:1.317 Fri May 31 06:48:43 2013
+++ src/share/mk/bsd.README Sun Jun 2 11:02:40 2013
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.317 2013/05/31 06:48:43 mrg Exp $
+# $NetBSD: bsd.README,v 1.318 2013/06/02 11:02:40 mbalmer Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -391,6 +391,12 @@ MKX11FONTS If not "no", if ${X11FLAVOUR}
will be empty.
Default: yes
+MKX11MOTIF: If "yes" and ${X11FLAVOUR} is "Xorg", build the native X11
+ libGLw with Motif stubs. If Motif is not installed in the
+ default location /usr/pkg, the location can be specified
+ using the X11MOTIFPATH variable.
+ Default: no
+
MKYP If "no", disables building of YP (NIS)
infrastructure (libraries and support programs).
Default: yes
Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.730 src/share/mk/bsd.own.mk:1.731
--- src/share/mk/bsd.own.mk:1.730 Fri May 3 16:05:11 2013
+++ src/share/mk/bsd.own.mk Sun Jun 2 11:02:40 2013
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.730 2013/05/03 16:05:11 matt Exp $
+# $NetBSD: bsd.own.mk,v 1.731 2013/06/02 11:02:40 mbalmer Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -898,7 +898,7 @@ _MKVARS.no= \
MKPIGZGZIP \
MKREPRO \
MKSOFTFLOAT MKSTRIPIDENT MKTPM \
- MKUNPRIVED MKUPDATE MKX11 MKZFS
+ MKUNPRIVED MKUPDATE MKX11 MKX11MOTIF MKZFS
.for var in ${_MKVARS.no}
${var}?=no
.endfor