diff options
author | jmz <jmz@FreeBSD.org> | 2001-03-14 00:02:00 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2001-03-14 00:02:00 +0800 |
commit | 1270209c4d73b31718f151ff1fc38554d4f7caf6 (patch) | |
tree | 59bd0a0c74f8f9ec000c477da5a8fb3b41f21c29 /x11/XFree86-4 | |
parent | ed1f654d1860e5626efbd12cb8a8a612a5dfa4b0 (diff) | |
download | freebsd-ports-gnome-1270209c4d73b31718f151ff1fc38554d4f7caf6.tar.gz freebsd-ports-gnome-1270209c4d73b31718f151ff1fc38554d4f7caf6.tar.zst freebsd-ports-gnome-1270209c4d73b31718f151ff1fc38554d4f7caf6.zip |
Add the official Matrox driver for G200, G400 and G450 graphic adapters.
This is optional and enabled only if WITH_MATROX_GXX_DRIVER is defined.
Submitted by: lioux
Diffstat (limited to 'x11/XFree86-4')
-rw-r--r-- | x11/XFree86-4/Makefile | 32 | ||||
-rw-r--r-- | x11/XFree86-4/distinfo | 1 |
2 files changed, 29 insertions, 4 deletions
diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile index 0fc274ba54aa..3dc0f4450f54 100644 --- a/x11/XFree86-4/Makefile +++ b/x11/XFree86-4/Makefile @@ -12,6 +12,7 @@ CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE} MASTER_SITE_SUBDIR= ${PORTVERSION} DISTFILES= X402src-1.tgz X402src-2.tgz +EXTRACT_ONLY= X402src-1.tgz X402src-2.tgz MAINTAINER= jmz@FreeBSD.org @@ -65,18 +66,24 @@ pre-fetch: .elif defined(USA_RESIDENT) .if ${USA_RESIDENT} == NO pre-fetch: +.ifndef WITH_MATROX_GXX_DRIVER + @${ECHO} Define WITH_MATROX_GXX_DRIVER if you want to enable Matrox driver for + @${ECHO} G200, G400 and G450 graphic adapters +.endif MASTER_SITES+= ftp://psych.psy.uq.oz.au/pub/X11R5/ \ ftp://ftp.internat.freebsd.org/pub/FreeBSD/X11-Crypto/ \ ftp://ftp3.za.freebsd.org/pub/FreeBSD/X11-Crypto/ -EXTRACT_ONLY= X402src-1.tgz X402src-2.tgz DISTFILES+= Wraphelp.c IGNOREFILES= Wraphelp.c -.endif -.if ${USA_RESIDENT} == YES +.else # ${USA_RESIDENT} == YES pre-fetch: @${ECHO} @${ECHO} Assuming that you have fetched a USA-Legal Wraphelp.c. +.ifndef WITH_MATROX_GXX_DRIVER + @${ECHO} Define WITH_MATROX_GXX_DRIVER if you want to enable Matrox driver for + @${ECHO} G200, G400 and G450 graphic adapters .endif +.endif # ${USA_RESIDENT} .endif .include <bsd.port.pre.mk> @@ -85,13 +92,30 @@ pre-fetch: BROKEN= "can't be compiled on this system (missing headers)" .endif +.if defined(WITH_MATROX_GXX_DRIVER) +MGA_DRIVER_VERSION= 1_01_05beta +MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION:S/beta//} +DISTFILES+= mga-${MGA_DRIVER_VERSION}.tgz +.endif # WITH_MATROX_GXX_DRIVER + .if ${OSVERSION} > 500012 post-patch: @if [ ! -e ${WRKSRC}/include/Xarch.h.orig ]; then\ mv ${WRKSRC}/include/Xarch.h ${WRKSRC}/include/Xarch.h.orig;\ ${SED} -e 52d -e 54d < ${WRKSRC}/include/Xarch.h.orig > \ ${WRKSRC}/include/Xarch.h; fi -.endif +.endif # ${OSVERSION} > 500012 +.if defined(WITH_MATROX_GXX_DRIVER) +.if !target(post-patch) +post-patch: +.endif # !target(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 + @${CP} ${WRKSRC}/config/cf/xf86site.def ${WRKSRC}/config/cf/host.def + @${ECHO} "#define HaveMatroxHal YES" >> ${WRKSRC}/config/cf/host.def +.endif # WITH_MATROX_GXX_DRIVER pre-install: ${MKDIR} ${PREFIX} diff --git a/x11/XFree86-4/distinfo b/x11/XFree86-4/distinfo index e639db28b418..e0b578bf3f6c 100644 --- a/x11/XFree86-4/distinfo +++ b/x11/XFree86-4/distinfo @@ -1,3 +1,4 @@ MD5 (xc/X402src-1.tgz) = d314c311aa4a29d74695b0e39b6d80c4 MD5 (xc/X402src-2.tgz) = 7dc2f848c7466f6704c8dfc3492628ae MD5 (xc/Wraphelp.c) = IGNORE +MD5 (xc/mga-1_01_05beta.tgz) = b3ac9ff7490ef9160578e0264e4f04fd |