Enable more functionality in modular-xorg-server: - always include dri3 support with dri option (can still use dri2) - always include GLAMOR support with dri option - enable xtrans file descriptor passing - require mesa 11 - Bump PKGREVISION GLAMOR is experimental OpenGL accelerated 2D graphics. It works with xf86-video-ati and xf86-video-intel but must be explicitly enabled. Sample configuration: ---8<--- # /usr/pkg/share/X11/xorg.conf.d/20-glamor.conf Section "Module" Load "dri2" Load "glamoregl" EndSection Section "Device" Identifier "radeon" # or intel Driver "radeon" # or intel Option "AccelMethod" "glamor" EndSection ---8<---diff -r1.102 -r1.103 pkgsrc/x11/modular-xorg-server/Makefile
(tnn)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.102 2015/09/13 04:59:35 tnn Exp $ | 1 | # $NetBSD: Makefile,v 1.103 2015/09/26 08:47:17 tnn Exp $ | |
2 | 2 | |||
3 | DISTNAME= xorg-server-${XORG_VERSION} | 3 | DISTNAME= xorg-server-${XORG_VERSION} | |
4 | PKGNAME= modular-${DISTNAME} | 4 | PKGNAME= modular-${DISTNAME} | |
5 | PKGREVISION= 5 | 5 | PKGREVISION= 6 | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | COMMENT= Modular X11 server from modular X.org | 8 | COMMENT= Modular X11 server from modular X.org | |
9 | 9 | |||
10 | SPECIAL_PERMS+= bin/Xorg ${SETUID_ROOT_PERMS} | 10 | SPECIAL_PERMS+= bin/Xorg ${SETUID_ROOT_PERMS} | |
11 | 11 | |||
12 | .include "Makefile.common" | 12 | .include "Makefile.common" | |
13 | 13 | |||
14 | CONFIGURE_ARGS+= --enable-xorg | 14 | CONFIGURE_ARGS+= --enable-xorg | |
15 | CONFIGURE_ARGS+= --disable-xephyr | 15 | CONFIGURE_ARGS+= --disable-xephyr | |
16 | CONFIGURE_ARGS+= --disable-kdrive | 16 | CONFIGURE_ARGS+= --disable-kdrive | |
17 | 17 | |||
18 | .include "options.mk" | 18 | .include "options.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.1 2015/07/07 21:51:22 khorben Exp $ | 1 | # $NetBSD: Makefile.common,v 1.2 2015/09/26 08:47:17 tnn Exp $ | |
2 | # used by x11/modular-xorg-server/Makefile | 2 | # used by x11/modular-xorg-server/Makefile | |
3 | # used by x11/modular-xorg-xephyr/Makefile | 3 | # used by x11/modular-xorg-xephyr/Makefile | |
4 | 4 | |||
5 | XORG_VERSION= 1.17.2 | 5 | XORG_VERSION= 1.17.2 | |
6 | CATEGORIES= x11 | 6 | CATEGORIES= x11 | |
7 | MASTER_SITES= ${MASTER_SITE_XORG:=xserver/} | 7 | MASTER_SITES= ${MASTER_SITE_XORG:=xserver/} | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | HOMEPAGE= http://xorg.freedesktop.org/ | 10 | HOMEPAGE= http://xorg.freedesktop.org/ | |
11 | LICENSE= mit AND modified-bsd AND x11 # with no-advertising clause | 11 | LICENSE= mit AND modified-bsd AND x11 # with no-advertising clause | |
12 | 12 | |||
13 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
@@ -58,26 +58,27 @@ LEGACY_FONT_PATHS+= ${PREFIX}/lib/X11/fo | @@ -58,26 +58,27 @@ LEGACY_FONT_PATHS+= ${PREFIX}/lib/X11/fo | |||
58 | .endfor | 58 | .endfor | |
59 | FONT_PATHS= ${DEFAULT_FONT_PATHS} ${LEGACY_FONT_PATHS} | 59 | FONT_PATHS= ${DEFAULT_FONT_PATHS} ${LEGACY_FONT_PATHS} | |
60 | 60 | |||
61 | CONFIGURE_ARGS+= --with-default-font-path=${FONT_PATHS:ts,:Q} | 61 | CONFIGURE_ARGS+= --with-default-font-path=${FONT_PATHS:ts,:Q} | |
62 | 62 | |||
63 | CONFIGURE_ARGS+= --disable-config-hal | 63 | CONFIGURE_ARGS+= --disable-config-hal | |
64 | CONFIGURE_ARGS+= --disable-dmx | 64 | CONFIGURE_ARGS+= --disable-dmx | |
65 | CONFIGURE_ARGS+= --disable-xwin | 65 | CONFIGURE_ARGS+= --disable-xwin | |
66 | CONFIGURE_ARGS+= --disable-xephyr | 66 | CONFIGURE_ARGS+= --disable-xephyr | |
67 | CONFIGURE_ARGS+= --disable-kdrive | 67 | CONFIGURE_ARGS+= --disable-kdrive | |
68 | #CONFIGURE_ARGS+= --disable-kdrive-vesa | 68 | #CONFIGURE_ARGS+= --disable-kdrive-vesa | |
69 | CONFIGURE_ARGS+= --disable-xfake | 69 | CONFIGURE_ARGS+= --disable-xfake | |
70 | CONFIGURE_ARGS+= --disable-xfbdev | 70 | CONFIGURE_ARGS+= --disable-xfbdev | |
71 | CONFIGURE_ARGS+= --enable-xtrans-send-fds | |||
71 | 72 | |||
72 | CONFIGURE_ARGS+= --with-int10=x86emu | 73 | CONFIGURE_ARGS+= --with-int10=x86emu | |
73 | 74 | |||
74 | CONFIGURE_ENV+= APP_MAN_SUFFIX=1 FILE_MAN_SUFFIX=5 | 75 | CONFIGURE_ENV+= APP_MAN_SUFFIX=1 FILE_MAN_SUFFIX=5 | |
75 | CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 | 76 | CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4 | |
76 | 77 | |||
77 | PLIST_VARS+= sunos | 78 | PLIST_VARS+= sunos | |
78 | PLIST_SUBST+= SUNOS_ARCH=${SUNOS_ARCH} | 79 | PLIST_SUBST+= SUNOS_ARCH=${SUNOS_ARCH} | |
79 | 80 | |||
80 | .if ${OPSYS} == "SunOS" | 81 | .if ${OPSYS} == "SunOS" | |
81 | PLIST.sunos= yes | 82 | PLIST.sunos= yes | |
82 | . if ${MACHINE_ARCH} == "i386" | 83 | . if ${MACHINE_ARCH} == "i386" | |
83 | SUNOS_ARCH= ia32 | 84 | SUNOS_ARCH= ia32 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.22 2015/09/13 04:59:35 tnn Exp $ | 1 | @comment $NetBSD: PLIST,v 1.23 2015/09/26 08:47:17 tnn Exp $ | |
2 | bin/X | 2 | bin/X | |
3 | bin/Xnest | 3 | bin/Xnest | |
4 | bin/Xorg | 4 | bin/Xorg | |
5 | bin/Xvfb | 5 | bin/Xvfb | |
6 | bin/cvt | 6 | bin/cvt | |
7 | bin/gtf | 7 | bin/gtf | |
8 | include/xorg/BT.h | 8 | include/xorg/BT.h | |
9 | include/xorg/IBM.h | 9 | include/xorg/IBM.h | |
10 | include/xorg/TI.h | 10 | include/xorg/TI.h | |
11 | include/xorg/XIstubs.h | 11 | include/xorg/XIstubs.h | |
12 | include/xorg/Xprintf.h | 12 | include/xorg/Xprintf.h | |
13 | include/xorg/callback.h | 13 | include/xorg/callback.h | |
14 | include/xorg/client.h | 14 | include/xorg/client.h | |
@@ -23,46 +23,46 @@ include/xorg/cursorstr.h | @@ -23,46 +23,46 @@ include/xorg/cursorstr.h | |||
23 | include/xorg/damage.h | 23 | include/xorg/damage.h | |
24 | include/xorg/damagestr.h | 24 | include/xorg/damagestr.h | |
25 | include/xorg/dbestruct.h | 25 | include/xorg/dbestruct.h | |
26 | include/xorg/dgaproc.h | 26 | include/xorg/dgaproc.h | |
27 | include/xorg/dix.h | 27 | include/xorg/dix.h | |
28 | include/xorg/dixaccess.h | 28 | include/xorg/dixaccess.h | |
29 | include/xorg/dixevents.h | 29 | include/xorg/dixevents.h | |
30 | include/xorg/dixfont.h | 30 | include/xorg/dixfont.h | |
31 | include/xorg/dixfontstr.h | 31 | include/xorg/dixfontstr.h | |
32 | include/xorg/dixgrabs.h | 32 | include/xorg/dixgrabs.h | |
33 | include/xorg/dixstruct.h | 33 | include/xorg/dixstruct.h | |
34 | ${PLIST.dri}include/xorg/dri.h | 34 | ${PLIST.dri}include/xorg/dri.h | |
35 | ${PLIST.dri}include/xorg/dri2.h | 35 | ${PLIST.dri}include/xorg/dri2.h | |
36 | ${PLIST.dri3}include/xorg/dri3.h | 36 | ${PLIST.dri}include/xorg/dri3.h | |
37 | ${PLIST.dri}include/xorg/dristruct.h | 37 | ${PLIST.dri}include/xorg/dristruct.h | |
38 | include/xorg/edid.h | 38 | include/xorg/edid.h | |
39 | include/xorg/events.h | 39 | include/xorg/events.h | |
40 | include/xorg/exa.h | 40 | include/xorg/exa.h | |
41 | include/xorg/exevents.h | 41 | include/xorg/exevents.h | |
42 | include/xorg/extension.h | 42 | include/xorg/extension.h | |
43 | include/xorg/extinit.h | 43 | include/xorg/extinit.h | |
44 | include/xorg/extnsionst.h | 44 | include/xorg/extnsionst.h | |
45 | include/xorg/fb.h | 45 | include/xorg/fb.h | |
46 | include/xorg/fbdevhw.h | 46 | include/xorg/fbdevhw.h | |
47 | include/xorg/fboverlay.h | 47 | include/xorg/fboverlay.h | |
48 | include/xorg/fbpict.h | 48 | include/xorg/fbpict.h | |
49 | include/xorg/fbrop.h | 49 | include/xorg/fbrop.h | |
50 | include/xorg/fourcc.h | 50 | include/xorg/fourcc.h | |
51 | include/xorg/gc.h | 51 | include/xorg/gc.h | |
52 | include/xorg/gcstruct.h | 52 | include/xorg/gcstruct.h | |
53 | include/xorg/geext.h | 53 | include/xorg/geext.h | |
54 | include/xorg/geint.h | 54 | include/xorg/geint.h | |
55 | ${PLIST.glamor}include/xorg/glamor.h | 55 | ${PLIST.dri}include/xorg/glamor.h | |
56 | include/xorg/globals.h | 56 | include/xorg/globals.h | |
57 | include/xorg/glx_extinit.h | 57 | include/xorg/glx_extinit.h | |
58 | include/xorg/glyphstr.h | 58 | include/xorg/glyphstr.h | |
59 | include/xorg/hotplug.h | 59 | include/xorg/hotplug.h | |
60 | include/xorg/i2c_def.h | 60 | include/xorg/i2c_def.h | |
61 | include/xorg/input.h | 61 | include/xorg/input.h | |
62 | include/xorg/inputstr.h | 62 | include/xorg/inputstr.h | |
63 | include/xorg/list.h | 63 | include/xorg/list.h | |
64 | include/xorg/mi.h | 64 | include/xorg/mi.h | |
65 | include/xorg/micmap.h | 65 | include/xorg/micmap.h | |
66 | include/xorg/micoord.h | 66 | include/xorg/micoord.h | |
67 | include/xorg/migc.h | 67 | include/xorg/migc.h | |
68 | include/xorg/miline.h | 68 | include/xorg/miline.h | |
@@ -162,27 +162,27 @@ include/xorg/xkbrules.h | @@ -162,27 +162,27 @@ include/xorg/xkbrules.h | |||
162 | include/xorg/xkbsrv.h | 162 | include/xorg/xkbsrv.h | |
163 | include/xorg/xkbstr.h | 163 | include/xorg/xkbstr.h | |
164 | include/xorg/xorg-server.h | 164 | include/xorg/xorg-server.h | |
165 | include/xorg/xorgVersion.h | 165 | include/xorg/xorgVersion.h | |
166 | include/xorg/xserver-properties.h | 166 | include/xorg/xserver-properties.h | |
167 | include/xorg/xvdix.h | 167 | include/xorg/xvdix.h | |
168 | include/xorg/xvmcext.h | 168 | include/xorg/xvmcext.h | |
169 | lib/pkgconfig/xorg-server.pc | 169 | lib/pkgconfig/xorg-server.pc | |
170 | ${PLIST.dri}lib/xorg/modules/drivers/modesetting_drv.la | 170 | ${PLIST.dri}lib/xorg/modules/drivers/modesetting_drv.la | |
171 | ${PLIST.dri}lib/xorg/modules/extensions/libglx.la | 171 | ${PLIST.dri}lib/xorg/modules/extensions/libglx.la | |
172 | lib/xorg/modules/libexa.la | 172 | lib/xorg/modules/libexa.la | |
173 | lib/xorg/modules/libfb.la | 173 | lib/xorg/modules/libfb.la | |
174 | lib/xorg/modules/libfbdevhw.la | 174 | lib/xorg/modules/libfbdevhw.la | |
175 | ${PLIST.glamor}lib/xorg/modules/libglamoregl.la | 175 | ${PLIST.dri}lib/xorg/modules/libglamoregl.la | |
176 | lib/xorg/modules/libint10.la | 176 | lib/xorg/modules/libint10.la | |
177 | lib/xorg/modules/libshadow.la | 177 | lib/xorg/modules/libshadow.la | |
178 | lib/xorg/modules/libshadowfb.la | 178 | lib/xorg/modules/libshadowfb.la | |
179 | lib/xorg/modules/libvbe.la | 179 | lib/xorg/modules/libvbe.la | |
180 | lib/xorg/modules/libvgahw.la | 180 | lib/xorg/modules/libvgahw.la | |
181 | lib/xorg/modules/libwfb.la | 181 | lib/xorg/modules/libwfb.la | |
182 | lib/xorg/protocol.txt | 182 | lib/xorg/protocol.txt | |
183 | man/man1/Xnest.1 | 183 | man/man1/Xnest.1 | |
184 | man/man1/Xorg.1 | 184 | man/man1/Xorg.1 | |
185 | man/man1/Xserver.1 | 185 | man/man1/Xserver.1 | |
186 | man/man1/Xvfb.1 | 186 | man/man1/Xvfb.1 | |
187 | man/man1/cvt.1 | 187 | man/man1/cvt.1 | |
188 | man/man1/gtf.1 | 188 | man/man1/gtf.1 |
@@ -1,48 +1,40 @@ | @@ -1,48 +1,40 @@ | |||
1 | # $NetBSD: options.mk,v 1.12 2015/09/13 04:59:35 tnn Exp $ | 1 | # $NetBSD: options.mk,v 1.13 2015/09/26 08:47:17 tnn Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.modular-xorg-server | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.modular-xorg-server | |
4 | PKG_SUPPORTED_OPTIONS= dri inet6 debug dtrace | 4 | PKG_SUPPORTED_OPTIONS= dri inet6 debug dtrace | |
5 | PKG_SUGGESTED_OPTIONS= dri inet6 | 5 | PKG_SUGGESTED_OPTIONS= dri inet6 | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | PLIST_VARS+= dri dri3 dtrace glamor | 9 | PLIST_VARS+= dri dtrace | |
10 | 10 | |||
11 | .if !empty(PKG_OPTIONS:Mdri) | 11 | .if !empty(PKG_OPTIONS:Mdri) | |
12 | .include "../../graphics/libepoxy/buildlink3.mk" | 12 | .include "../../graphics/libepoxy/buildlink3.mk" | |
13 | BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=10 | 13 | BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=11 | |
14 | .include "../../graphics/MesaLib/buildlink3.mk" | 14 | .include "../../graphics/MesaLib/buildlink3.mk" | |
15 | .include "../../x11/glproto/buildlink3.mk" | 15 | .include "../../x11/glproto/buildlink3.mk" | |
16 | .include "../../x11/dri2proto/buildlink3.mk" | 16 | .include "../../x11/dri2proto/buildlink3.mk" | |
17 | .include "../../x11/dri3proto/buildlink3.mk" | |||
17 | .include "../../x11/libdrm/buildlink3.mk" | 18 | .include "../../x11/libdrm/buildlink3.mk" | |
19 | .include "../../x11/libxshmfence/buildlink3.mk" | |||
18 | .include "../../x11/xf86driproto/buildlink3.mk" | 20 | .include "../../x11/xf86driproto/buildlink3.mk" | |
19 | PLIST.dri= yes | 21 | PLIST.dri= yes | |
20 | CONFIGURE_ARGS+= --enable-dri | 22 | CONFIGURE_ARGS+= --enable-dri | |
23 | CONFIGURE_ARGS+= --enable-dri2 | |||
24 | CONFIGURE_ARGS+= --enable-dri3 | |||
21 | CONFIGURE_ARGS+= --enable-glx | 25 | CONFIGURE_ARGS+= --enable-glx | |
22 | CONFIGURE_ARGS+= --enable-aiglx | 26 | CONFIGURE_ARGS+= --enable-aiglx | |
23 | . if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly" | |||
24 | PLIST.glamor= yes | |||
25 | CONFIGURE_ARGS+= --enable-glamor | 27 | CONFIGURE_ARGS+= --enable-glamor | |
26 | .include "../../x11/libxshmfence/buildlink3.mk" | |||
27 | . endif | |||
28 | # Linux supports dri3 | |||
29 | . if ${OPSYS} == "Linux" | |||
30 | PLIST.dri3= yes | |||
31 | .include "../../x11/dri3proto/buildlink3.mk" | |||
32 | CONFIGURE_ARGS+= --enable-dri3 | |||
33 | . else | |||
34 | CONFIGURE_ARGS+= --disable-dri3 | |||
35 | . endif | |||
36 | .else | 28 | .else | |
37 | ### | 29 | ### | |
38 | ### XXX Perhaps we should allow for a built-in glx without dri enabled? | 30 | ### XXX Perhaps we should allow for a built-in glx without dri enabled? | |
39 | ### | 31 | ### | |
40 | CONFIGURE_ARGS+= --disable-dri | 32 | CONFIGURE_ARGS+= --disable-dri | |
41 | CONFIGURE_ARGS+= --disable-glx | 33 | CONFIGURE_ARGS+= --disable-glx | |
42 | pre-build: disable-modesetting | 34 | pre-build: disable-modesetting | |
43 | .PHONY: disable-modesetting | 35 | .PHONY: disable-modesetting | |
44 | disable-modesetting: | 36 | disable-modesetting: | |
45 | (echo "all:"; echo "install:") > ${WRKSRC}/hw/xfree86/drivers/modesetting/Makefile | 37 | (echo "all:"; echo "install:") > ${WRKSRC}/hw/xfree86/drivers/modesetting/Makefile | |
46 | .endif | 38 | .endif | |
47 | 39 | |||
48 | .if !empty(PKG_OPTIONS:Minet6) | 40 | .if !empty(PKG_OPTIONS:Minet6) |