/[gentoo-x86]/media-sound/emu10k1-cvs/emu10k1-cvs-16042003.ebuild
Gentoo

Contents of /media-sound/emu10k1-cvs/emu10k1-cvs-16042003.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Feb 7 17:16:37 2004 UTC (16 years, 9 months ago) by ferringb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
removing emu10k1-cvs from the tree

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-sound/emu10k1-cvs/emu10k1-cvs-16042003.ebuild,v 1.4 2003/09/17 19:46:10 johnm Exp $
4
5 MY_P="emu10k1"
6 DESCRIPTION="Drivers, utilities, and effects for Sound Blaster cards (SBLive!, SB512, Audigy, Audigy2)"
7 SRC_URI="mirror://gentoo/${MY_P}-${PV}.tar.bz2"
8 HOMEPAGE="http://www.sourceforge.net/projects/emu10k1/"
9
10 DEPEND="virtual/linux-sources"
11 RDEPEND="media-sound/aumix"
12
13 KEYWORDS="-* ~x86"
14 SLOT="${KV}"
15 LICENSE="GPL-2"
16
17 S="${WORKDIR}/${MY_P}"
18
19 pkg_setup() {
20 [ -z "$KV" ] && die "Couldn't detect kernel version. Does /usr/src/linux exist?"
21 return 0
22 }
23
24 src_compile() {
25 epatch ${FILESDIR}/emu10k1-gcc-3.3.diff
26
27 echo "SEQUENCER_SUPPORT := y" > config
28 echo "MODVERSIONS := y" >> config
29 echo "DBGEMU := n" >> config
30
31 export KERNEL_SOURCE=/usr/src/linux
32 make || die "make failed"
33 make all || die "make all failed"
34 make tools || die "make tools failed"
35 }
36
37 src_install() {
38 insinto /etc/modules.d
39 newins ${FILESDIR}/modules-emu10k1 emu10k1
40
41 # first install the main parts
42 make DESTDIR=${D} install || die "could not install"
43 rm -f docs/*patch
44 dodoc docs/* ${FILESDIR}/README.gentoo
45
46 # now fix up the script so it'll install into /usr and not /usr/local
47 for f in ${S}/utils/{Makefile.config,scripts/emu-script} ; do
48 cp ${f} ${f}.old
49 sed -e 's:/usr/local:/usr:g' ${f}.old > ${f}
50 done
51 make man_prefix=${D}/usr/share/man DESTDIR=${D} install-tools || die "could not install tools"
52
53 # clean up the /usr/etc directory, movind stuff to /usr/bin...
54 cd ${D}/usr/etc
55 mv `find -type f -perm +1` ../bin/
56 mv * ${D}/etc/
57 cd ${D}
58 rm -rf ${D}/usr/etc
59
60 # add our special fixed audigy-script. Yes, the one in the driver package is b0rked and should
61 # not be used until you're absolutely sure it's superior to this one. Much thanks to
62 # Jonathan Boler (tenpin22@blueyonder.co.uk) for this excellent fixed version.
63 dobin ${FILESDIR}/audigy-script || die
64
65 # add wrapper script to handle audigy and emu cards
66 dobin ${FILESDIR}/emu10k1-script || die
67 cd ${D}/etc
68 cp emu10k1.conf ${T}/
69 {
70 cat ${FILESDIR}/emu10k1.conf-gentoo-header
71 cat ${T}/emu10k1.conf
72 } > emu10k1.conf
73
74 # clean up the scripts
75 dosed 's:$BASE_PATH/etc:/etc:g' /usr/bin/emu-script
76 dosed 's:\.aumixrc:aumixrc:g' /usr/bin/emu-script
77 # set tone control defaults to 50 (neutral)
78 dosed 's:68:50:g' /usr/bin/emu-script
79 # the audigy script is a local copy in ${FILESDIR} and has already been fixed up.
80
81 # change default settings
82 dosed 's:AC3PASSTHROUGH=no:AC3PASSTHROUGH=yes:' /etc/emu10k1.conf
83 dosed 's:ANALOG_FRONT_BOOST=no:ANALOG_FRONT_BOOST=yes:' /etc/emu10k1.conf
84 dosed 's:SURROUND=no:SURROUND=yes:' /etc/emu10k1.conf
85
86 }
87
88 pkg_postinst() {
89 #update-modules handles depmod -a for us
90 if [ -e /sbin/update-modules ]
91 then
92 /sbin/update-modules
93 else
94 /usr/sbin/update-modules
95 fi
96 einfo "In order for the module to work correctly you must"
97 einfo "Enable the following options in your kernel:"
98 echo
99 einfo "Sound/Sound card support (module or builtin)"
100 einfo "Sound/OSS sound modules (module or builtin)"
101 echo
102 einfo "In addition, ensure that the following modules are"
103 einfo "*not* built in to your kernel, or are at least"
104 einfo "built as modules are not currently loaded."
105 echo
106 einfo "Sound/Creative SBLive! (EMU10K1) (disabled or module)"
107 einfo "Sound/Creative SBLive! MIDI (disabled or module)"
108 echo
109 einfo "If you have not yet done this, rebuild and install"
110 einfo "your kernel modules and re-emerge this package."
111 }

  ViewVC Help
Powered by ViewVC 1.1.20