summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston A. Elder <prez@gentoo.org>2003-06-06 15:24:48 +0000
committerPreston A. Elder <prez@gentoo.org>2003-06-06 15:24:48 +0000
commit1a4d1b58b1099c07bcb69c326ca1a3e832d94b95 (patch)
treeaedc34e9f1e8399132c4f8f1f333d6b359ff0d97 /media-video
parentRe-adding sambasentinel; sooner or later I'll get used to echangelog. (diff)
downloadgentoo-2-1a4d1b58b1099c07bcb69c326ca1a3e832d94b95.tar.gz
gentoo-2-1a4d1b58b1099c07bcb69c326ca1a3e832d94b95.tar.bz2
gentoo-2-1a4d1b58b1099c07bcb69c326ca1a3e832d94b95.zip
Added version 0.3.0
Diffstat (limited to 'media-video')
-rw-r--r--media-video/mtxdrivers/ChangeLog8
-rw-r--r--media-video/mtxdrivers/files/digest-mtxdrivers-0.3.00
-rw-r--r--media-video/mtxdrivers/mtxdrivers-0.3.0.ebuild73
3 files changed, 80 insertions, 1 deletions
diff --git a/media-video/mtxdrivers/ChangeLog b/media-video/mtxdrivers/ChangeLog
index 421bbb03226d..e783c110cec5 100644
--- a/media-video/mtxdrivers/ChangeLog
+++ b/media-video/mtxdrivers/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/mtxdrivers
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/ChangeLog,v 1.3 2003/04/20 02:43:20 darkspecter Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/ChangeLog,v 1.4 2003/06/06 15:24:48 prez Exp $
+
+*mtxdrives-0.3.0 (6 Jun 2003)
+
+ 6 Jun 2003; Preston A. Elder <prez@gentoo.org> mtxdrivers-0.3.0.ebuild
+ files/digest-mtxdrivers-0.3.0 :
+ Version bump.
*mtxdrives-0.2.1 (19 Apr 2003)
diff --git a/media-video/mtxdrivers/files/digest-mtxdrivers-0.3.0 b/media-video/mtxdrivers/files/digest-mtxdrivers-0.3.0
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/media-video/mtxdrivers/files/digest-mtxdrivers-0.3.0
diff --git a/media-video/mtxdrivers/mtxdrivers-0.3.0.ebuild b/media-video/mtxdrivers/mtxdrivers-0.3.0.ebuild
new file mode 100644
index 000000000000..f497849183cd
--- /dev/null
+++ b/media-video/mtxdrivers/mtxdrivers-0.3.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/mtxdrivers-0.3.0.ebuild,v 1.1 2003/06/06 15:24:48 prez Exp $
+
+At="mtxdrivers-rh9.0-0.3.0.run"
+SRC_URI=""
+DESCRIPTION="Drviers for the Matrox Parhelia and Millenium P650/P750 cards."
+HOMEPAGE="http://www.matrox.com/mga/products/parhelia/home.cfm"
+
+DEPEND=">=x11-base/xfree-4.2.0
+ virtual/kernel"
+
+SLOT="0"
+LICENSE="Matrox"
+KEYWORDS="~x86"
+
+Xversion=`X -version 2>&1 | grep -s "XFree86 Version" | cut -d" " -f3 | sed -e "s/\([^\.]*\.[^\.]*\.[^\.]*\)\.[^\.]*/\1/"`
+
+src_unpack() {
+ if [ ! -f "${DISTDIR}/${At}" ]; then
+ einfo "You must go to: http://www.matrox.com/mga/registration/home.cfm?refid=7667"
+ einfo "and log in (or create an account) to download the Matrox Parhelia drivers."
+ einfo "Remember to right-click and Save Link As when downloading them."
+ die
+ fi
+ mkdir ${S}
+ cd ${S}
+ tail -4434 "${DISTDIR}/${At}" | tar -xvzf -
+}
+
+src_compile() {
+ cd ${S}
+
+ if [ ! -e ${S}/xfree86/${Xversion} ]; then
+ eerror "Matrox does not support XFree v${Xversion}"
+ exit 1
+ fi
+
+ export PARHELIUX=$PWD/src
+ cd ${S}/src/kernel/parhelia
+ ln -sf ../../../kernel/mtx_parhelia.o .
+ cd ..
+ # Can't use emake here
+ make clean
+ make
+}
+
+src_install() {
+ cd ${S}
+
+ Xpath="`which X | sed -e "s:/bin/X$::"`"
+ Kversion=`uname -r`
+
+ dodir /lib/modules/${Kversion}/kernel/drivers/video
+ dodir ${Xpath}/lib/modules/drivers
+
+ dodoc README* samples/*
+
+ # Kernel Module
+ install -m 755 ${S}/src/kernel/mtx.o ${D}/lib/modules/${Kversion}/kernel/drivers/video
+
+ # X Driver (2D)
+ install -m 755 ${S}/xfree86/${Xversion}/mtx_drv.o ${D}/${Xpath}/lib/modules/drivers
+}
+
+pkg_postinst() {
+ /sbin/depmod -a
+ einfo "Please look at /usr/share/doc/${P}/XF86Config.* for X configurations"
+ einfo "for your Parhelia or Millenium P650/P750 card."
+ einfo "NOTE: To be able to use busmastering, you MUST have /dev/video as"
+ einfo "a directory, which means you must remove anything there first"
+ einfo "(rm -f /dev/video), and mkdir /dev/video"
+}