summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Houser <chouser@gentoo.org>2002-08-08 00:47:24 +0000
committerChris Houser <chouser@gentoo.org>2002-08-08 00:47:24 +0000
commit5d025e02e6911434df2fa088dec5c0f7bfc8c9b8 (patch)
tree7bde80093cc6eec0f7b589792e8cfe7685e5df30 /media-video/dxr2-driver
parentchanging deps (diff)
downloadhistorical-5d025e02e6911434df2fa088dec5c0f7bfc8c9b8.tar.gz
historical-5d025e02e6911434df2fa088dec5c0f7bfc8c9b8.tar.bz2
historical-5d025e02e6911434df2fa088dec5c0f7bfc8c9b8.zip
new ebuild
Diffstat (limited to 'media-video/dxr2-driver')
-rw-r--r--media-video/dxr2-driver/ChangeLog8
-rw-r--r--media-video/dxr2-driver/dxr2-driver-1.0.4.ebuild72
-rw-r--r--media-video/dxr2-driver/files/digest-dxr2-driver-1.0.44
3 files changed, 84 insertions, 0 deletions
diff --git a/media-video/dxr2-driver/ChangeLog b/media-video/dxr2-driver/ChangeLog
new file mode 100644
index 000000000000..0272165793f8
--- /dev/null
+++ b/media-video/dxr2-driver/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for media-video/dxr2-driver
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/media-video/dxr2-driver/ChangeLog,v 1.1 2002/08/08 00:47:24 chouser Exp $
+
+*dxr2-driver-1.0.4 (07 Aug 2002)
+
+ 07 Aug 2002; Chris Houser <chouser@gentoo.org> dxr2-driver-1.0.4.ebuild,
+ files/digest-dxr2-driver-1.0.4, ChangeLog: New ebuild.
diff --git a/media-video/dxr2-driver/dxr2-driver-1.0.4.ebuild b/media-video/dxr2-driver/dxr2-driver-1.0.4.ebuild
new file mode 100644
index 000000000000..30103e54d59e
--- /dev/null
+++ b/media-video/dxr2-driver/dxr2-driver-1.0.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/dxr2-driver/dxr2-driver-1.0.4.ebuild,v 1.1 2002/08/08 00:47:24 chouser Exp $
+
+DESCRIPTION="Driver and minimal DVD player(s) for the Creative Labs Dxr2 Card"
+HOMEPAGE="http://dxr2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dxr2/${P}.tar.gz
+ ${HOMEPAGE}/projects/dxr2-driver/firmware/DVD12.UX"
+
+LICENSE="GPL"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND=">=media-libs/libdvdread-0.9.3-r1"
+#RDEPEND=""
+
+# Non-standard source dir name for dxr2-driver
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ # Don't try to unpack the last item -- should be the .UX firmware file
+ unpack ${A% *}
+
+ # Fix up the terrible makefile
+ cd ${S}
+ cp makefile makefile.orig
+ sed -e 's:/usr/:$(DESTDIR)&:g' \
+ -e 's:/lib/modules/:$(DESTDIR)&:g' \
+ -e 's:/usr/local/:/usr/:g' \
+ -e 's:ln -sf $(DESTDIR):ln -sf :' \
+ -e 's:^.*modprobe:#&:' \
+ -e 's:^.*depmod:#&:' \
+ -e 's:^.*ldconfig:#&:' \
+ makefile.orig > makefile || die
+
+ # XXX: ought to fix up player/dxr2player.conf to make it gentoo-friendly
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install () {
+ # make install doesn't create standard dirs -- do that now
+ mkdir -p ${D}/usr/bin ${D}/usr/lib ${D}/usr/src ${D}/etc/modules.d || die
+
+ # no devfs support in dxr2 yet?
+ mknod ${D}/dev/dxr2 c 120 0 || die
+
+ # copy in some files that aren't installed by make install
+ cp player/dxr2player.conf ${D}/etc/ || die
+ cp ${DISTDIR}/DVD12.UX ${D}/usr/src/dvd1.ux || die
+
+ # build a default /etc/modules.d/dxr2
+ echo 'alias char-major-120 dxr2' > ${D}/etc/modules.d/dxr2 || die
+
+ # make install
+ make DESTDIR=${D} install || die
+
+ # dvdplay must be suid root
+ chmod u+s ${D}/usr/bin/dvdplay || die
+}
+
+pkg_postinst() {
+ depmod -a
+ ldconfig >/dev/null 2>&1
+ /usr/sbin/update-modules || return 0
+ einfo
+ einfo "To load the dxr2 device automaticallly at boot time:"
+ einfo " echo dxr2 >> /etc/modules.autoload"
+ einfo
+}
diff --git a/media-video/dxr2-driver/files/digest-dxr2-driver-1.0.4 b/media-video/dxr2-driver/files/digest-dxr2-driver-1.0.4
new file mode 100644
index 000000000000..80ba21ce4f79
--- /dev/null
+++ b/media-video/dxr2-driver/files/digest-dxr2-driver-1.0.4
@@ -0,0 +1,4 @@
+MD5 d31c9513bf1e6901ab459f08c2c14424 dxr2-driver-1.0.4.tar.gz 163825
+MD5 cd2c717e5a53f95fc939560772206b5f dxr2install-0.4 1556147
+MD5 3553622d2d9c449f677a5a8ccf60dcd3 libdvdread-0.9.2_hack_2.tar.gz 198392
+MD5 65276b77a981bb3d8b9b928aa7969a10 DVD12.UX 141378