summaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-10-20 05:25:20 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-10-20 05:25:20 +0000
commitfe3c793e0668f0701f46c2cdb605626b98121713 (patch)
treeaff533aab18622f44c135cf72bd2a0f22ced8882 /x11-servers
parentadd missing file to PLIST (diff)
o sync with x11/XFree86-4
- re-enable DRI support. - fix radeon DRI module. o add support for Matrox MGA GXX drivers and G550 identifier.
Notes
Notes: svn path=/head/; revision=48970
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/XFree86-4-Server-snap/Makefile51
-rw-r--r--x11-servers/XFree86-4-Server-snap/distinfo1
-rw-r--r--x11-servers/XFree86-4-Server-snap/pkg-plist13
-rw-r--r--x11-servers/XFree86-4-Server/Makefile51
-rw-r--r--x11-servers/XFree86-4-Server/distinfo1
-rw-r--r--x11-servers/XFree86-4-Server/pkg-plist13
6 files changed, 62 insertions, 68 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/Makefile b/x11-servers/XFree86-4-Server-snap/Makefile
index a10a80bcb74a..6aa58229950d 100644
--- a/x11-servers/XFree86-4-Server-snap/Makefile
+++ b/x11-servers/XFree86-4-Server-snap/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Server
PORTVERSION= 4.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= 4.1.0
@@ -82,28 +82,18 @@ HasXdmAuth?= DEFAULT
HasSecureRPC?= DEFAULT
HasPam?= DEFAULT
ExtendedInputDevices?= DEFAULT
-.if !defined(I_WANT_TO_FIX_BUILDING_DRI_MODULES)
-BuildXF86DRI= NO
-BuildXF86DRM= NO
-PLIST_SUB+= DRI="@comment "
-.else
-.if ${OSVERSION} < 500013 && ${MACHINE} != alpha
.if (exists(/sys) || exists(/usr/src/sys))
BuildXF86DRI= YES
-BuildXF86DRM= YES
PLIST_SUB+= DRI=""
.else
-_pre-fetch::
+pre-fetch::
@${ECHO_MSG} "DRI would not build: kernel source required in /sys."
-.endif # have /sys
-.else
BuildXF86DRI= NO
-BuildXF86DRM= NO
PLIST_SUB+= DRI="@comment "
-_pre-fetch::
- @${ECHO_MSG} "DRI would not build: incompatible with SMPng and alpha"
-.endif # PRE_SMPNG && !alpha
-.endif # DRI is totally broken
+.endif # have /sys
+# DRM and DRI kernel modules bundled with 4.1.0 are broken
+BuildXF86DRM= NO
+PLIST_SUB+= DRI_KMOD="@comment "
.if ${ARCH} == i386
PLIST_SUB+= I386:=""
@@ -139,27 +129,30 @@ MAN4+= citron.4 \
PLIST_SUB+= XIE:="@comment "
.endif
-.if !defined(INCOMPATIBLE_WITH_4_1_0)
+.if ${BuildXF86DRI} == YES
.if !defined(WITH_MATROX_GXX_DRIVER)
HaveMatroxHal= NO
PLIST_SUB+= MATROX="@comment "
-_pre-fetch::
+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."
+ @${ECHO_MSG} "the G200, G400, G450 and G550 graphic adapters."
.else
+NO_PACKAGE= "Matrox drivers may not be distributed."
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= X410src-1.tgz
+MGA_DRIVER_VERSION= 133_143
+MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION}/
+DISTFILES+= mga-${MGA_DRIVER_VERSION}-source.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
+ @(cd ${WRKSRC}; \
+ ${MV} programs/Xserver/hw/xfree86/drivers/mga \
+ programs/Xserver/hw/xfree86/drivers/mga.old; \
+ ${MV} ../mgasource/mga-1.4.3/mga programs/Xserver/hw/xfree86/drivers)
+post-install::
+ ${INSTALL_DATA} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga/README ${PREFIX}/lib/X11/doc/README.mga
+ ${INSTALL_DATA} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga/README_HALLIB ${PREFIX}/lib/X11/doc/README.mga_HALLIB
.endif # !WITH_MATROX_GXX_DRIVER
-.endif # INCOMPATIBLE_WITH_4_1_0
+.endif
do-configure:
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
@@ -176,7 +169,7 @@ post-build:
.endif
@${CAT} ${.CURDIR}/pkg-message >> ${PKGMESSAGE}
-post-install:
+post-install::
@${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
strip ${PREFIX}/bin/XFree86
diff --git a/x11-servers/XFree86-4-Server-snap/distinfo b/x11-servers/XFree86-4-Server-snap/distinfo
index e4b5e84b9421..8e671ced5d59 100644
--- a/x11-servers/XFree86-4-Server-snap/distinfo
+++ b/x11-servers/XFree86-4-Server-snap/distinfo
@@ -1 +1,2 @@
MD5 (xc/X410src-1.tgz) = 2d4709f7106a1d65c175be445a3d3c32
+MD5 (xc/mga-133_143-source.tgz) = 849bf57f23f1684fea970459f919d1f2
diff --git a/x11-servers/XFree86-4-Server-snap/pkg-plist b/x11-servers/XFree86-4-Server-snap/pkg-plist
index 1fe8887c9b29..906a6bb10c95 100644
--- a/x11-servers/XFree86-4-Server-snap/pkg-plist
+++ b/x11-servers/XFree86-4-Server-snap/pkg-plist
@@ -30,6 +30,8 @@ lib/X11/doc/README.dps
lib/X11/doc/README.fonts
%%I386:%%lib/X11/doc/README.i740
%%I386:%%lib/X11/doc/README.i810
+%%MATROX%%lib/X11/doc/README.mga
+%%MATROX%%lib/X11/doc/README.mga_HALLIB
lib/X11/doc/README.mouse
%%I386:%%lib/X11/doc/README.newport
%%I386:%%lib/X11/doc/README.r128
@@ -44,11 +46,11 @@ lib/X11/etc/Xinstall.sh
lib/X11/etc/sun.termcap
lib/X11/etc/sun.terminfo
lib/X11/etc/xmodmap.std
-%%DRI%%lib/X11/kernel/drm.ko
-%%DRI%%lib/X11/kernel/gamma.ko
-%%DRI%%lib/X11/kernel/mga.ko
-%%DRI%%lib/X11/kernel/tdfx.ko
-%%DRI%%@dirrm lib/X11/kernel
+%%DRI_KMOD%%lib/X11/kernel/drm.ko
+%%DRI_KMOD%%lib/X11/kernel/gamma.ko
+%%DRI_KMOD%%lib/X11/kernel/mga.ko
+%%DRI_KMOD%%lib/X11/kernel/tdfx.ko
+%%DRI_KMOD%%@dirrm lib/X11/kernel
lib/X11/xserver/SecurityPolicy
lib/modules/codeconv/libARABIC.a
lib/modules/codeconv/libARMSCII8.a
@@ -83,6 +85,7 @@ lib/modules/codeconv/libVISCII.a
%%DRI%%lib/modules/dri/gamma_dri.so
%%I386:%%%%DRI%%lib/modules/dri/i810_dri.so
%%DRI%%lib/modules/dri/mga_dri.so
+%%DRI%%lib/modules/dri/radeon_dri.so
%%I386:%%%%DRI%%lib/modules/dri/r128_dri.so
%%I386:%%%%DRI%%lib/modules/dri/sis_dri.so
%%I386:%%lib/modules/drivers/apm_drv.o
diff --git a/x11-servers/XFree86-4-Server/Makefile b/x11-servers/XFree86-4-Server/Makefile
index a10a80bcb74a..6aa58229950d 100644
--- a/x11-servers/XFree86-4-Server/Makefile
+++ b/x11-servers/XFree86-4-Server/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Server
PORTVERSION= 4.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= 4.1.0
@@ -82,28 +82,18 @@ HasXdmAuth?= DEFAULT
HasSecureRPC?= DEFAULT
HasPam?= DEFAULT
ExtendedInputDevices?= DEFAULT
-.if !defined(I_WANT_TO_FIX_BUILDING_DRI_MODULES)
-BuildXF86DRI= NO
-BuildXF86DRM= NO
-PLIST_SUB+= DRI="@comment "
-.else
-.if ${OSVERSION} < 500013 && ${MACHINE} != alpha
.if (exists(/sys) || exists(/usr/src/sys))
BuildXF86DRI= YES
-BuildXF86DRM= YES
PLIST_SUB+= DRI=""
.else
-_pre-fetch::
+pre-fetch::
@${ECHO_MSG} "DRI would not build: kernel source required in /sys."
-.endif # have /sys
-.else
BuildXF86DRI= NO
-BuildXF86DRM= NO
PLIST_SUB+= DRI="@comment "
-_pre-fetch::
- @${ECHO_MSG} "DRI would not build: incompatible with SMPng and alpha"
-.endif # PRE_SMPNG && !alpha
-.endif # DRI is totally broken
+.endif # have /sys
+# DRM and DRI kernel modules bundled with 4.1.0 are broken
+BuildXF86DRM= NO
+PLIST_SUB+= DRI_KMOD="@comment "
.if ${ARCH} == i386
PLIST_SUB+= I386:=""
@@ -139,27 +129,30 @@ MAN4+= citron.4 \
PLIST_SUB+= XIE:="@comment "
.endif
-.if !defined(INCOMPATIBLE_WITH_4_1_0)
+.if ${BuildXF86DRI} == YES
.if !defined(WITH_MATROX_GXX_DRIVER)
HaveMatroxHal= NO
PLIST_SUB+= MATROX="@comment "
-_pre-fetch::
+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."
+ @${ECHO_MSG} "the G200, G400, G450 and G550 graphic adapters."
.else
+NO_PACKAGE= "Matrox drivers may not be distributed."
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= X410src-1.tgz
+MGA_DRIVER_VERSION= 133_143
+MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION}/
+DISTFILES+= mga-${MGA_DRIVER_VERSION}-source.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
+ @(cd ${WRKSRC}; \
+ ${MV} programs/Xserver/hw/xfree86/drivers/mga \
+ programs/Xserver/hw/xfree86/drivers/mga.old; \
+ ${MV} ../mgasource/mga-1.4.3/mga programs/Xserver/hw/xfree86/drivers)
+post-install::
+ ${INSTALL_DATA} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga/README ${PREFIX}/lib/X11/doc/README.mga
+ ${INSTALL_DATA} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga/README_HALLIB ${PREFIX}/lib/X11/doc/README.mga_HALLIB
.endif # !WITH_MATROX_GXX_DRIVER
-.endif # INCOMPATIBLE_WITH_4_1_0
+.endif
do-configure:
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
@@ -176,7 +169,7 @@ post-build:
.endif
@${CAT} ${.CURDIR}/pkg-message >> ${PKGMESSAGE}
-post-install:
+post-install::
@${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
strip ${PREFIX}/bin/XFree86
diff --git a/x11-servers/XFree86-4-Server/distinfo b/x11-servers/XFree86-4-Server/distinfo
index e4b5e84b9421..8e671ced5d59 100644
--- a/x11-servers/XFree86-4-Server/distinfo
+++ b/x11-servers/XFree86-4-Server/distinfo
@@ -1 +1,2 @@
MD5 (xc/X410src-1.tgz) = 2d4709f7106a1d65c175be445a3d3c32
+MD5 (xc/mga-133_143-source.tgz) = 849bf57f23f1684fea970459f919d1f2
diff --git a/x11-servers/XFree86-4-Server/pkg-plist b/x11-servers/XFree86-4-Server/pkg-plist
index 1fe8887c9b29..906a6bb10c95 100644
--- a/x11-servers/XFree86-4-Server/pkg-plist
+++ b/x11-servers/XFree86-4-Server/pkg-plist
@@ -30,6 +30,8 @@ lib/X11/doc/README.dps
lib/X11/doc/README.fonts
%%I386:%%lib/X11/doc/README.i740
%%I386:%%lib/X11/doc/README.i810
+%%MATROX%%lib/X11/doc/README.mga
+%%MATROX%%lib/X11/doc/README.mga_HALLIB
lib/X11/doc/README.mouse
%%I386:%%lib/X11/doc/README.newport
%%I386:%%lib/X11/doc/README.r128
@@ -44,11 +46,11 @@ lib/X11/etc/Xinstall.sh
lib/X11/etc/sun.termcap
lib/X11/etc/sun.terminfo
lib/X11/etc/xmodmap.std
-%%DRI%%lib/X11/kernel/drm.ko
-%%DRI%%lib/X11/kernel/gamma.ko
-%%DRI%%lib/X11/kernel/mga.ko
-%%DRI%%lib/X11/kernel/tdfx.ko
-%%DRI%%@dirrm lib/X11/kernel
+%%DRI_KMOD%%lib/X11/kernel/drm.ko
+%%DRI_KMOD%%lib/X11/kernel/gamma.ko
+%%DRI_KMOD%%lib/X11/kernel/mga.ko
+%%DRI_KMOD%%lib/X11/kernel/tdfx.ko
+%%DRI_KMOD%%@dirrm lib/X11/kernel
lib/X11/xserver/SecurityPolicy
lib/modules/codeconv/libARABIC.a
lib/modules/codeconv/libARMSCII8.a
@@ -83,6 +85,7 @@ lib/modules/codeconv/libVISCII.a
%%DRI%%lib/modules/dri/gamma_dri.so
%%I386:%%%%DRI%%lib/modules/dri/i810_dri.so
%%DRI%%lib/modules/dri/mga_dri.so
+%%DRI%%lib/modules/dri/radeon_dri.so
%%I386:%%%%DRI%%lib/modules/dri/r128_dri.so
%%I386:%%%%DRI%%lib/modules/dri/sis_dri.so
%%I386:%%lib/modules/drivers/apm_drv.o