summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston A. Elder <prez@gentoo.org>2003-04-20 01:00:10 +0000
committerPreston A. Elder <prez@gentoo.org>2003-04-20 01:00:10 +0000
commit9106c213c81741e86f3c48cf4330e0c5c3d21119 (patch)
tree698f81b9fd6cd163d4603b678821523ab07b8f6f /media-video/mtxdrivers
parentAdded matrox file download license (diff)
downloadhistorical-9106c213c81741e86f3c48cf4330e0c5c3d21119.tar.gz
historical-9106c213c81741e86f3c48cf4330e0c5c3d21119.tar.bz2
historical-9106c213c81741e86f3c48cf4330e0c5c3d21119.zip
Added mtxdriver to portage
Diffstat (limited to 'media-video/mtxdrivers')
-rw-r--r--media-video/mtxdrivers/ChangeLog9
-rw-r--r--media-video/mtxdrivers/files/digest-mtxdrivers-0.2.11
-rw-r--r--media-video/mtxdrivers/mtxdrivers-0.2.1.ebuild59
3 files changed, 69 insertions, 0 deletions
diff --git a/media-video/mtxdrivers/ChangeLog b/media-video/mtxdrivers/ChangeLog
new file mode 100644
index 000000000000..23730191d96a
--- /dev/null
+++ b/media-video/mtxdrivers/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for media-video/nvclock
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/ChangeLog,v 1.1 2003/04/20 01:00:10 prez Exp $
+
+*mtxdrives (19 Apr 2003)
+
+ 19 Apr 2003; Preston A. Elder <prez@gentoo.org> mtxdrivers-0.2.1.ebuild
+ files/digest-mtxdrivers-0.2.1 :
+ Initial add of Matrox driver to portage
diff --git a/media-video/mtxdrivers/files/digest-mtxdrivers-0.2.1 b/media-video/mtxdrivers/files/digest-mtxdrivers-0.2.1
new file mode 100644
index 000000000000..5e54592b6e6f
--- /dev/null
+++ b/media-video/mtxdrivers/files/digest-mtxdrivers-0.2.1
@@ -0,0 +1 @@
+MD5 b07e17fbc4a9747af0d99a92fdc8cc06 mtxdrivers_0.2.1.tgz 581702
diff --git a/media-video/mtxdrivers/mtxdrivers-0.2.1.ebuild b/media-video/mtxdrivers/mtxdrivers-0.2.1.ebuild
new file mode 100644
index 000000000000..a133f5878440
--- /dev/null
+++ b/media-video/mtxdrivers/mtxdrivers-0.2.1.ebuild
@@ -0,0 +1,59 @@
+# 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.2.1.ebuild,v 1.1 2003/04/20 01:00:10 prez Exp $
+
+RELEASE=2002
+SRC_URI="ftp://ftp.matrox.com/pub/mga/archive/linux/${RELEASE}/${P/-/_}.tgz"
+DESCRIPTION="Drviers for the Matrox Parhelia card."
+HOMEPAGE="http://www.matrox.com/mga/support/drivers/latest/home.cfm"
+
+DEPEND=">=x11-base/xfree-4.1.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() {
+ unpack ${A}
+ mv mtxdrivers ${P}
+}
+
+src_compile() {
+
+ if [ ! -e ${S}/mtxdrivers/${Xversion} ]; then
+ eerror "Matrox does not support XFree v${Xversion}"
+ fi
+
+ cd ${S}/kernel/src
+ emake clean
+ emake
+}
+
+src_install() {
+ cd ${S}
+
+ Xpath="`which X | sed -e "s:/bin/X$::"`"
+ Kversion=`uname -r`
+
+ dodir /usr/lib /lib/modules/${Kversion}/kernel/drivers/video ${Xpath}/lib/modules/drivers ${Xpath}/lib/modules/linux
+
+ cp ${S}/xfree86/${Xversion}/mtx_drv.o ${D}/${Xpath}/lib/modules/drivers
+ chmod 755 ${D}/${Xpath}/lib/modules/drivers/mtx_drv.o
+
+ cp ${S}/lib/libparhl.so ${D}/usr/lib
+ chmod 755 ${D}/usr/lib/libparhl.so
+ ln -sf /usr/lib/libparhl.so ${D}${Xpath}/lib/modules/linux
+
+ cp -a kernel/src/mtx.o ${D}/lib/modules/${Kversion}/kernel/drivers/video
+ chmod 755 ${D}/lib/modules/${Kversion}/kernel/drivers/video/mtx.o
+
+ dodoc README samples/*
+}
+
+pkg_postinst() {
+ einfo "Please look at /usr/share/doc/${P}/XF86Config.*"
+ einfo "for X configurations for your Parhelia card."
+}