aboutsummaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-04-12 14:26:00 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-04-12 14:26:00 +0000
commitb414ba91dd2022857850a9f1ca0b190795053950 (patch)
tree1692b2a20a4f085928cd08d9618e905ab3af8d9b /x11-servers
parente67ef85cc7a048b802ab14101a8ab25b5bc282b1 (diff)
downloadports-b414ba91dd2022857850a9f1ca0b190795053950.tar.gz
ports-b414ba91dd2022857850a9f1ca0b190795053950.zip
Notes
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/XFree86-4-Server-snap/Makefile96
-rw-r--r--x11-servers/XFree86-4-Server-snap/distinfo1
-rw-r--r--x11-servers/XFree86-4-Server-snap/pkg-message-drm11
-rw-r--r--x11-servers/XFree86-4-Server-snap/pkg-plist5
-rw-r--r--x11-servers/XFree86-4-Server-snap/scripts/configure8
-rw-r--r--x11-servers/XFree86-4-Server/Makefile96
-rw-r--r--x11-servers/XFree86-4-Server/distinfo1
-rw-r--r--x11-servers/XFree86-4-Server/pkg-message-drm11
-rw-r--r--x11-servers/XFree86-4-Server/pkg-plist5
-rw-r--r--x11-servers/XFree86-4-Server/scripts/configure8
10 files changed, 180 insertions, 62 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/Makefile b/x11-servers/XFree86-4-Server-snap/Makefile
index 7df0e390ef5c..a71b3af294f8 100644
--- a/x11-servers/XFree86-4-Server-snap/Makefile
+++ b/x11-servers/XFree86-4-Server-snap/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Server
PORTVERSION= 4.0.3
+PORTREVISION= 1
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= 4.0.2
@@ -24,13 +25,17 @@ USE_IMAKE= YES
DIST_SUBDIR= xc
WRKSRC= ${WRKDIR}/xc
PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files
-SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} \
+SCRIPTS_ENV= OSVERSION=${OSVERSION} \
+ HasXdmAuth=${HasXdmAuth} \
HasSecureRPC=${HasSecureRPC} \
HasPam=${HasPam} \
- ExtendedInputDevices=${ExtendedInputDevices}
+ ExtendedInputDevices=${ExtendedInputDevices} \
+ BuildXF86DRI=${BuildXF86DRI} \
+ BuildXF86DRM=${BuildXF86DRM} \
+ HaveMatroxHal=${HaveMatroxHal}
MAKE_ENV= MAN_INSTALL_TARGET=FreeBSDPortsInstall.man
ALL_TARGET= FreeBSDPortsBuild
-INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
+INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
MAN1= SuperProbe.1 \
XFree86.1 \
Xserver.1 \
@@ -62,7 +67,9 @@ MAN4= mga.4 \
vga.4 \
keyboard.4 \
mouse.4
-MAN5= XF86Config.5
+MAN5= XF86Config.5
+
+.include <bsd.port.pre.mk>
# XFree86 User Config:
# ---
@@ -76,35 +83,24 @@ HasXdmAuth?= DEFAULT
HasSecureRPC?= DEFAULT
HasPam?= DEFAULT
ExtendedInputDevices?= DEFAULT
-.if !exists(/sys) && !exists(/usr/src/sys)
-BuildXF86DRI= NO
-PLIST_SUB+= DRI="@comment "
+.if (exists(/sys) || exists(/usr/src/sys)) && ${OSVERSION} < 500013
+BuildXF86DRI= YES
+BuildXF86DRM= YES
+PLIST_SUB+= DRI=""
+PKGMESSAGE= ${.CURDIR}/pkg-message-drm
.else
-PLIST_SUB+= DRI=""
-.endif
-
-.if ${ExtendedInputDevices} == DEFAULT || ${ExtendedInputDevices} == YES
-PLIST_SUB+= XIE:=""
-MAN4+= citron.4 \
- dynapro.4 \
- elographics.4 \
- microtouch.4 \
- mutouch.4 \
- wacom.4 \
- void.4
+BuildXF86DRI= NO
+BuildXF86DRM= NO
+PLIST_SUB+= DRI="@comment "
+.if ${OSVERSION} < 500013
+pre-fetch::
+ @${ECHO_MSG} "DRI would not build: kernel source required in /sys."
.else
-PLIST_SUB+= XIE:="@comment "
+pre-fetch::
+ @${ECHO_MSG} "DRI would not build: incompatible with SMPng."
.endif
-
-.if defined(BuildXF86DRI) && ${BuildXF86DRI} == NO
-pre-fetch:
- @${ECHO_MSG} "DRI would not build: kernel source required in /sys."
.endif
-do-configure:
- cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
-
-.include <bsd.port.pre.mk>
.if ${ARCH} == i386
PLIST_SUB+= I386:=""
MAN4+= apm.4 \
@@ -126,7 +122,51 @@ MAN4+= apm.4 \
PLIST_SUB+= I386:="@comment "
.endif
+.if ${ExtendedInputDevices} == DEFAULT || ${ExtendedInputDevices} == YES
+PLIST_SUB+= XIE:=""
+MAN4+= citron.4 \
+ dynapro.4 \
+ elographics.4 \
+ microtouch.4 \
+ mutouch.4 \
+ wacom.4 \
+ void.4
+.else
+PLIST_SUB+= XIE:="@comment "
+.endif
+
+.if !defined(WITH_MATROX_GXX_DRIVER)
+HaveMatroxHal= NO
+PLIST_SUB+= MATROX="@comment "
+pre-fetch::
+ @${ECHO_MSG} "Define WITH_MATROX_GXX_DRIVER to enable the official Matrox drivers for"
+ @${ECHO_MSG} "the G200, G400 and G450 graphic adapters."
+.else
+HaveMatroxHal= YES
+MGA_DRIVER_VERSION= 1_2_0beta
+MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION:S/beta//}/
+DISTFILES+= mga-${MGA_DRIVER_VERSION}.tgz
+EXTRACT_ONLY= X402src-1.tgz
+PLIST_SUB+= MATROX=""
+post-patch::
+ @${MV} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga \
+ ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga.old
+ @${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/mga-${MGA_DRIVER_VERSION}.tgz \
+ -C ${WRKSRC}/programs/Xserver/hw/xfree86/drivers
+.endif # !WITH_MATROX_GXX_DRIVER
+
+do-configure:
+ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
+
+.if ${BuildXF86DRM} == "YES"
+pre-install:
+ ${MKDIR} ${PREFIX}/lib/X11/kernel
+.endif
+
post-install:
strip ${PREFIX}/bin/XFree86
+.if ${BuildXF86DRM} == "YES"
+ @${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
+.endif
.include <bsd.port.post.mk>
diff --git a/x11-servers/XFree86-4-Server-snap/distinfo b/x11-servers/XFree86-4-Server-snap/distinfo
index 073d54832d2d..422d717b0587 100644
--- a/x11-servers/XFree86-4-Server-snap/distinfo
+++ b/x11-servers/XFree86-4-Server-snap/distinfo
@@ -1,2 +1,3 @@
MD5 (xc/X402src-1.tgz) = d314c311aa4a29d74695b0e39b6d80c4
MD5 (xc/4.0.2-4.0.3.diff.gz) = c8bb56df966dd0a51d2291bca36e0ea4
+MD5 (xc/mga-1_2_0beta.tgz) = 3b048f852e764f92d258b63b25ea5bfd
diff --git a/x11-servers/XFree86-4-Server-snap/pkg-message-drm b/x11-servers/XFree86-4-Server-snap/pkg-message-drm
new file mode 100644
index 000000000000..d908ba10b2a7
--- /dev/null
+++ b/x11-servers/XFree86-4-Server-snap/pkg-message-drm
@@ -0,0 +1,11 @@
+To use the Direct Rendering Infrastructure, you need to do the following:
+
+- Enable agp support in your kernel, or load the agp kernel module at
+ boot time. You can do this by editing /boot/loader.conf(5)
+- Load the appropriate kernel module from /usr/X11R6/lib/X11/kernel at
+ boot time:
+ - tdfx.ko for 3Dfx cards
+ - mga.ko for Matrox G200/G400/G450
+- Add the following lines to the "Module" section of your XF86Config:
+ Load "glx"
+ Load "dri"
diff --git a/x11-servers/XFree86-4-Server-snap/pkg-plist b/x11-servers/XFree86-4-Server-snap/pkg-plist
index e2d10250b3e6..a3aad0251be5 100644
--- a/x11-servers/XFree86-4-Server-snap/pkg-plist
+++ b/x11-servers/XFree86-4-Server-snap/pkg-plist
@@ -43,6 +43,10 @@ lib/X11/etc/sun.terminfo
lib/X11/etc/xmodmap.std
lib/X11/etc/xterm.termcap
lib/X11/etc/xterm.terminfo
+%%DRI%%lib/X11/kernel/drm.ko
+%%DRI%%lib/X11/kernel/gamma.ko
+%%DRI%%lib/X11/kernel/mga.ko
+%%DRI%%lib/X11/kernel/tdfx.ko
lib/X11/xserver/SecurityPolicy
lib/modules/codeconv/libARABIC.a
lib/modules/codeconv/libARMSCII8.a
@@ -92,6 +96,7 @@ lib/modules/drivers/glint_drv.o
%%I386:%%lib/modules/drivers/i740_drv.o
%%I386:%%lib/modules/drivers/i810_drv.o
lib/modules/drivers/mga_drv.o
+%%MATROX%%lib/modules/drivers/mga_hal_drv.o
%%I386:%%lib/modules/drivers/neomagic_drv.o
lib/modules/drivers/nv_drv.o
%%I386:%%lib/modules/drivers/r128_drv.o
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure
index 8d71e1620f56..5ddde0a40ff9 100644
--- a/x11-servers/XFree86-4-Server-snap/scripts/configure
+++ b/x11-servers/XFree86-4-Server-snap/scripts/configure
@@ -36,9 +36,6 @@ configure () {
if [ X$HasPam != XDEFAULT -a X$HasPam != X ]; then
echo "#define HasPam $HasPam" >> $LOCALDEF
fi
- if [ ! -d /sys -a ! -d /usr/src/sys ]; then
- echo "#define BuildXF86DRI NO" >> $LOCALDEF
- fi
if [ X$ExtendedInputDevices = XDEFAULT -o X$ExtendedInputDevices = XYES ]; then
echo "#define XInputDrivers mouse digitaledge dynapro elo2300 \
elographics magellan \
@@ -48,6 +45,11 @@ configure () {
else
echo "#define XInputDrivers mouse" >> $LOCALDEF
fi
+ echo "#define BuildXF86DRI ${BuildXF86DRI}" >> $LOCALDEF
+ echo "#define BuildXF86DRM ${BuildXF86DRM}" >> $LOCALDEF
+
+ # Matrox driver support
+ echo "#define HaveMatroxHal $HaveMatroxHal" >> $LOCALDEF
# disable some configs: there are not used this ports
for i in \
diff --git a/x11-servers/XFree86-4-Server/Makefile b/x11-servers/XFree86-4-Server/Makefile
index 7df0e390ef5c..a71b3af294f8 100644
--- a/x11-servers/XFree86-4-Server/Makefile
+++ b/x11-servers/XFree86-4-Server/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Server
PORTVERSION= 4.0.3
+PORTREVISION= 1
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= 4.0.2
@@ -24,13 +25,17 @@ USE_IMAKE= YES
DIST_SUBDIR= xc
WRKSRC= ${WRKDIR}/xc
PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files
-SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} \
+SCRIPTS_ENV= OSVERSION=${OSVERSION} \
+ HasXdmAuth=${HasXdmAuth} \
HasSecureRPC=${HasSecureRPC} \
HasPam=${HasPam} \
- ExtendedInputDevices=${ExtendedInputDevices}
+ ExtendedInputDevices=${ExtendedInputDevices} \
+ BuildXF86DRI=${BuildXF86DRI} \
+ BuildXF86DRM=${BuildXF86DRM} \
+ HaveMatroxHal=${HaveMatroxHal}
MAKE_ENV= MAN_INSTALL_TARGET=FreeBSDPortsInstall.man
ALL_TARGET= FreeBSDPortsBuild
-INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
+INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
MAN1= SuperProbe.1 \
XFree86.1 \
Xserver.1 \
@@ -62,7 +67,9 @@ MAN4= mga.4 \
vga.4 \
keyboard.4 \
mouse.4
-MAN5= XF86Config.5
+MAN5= XF86Config.5
+
+.include <bsd.port.pre.mk>
# XFree86 User Config:
# ---
@@ -76,35 +83,24 @@ HasXdmAuth?= DEFAULT
HasSecureRPC?= DEFAULT
HasPam?= DEFAULT
ExtendedInputDevices?= DEFAULT
-.if !exists(/sys) && !exists(/usr/src/sys)
-BuildXF86DRI= NO
-PLIST_SUB+= DRI="@comment "
+.if (exists(/sys) || exists(/usr/src/sys)) && ${OSVERSION} < 500013
+BuildXF86DRI= YES
+BuildXF86DRM= YES
+PLIST_SUB+= DRI=""
+PKGMESSAGE= ${.CURDIR}/pkg-message-drm
.else
-PLIST_SUB+= DRI=""
-.endif
-
-.if ${ExtendedInputDevices} == DEFAULT || ${ExtendedInputDevices} == YES
-PLIST_SUB+= XIE:=""
-MAN4+= citron.4 \
- dynapro.4 \
- elographics.4 \
- microtouch.4 \
- mutouch.4 \
- wacom.4 \
- void.4
+BuildXF86DRI= NO
+BuildXF86DRM= NO
+PLIST_SUB+= DRI="@comment "
+.if ${OSVERSION} < 500013
+pre-fetch::
+ @${ECHO_MSG} "DRI would not build: kernel source required in /sys."
.else
-PLIST_SUB+= XIE:="@comment "
+pre-fetch::
+ @${ECHO_MSG} "DRI would not build: incompatible with SMPng."
.endif
-
-.if defined(BuildXF86DRI) && ${BuildXF86DRI} == NO
-pre-fetch:
- @${ECHO_MSG} "DRI would not build: kernel source required in /sys."
.endif
-do-configure:
- cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
-
-.include <bsd.port.pre.mk>
.if ${ARCH} == i386
PLIST_SUB+= I386:=""
MAN4+= apm.4 \
@@ -126,7 +122,51 @@ MAN4+= apm.4 \
PLIST_SUB+= I386:="@comment "
.endif
+.if ${ExtendedInputDevices} == DEFAULT || ${ExtendedInputDevices} == YES
+PLIST_SUB+= XIE:=""
+MAN4+= citron.4 \
+ dynapro.4 \
+ elographics.4 \
+ microtouch.4 \
+ mutouch.4 \
+ wacom.4 \
+ void.4
+.else
+PLIST_SUB+= XIE:="@comment "
+.endif
+
+.if !defined(WITH_MATROX_GXX_DRIVER)
+HaveMatroxHal= NO
+PLIST_SUB+= MATROX="@comment "
+pre-fetch::
+ @${ECHO_MSG} "Define WITH_MATROX_GXX_DRIVER to enable the official Matrox drivers for"
+ @${ECHO_MSG} "the G200, G400 and G450 graphic adapters."
+.else
+HaveMatroxHal= YES
+MGA_DRIVER_VERSION= 1_2_0beta
+MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION:S/beta//}/
+DISTFILES+= mga-${MGA_DRIVER_VERSION}.tgz
+EXTRACT_ONLY= X402src-1.tgz
+PLIST_SUB+= MATROX=""
+post-patch::
+ @${MV} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga \
+ ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga.old
+ @${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/mga-${MGA_DRIVER_VERSION}.tgz \
+ -C ${WRKSRC}/programs/Xserver/hw/xfree86/drivers
+.endif # !WITH_MATROX_GXX_DRIVER
+
+do-configure:
+ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
+
+.if ${BuildXF86DRM} == "YES"
+pre-install:
+ ${MKDIR} ${PREFIX}/lib/X11/kernel
+.endif
+
post-install:
strip ${PREFIX}/bin/XFree86
+.if ${BuildXF86DRM} == "YES"
+ @${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
+.endif
.include <bsd.port.post.mk>
diff --git a/x11-servers/XFree86-4-Server/distinfo b/x11-servers/XFree86-4-Server/distinfo
index 073d54832d2d..422d717b0587 100644
--- a/x11-servers/XFree86-4-Server/distinfo
+++ b/x11-servers/XFree86-4-Server/distinfo
@@ -1,2 +1,3 @@
MD5 (xc/X402src-1.tgz) = d314c311aa4a29d74695b0e39b6d80c4
MD5 (xc/4.0.2-4.0.3.diff.gz) = c8bb56df966dd0a51d2291bca36e0ea4
+MD5 (xc/mga-1_2_0beta.tgz) = 3b048f852e764f92d258b63b25ea5bfd
diff --git a/x11-servers/XFree86-4-Server/pkg-message-drm b/x11-servers/XFree86-4-Server/pkg-message-drm
new file mode 100644
index 000000000000..d908ba10b2a7
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/pkg-message-drm
@@ -0,0 +1,11 @@
+To use the Direct Rendering Infrastructure, you need to do the following:
+
+- Enable agp support in your kernel, or load the agp kernel module at
+ boot time. You can do this by editing /boot/loader.conf(5)
+- Load the appropriate kernel module from /usr/X11R6/lib/X11/kernel at
+ boot time:
+ - tdfx.ko for 3Dfx cards
+ - mga.ko for Matrox G200/G400/G450
+- Add the following lines to the "Module" section of your XF86Config:
+ Load "glx"
+ Load "dri"
diff --git a/x11-servers/XFree86-4-Server/pkg-plist b/x11-servers/XFree86-4-Server/pkg-plist
index e2d10250b3e6..a3aad0251be5 100644
--- a/x11-servers/XFree86-4-Server/pkg-plist
+++ b/x11-servers/XFree86-4-Server/pkg-plist
@@ -43,6 +43,10 @@ lib/X11/etc/sun.terminfo
lib/X11/etc/xmodmap.std
lib/X11/etc/xterm.termcap
lib/X11/etc/xterm.terminfo
+%%DRI%%lib/X11/kernel/drm.ko
+%%DRI%%lib/X11/kernel/gamma.ko
+%%DRI%%lib/X11/kernel/mga.ko
+%%DRI%%lib/X11/kernel/tdfx.ko
lib/X11/xserver/SecurityPolicy
lib/modules/codeconv/libARABIC.a
lib/modules/codeconv/libARMSCII8.a
@@ -92,6 +96,7 @@ lib/modules/drivers/glint_drv.o
%%I386:%%lib/modules/drivers/i740_drv.o
%%I386:%%lib/modules/drivers/i810_drv.o
lib/modules/drivers/mga_drv.o
+%%MATROX%%lib/modules/drivers/mga_hal_drv.o
%%I386:%%lib/modules/drivers/neomagic_drv.o
lib/modules/drivers/nv_drv.o
%%I386:%%lib/modules/drivers/r128_drv.o
diff --git a/x11-servers/XFree86-4-Server/scripts/configure b/x11-servers/XFree86-4-Server/scripts/configure
index 8d71e1620f56..5ddde0a40ff9 100644
--- a/x11-servers/XFree86-4-Server/scripts/configure
+++ b/x11-servers/XFree86-4-Server/scripts/configure
@@ -36,9 +36,6 @@ configure () {
if [ X$HasPam != XDEFAULT -a X$HasPam != X ]; then
echo "#define HasPam $HasPam" >> $LOCALDEF
fi
- if [ ! -d /sys -a ! -d /usr/src/sys ]; then
- echo "#define BuildXF86DRI NO" >> $LOCALDEF
- fi
if [ X$ExtendedInputDevices = XDEFAULT -o X$ExtendedInputDevices = XYES ]; then
echo "#define XInputDrivers mouse digitaledge dynapro elo2300 \
elographics magellan \
@@ -48,6 +45,11 @@ configure () {
else
echo "#define XInputDrivers mouse" >> $LOCALDEF
fi
+ echo "#define BuildXF86DRI ${BuildXF86DRI}" >> $LOCALDEF
+ echo "#define BuildXF86DRM ${BuildXF86DRM}" >> $LOCALDEF
+
+ # Matrox driver support
+ echo "#define HaveMatroxHal $HaveMatroxHal" >> $LOCALDEF
# disable some configs: there are not used this ports
for i in \