aboutsummaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2008-01-02 12:58:05 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2008-01-02 12:58:05 +0000
commitff3675ba981c2e65ffc40e4b2402e72be655f43e (patch)
treed2e70f4a3337855e40ae3dbf2a15a2dee9c24ca8 /x11-servers
parentf94de7fbd638161c9bc714730aed5d8d87bee1ef (diff)
downloadports-ff3675ba981c2e65ffc40e4b2402e72be655f43e.tar.gz
ports-ff3675ba981c2e65ffc40e4b2402e72be655f43e.zip
Notes
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/xorg-server/Makefile6
-rw-r--r--x11-servers/xorg-server/files/extra-arch-alpha11
-rw-r--r--x11-servers/xorg-server/files/extra-arch-powerpc25
3 files changed, 40 insertions, 2 deletions
diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile
index 485a9a823af3..b1cecc309154 100644
--- a/x11-servers/xorg-server/Makefile
+++ b/x11-servers/xorg-server/Makefile
@@ -71,7 +71,7 @@ CONFIGURE_ARGS+= --enable-aiglx=yes
CONFIGURE_ARGS+= --enable-aiglx=no
.endif
-.if !defined(WITHOUT_SUID) || !defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO
+.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO)
CONFIGURE_ARGS+=--enable-install-setuid=yes
.else
CONFIGURE_ARGS+=--enable-install-setuid=no
@@ -79,6 +79,7 @@ CONFIGURE_ARGS+=--enable-install-setuid=no
.if ${ARCH} == alpha
PLIST_SUB+= ALPHA_NA="@comment "
+EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-alpha
.else
PLIST_SUB+= ALPHA_NA=""
.endif
@@ -86,6 +87,7 @@ PLIST_SUB+= ALPHA_NA=""
.if ${ARCH} == powerpc
PLIST_SUB+= PPC_NA="@comment "
MAN4+= nv.4x
+EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-powerpc
.else
PLIST_SUB+= PPC_NA=""
.endif
@@ -105,7 +107,7 @@ MAN1+= scanpci.1
PLIST_SUB+= AMD64_I386_SPARC64="@comment "
.endif
-.if !defined(WITHOUT_SUID) || !defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO
+.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO)
pre-everything::
@${ECHO_MSG} "By default, the X Server installs as a set-user-id root binary. When run by"
@${ECHO_MSG} "a normal user, it checks arguments and environment as done in the x11/wrapper"
diff --git a/x11-servers/xorg-server/files/extra-arch-alpha b/x11-servers/xorg-server/files/extra-arch-alpha
new file mode 100644
index 000000000000..b53d82ec034f
--- /dev/null
+++ b/x11-servers/xorg-server/files/extra-arch-alpha
@@ -0,0 +1,11 @@
+--- configure.orig 2008-01-02 12:40:11.000000000 +0000
++++ configure 2008-01-02 12:41:09.000000000 +0000
+@@ -32222,7 +32222,7 @@
+
+ if test "x$XORG" = xyes -o "x$XGL" = xyes; then
+ XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
+- XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
++ XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/hw/xfree86/os-support/shared -I$(top_srcdir)/os'
+ XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
+ XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
+ XORG_LIBS="$COMPOSITE_LIB $MI_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XPSTUBS_LIB $OS_LIB"
diff --git a/x11-servers/xorg-server/files/extra-arch-powerpc b/x11-servers/xorg-server/files/extra-arch-powerpc
new file mode 100644
index 000000000000..47d5eea34473
--- /dev/null
+++ b/x11-servers/xorg-server/files/extra-arch-powerpc
@@ -0,0 +1,25 @@
+--- hw/xfree86/os-support/bsd/ppc_video.c.orig 2008-01-02 12:29:21.000000000 +0000
++++ hw/xfree86/os-support/bsd/ppc_video.c 2008-01-02 12:29:00.000000000 +0000
+@@ -164,7 +164,11 @@
+
+ if (ioBase != MAP_FAILED)
+ {
++#if defined(__FreeBSD__)
++ munmap(__DEVOLATILE(unsigned char *, ioBase), 0x10000);
++#else
+ munmap(__UNVOLATILE(ioBase), 0x10000);
++#endif
+ ioBase = MAP_FAILED;
+ }
+ }
+--- hw/xfree86/int10/Makefile.in.orig 2008-01-02 12:30:05.000000000 +0000
++++ hw/xfree86/int10/Makefile.in 2008-01-02 12:30:46.000000000 +0000
+@@ -400,7 +400,7 @@
+ @INT10_VM86_TRUE@AM_CFLAGS = $(I386_VIDEO_CFLAGS) -D_VM86_LINUX $(DIX_CFLAGS) $(XORG_CFLAGS) $(EXTRA_CFLAGS)
+ @INT10_X86EMU_TRUE@AM_CFLAGS = $(I386_VIDEO_CFLAGS) -D_X86EMU -DNO_SYS_HEADERS \
+ @INT10_X86EMU_TRUE@ $(XORG_CFLAGS) $(EXTRA_CFLAGS) $(DIX_CFLAGS)
+-
++@INT10_STUB_TRUE@INCLUDES = $(XORG_INCS)
+ @INT10_VM86_TRUE@INCLUDES = $(XORG_INCS)
+ @INT10_X86EMU_TRUE@INCLUDES = $(XORG_INCS) -I$(srcdir)/../x86emu
+ @INT10_STUB_TRUE@libint10_la_SOURCES = stub.c xf86int10module.c