summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-09-05 22:41:59 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-09-05 22:41:59 +0000
commitebac74db9af113d98c1e70c9a2583d1a6b0f7718 (patch)
tree8cdc7528b4170c50832d2cb455da84ac71c5fa30
parentStable on alpha. (diff)
downloadhistorical-ebac74db9af113d98c1e70c9a2583d1a6b0f7718.tar.gz
historical-ebac74db9af113d98c1e70c9a2583d1a6b0f7718.tar.bz2
historical-ebac74db9af113d98c1e70c9a2583d1a6b0f7718.zip
On 2.6 kernels, install the tools/scripts but no modules... closes bug #57539.
-rw-r--r--media-sound/emu10k1/ChangeLog8
-rw-r--r--media-sound/emu10k1/Manifest10
-rw-r--r--media-sound/emu10k1/emu10k1-0.20a-r6.ebuild135
-rw-r--r--media-sound/emu10k1/files/digest-emu10k1-0.20a-r61
4 files changed, 149 insertions, 5 deletions
diff --git a/media-sound/emu10k1/ChangeLog b/media-sound/emu10k1/ChangeLog
index 3971c65343ff..3237513a6221 100644
--- a/media-sound/emu10k1/ChangeLog
+++ b/media-sound/emu10k1/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/emu10k1
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/emu10k1/ChangeLog,v 1.16 2004/06/24 23:58:31 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/emu10k1/ChangeLog,v 1.17 2004/09/05 22:41:59 eradicator Exp $
+
+*emu10k1-0.20a-r6 (05 Sep 2004)
+
+ 05 Sep 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ +emu10k1-0.20a-r6.ebuild:
+ On 2.6 kernels, install the tools/scripts but no modules... closes bug #57539.
17 Apr 2004; Jeremy Huddleston <eradicator@gentoo.org>
emu10k1-0.20a-r5.ebuild:
diff --git a/media-sound/emu10k1/Manifest b/media-sound/emu10k1/Manifest
index 050cf7190f2f..f034b3b099f8 100644
--- a/media-sound/emu10k1/Manifest
+++ b/media-sound/emu10k1/Manifest
@@ -1,10 +1,12 @@
+MD5 7eb5c06aeb7ad84338abfda715d224d7 ChangeLog 2721
MD5 dfca7fd8ac65751ae0e6863623459fc1 emu10k1-0.20a-r5.ebuild 3864
-MD5 8c893eef08a4aedb4668ff8e2d76cfed ChangeLog 2519
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
+MD5 1f361f6a970228713d451eec61085851 emu10k1-0.20a-r6.ebuild 3923
MD5 cc1b5b194b1ed9e8f12c0ef441bd4958 files/README.gentoo 3591
+MD5 0adf8538874d6081ae1a984f3e4809c6 files/audigy-script 4530
MD5 c4fa14eb5b5e9ec060dc4becba91168d files/digest-emu10k1-0.20a-r5 67
-MD5 5c0aeb3e4b0c3d110aa12e2145663155 files/modules-emu10k1 101
+MD5 005d7a52156930b9de0bc03184c76f8f files/emu10k1-0.20a-gcc3.3.patch.gz 1547
MD5 33e92f14c4ebd59dcb789bd91964df92 files/emu10k1-script 1731
-MD5 0adf8538874d6081ae1a984f3e4809c6 files/audigy-script 4530
MD5 5098f0c8f428a782347cc8b42ad0b018 files/emu10k1.conf-gentoo-header 465
-MD5 005d7a52156930b9de0bc03184c76f8f files/emu10k1-0.20a-gcc3.3.patch.gz 1547
+MD5 5c0aeb3e4b0c3d110aa12e2145663155 files/modules-emu10k1 101
+MD5 c4fa14eb5b5e9ec060dc4becba91168d files/digest-emu10k1-0.20a-r6 67
diff --git a/media-sound/emu10k1/emu10k1-0.20a-r6.ebuild b/media-sound/emu10k1/emu10k1-0.20a-r6.ebuild
new file mode 100644
index 000000000000..6cf6aa7283a1
--- /dev/null
+++ b/media-sound/emu10k1/emu10k1-0.20a-r6.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/emu10k1/emu10k1-0.20a-r6.ebuild,v 1.1 2004/09/05 22:41:59 eradicator Exp $
+
+IUSE=""
+
+inherit eutils kernel-mod
+
+MY_P="${P/-/-v}"
+DESCRIPTION="Drivers, utilities, and effects for Sound Blaster cards (SBLive!, SB512, Audigy)"
+SRC_URI="mirror://sourceforge/emu10k1/${MY_P}.tar.bz2"
+RESTRICT="nomirror"
+HOMEPAGE="http://www.sourceforge.net/projects/emu10k1/"
+
+DEPEND="virtual/linux-sources"
+RDEPEND="media-sound/aumix"
+
+KEYWORDS="-* ~x86"
+SLOT="${KV}"
+LICENSE="GPL-2"
+
+S="${WORKDIR}/${MY_P}"
+
+BUILD_MODULE=0
+
+pkg_setup() {
+ [ -z "$KV" ] && die "Couldn't detect kernel version. Does /usr/src/linux exist?"
+ kernel-mod_is_2_4_kernel && BUILD_MODULE=1
+
+ return 0
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Patch for GCC 3.3
+ epatch ${FILESDIR}/${P}-gcc3.3.patch.gz || die
+}
+
+src_compile() {
+ echo "SEQUENCER_SUPPORT := y" > config
+ echo "MODVERSIONS := y" >> config
+ echo "DBGEMU := n" >> config
+
+ # Unset ARCH to prevent conflict with 2.6 kernels. See bug #40424
+ # unset ARCH
+ if [ $BUILD_MODULE -eq 1 ]
+ then
+ export KERNEL_SOURCE=/usr/src/linux
+ make || die "make failed"
+ make all || die "make all failed"
+ fi
+ make tools || die "make tools failed"
+}
+
+src_install() {
+ insinto /etc/modules.d
+ newins ${FILESDIR}/modules-emu10k1 emu10k1
+
+ if [ $BUILD_MODULE -eq 1 ]
+ then
+ # first install the main parts
+ make DESTDIR=${D} install || die "could not install"
+ fi
+
+ rm -f docs/*patch
+ dodoc docs/* ${FILESDIR}/README.gentoo
+
+ # now fix up the script so it'll install into /usr and not /usr/local
+ for f in ${S}/utils/{Makefile.config,scripts/emu-script} ; do
+ cp ${f} ${f}.old
+ sed -e 's:/usr/local:/usr:g' ${f}.old > ${f}
+ done
+ make man_prefix=${D}/usr/share/man DESTDIR=${D} install-tools || die "could not install tools"
+
+ # clean up the /usr/etc directory, movind stuff to /usr/bin...
+ cd ${D}/usr/etc
+ mv `find -type f -perm +1` ../bin/
+ mv * ${D}/etc/
+ cd ${D}
+ rm -rf ${D}/usr/etc
+
+ # add our special fixed audigy-script. Yes, the one in the driver package is b0rked and should
+ # not be used until you're absolutely sure it's superior to this one. Much thanks to
+ # Jonathan Boler (tenpin22@blueyonder.co.uk) for this excellent fixed version.
+ dobin ${FILESDIR}/audigy-script || die
+
+ # add wrapper script to handle audigy and emu cards
+ dobin ${FILESDIR}/emu10k1-script || die
+ cd ${D}/etc
+ cp emu10k1.conf ${T}/
+ {
+ cat ${FILESDIR}/emu10k1.conf-gentoo-header
+ cat ${T}/emu10k1.conf
+ } > emu10k1.conf
+
+ # clean up the scripts
+ dosed 's:$BASE_PATH/etc:/etc:g' /usr/bin/emu-script
+ dosed 's:\.aumixrc:aumixrc:g' /usr/bin/emu-script
+ # set tone control defaults to 50 (neutral)
+ dosed 's:68:50:g' /usr/bin/emu-script
+ # the audigy script is a local copy in ${FILESDIR} and has already been fixed up.
+
+ # change default settings
+ dosed 's:AC3PASSTHROUGH=no:AC3PASSTHROUGH=yes:' /etc/emu10k1.conf
+ dosed 's:ANALOG_FRONT_BOOST=no:ANALOG_FRONT_BOOST=yes:' /etc/emu10k1.conf
+ dosed 's:SURROUND=no:SURROUND=yes:' /etc/emu10k1.conf
+
+}
+
+pkg_postinst() {
+ #update-modules handles depmod -a for us
+ if [ -e /sbin/update-modules ]
+ then
+ /sbin/update-modules
+ else
+ /usr/sbin/update-modules
+ fi
+ einfo "In order for the module to work correctly you must"
+ einfo "Enable the following options in your kernel:"
+ echo
+ einfo "Sound/Sound card support (module or builtin)"
+ einfo "Sound/OSS sound modules (module or builtin)"
+ echo
+ einfo "In addition, ensure that the following modules are"
+ einfo "*not* built in to your kernel, or are at least"
+ einfo "built as modules are not currently loaded."
+ echo
+ einfo "Sound/Creative SBLive! (EMU10K1) (disabled or module)"
+ einfo "Sound/Creative SBLive! MIDI (disabled or module)"
+ echo
+ einfo "If you have not yet done this, rebuild and install"
+ einfo "your kernel modules and re-emerge this package."
+}
diff --git a/media-sound/emu10k1/files/digest-emu10k1-0.20a-r6 b/media-sound/emu10k1/files/digest-emu10k1-0.20a-r6
new file mode 100644
index 000000000000..c5afcbd75a1f
--- /dev/null
+++ b/media-sound/emu10k1/files/digest-emu10k1-0.20a-r6
@@ -0,0 +1 @@
+MD5 ffeab46e1b5ff9fd834dc78e240edf4b emu10k1-v0.20a.tar.bz2 286000