diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-02 20:33:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-02 20:33:30 +0000 |
commit | 0b6c23bc28271faf1f36ff77fcc71b749affd94c (patch) | |
tree | 09f900f7b0996c77106efcbecc6ff60ea551eaa6 /audio/oss | |
parent | f66e8d95611dd309fba871d067736d3cb4c8ed59 (diff) | |
download | pkgsrc-0b6c23bc28271faf1f36ff77fcc71b749affd94c.tar.gz |
oss-3.97d - Open Sound System(TM) soundcard driver
Open Sound System(TM) (OSS) is the first attempt in unifying the digital
audio architecture for UNIX. OSS is a set of device drivers that provide a
uniform API across all the major UNIX architectures. It supports Sound
Blaster or Windows Sound System compatible sound cards which can be plugged
into any UNIX workstation supporting the ISA or PCI bus architecture. OSS
also supports workstations with on-board digital audio hardware.
The pkgsrc OSS installs the evaluation version of OSS available from
ftp.opensound.com, but allows for updating the license file to a permanent
license.
Diffstat (limited to 'audio/oss')
-rw-r--r-- | audio/oss/DEINSTALL | 47 | ||||
-rw-r--r-- | audio/oss/DESCR | 6 | ||||
-rw-r--r-- | audio/oss/INSTALL | 14 | ||||
-rw-r--r-- | audio/oss/MESSAGE | 9 | ||||
-rw-r--r-- | audio/oss/Makefile | 78 | ||||
-rw-r--r-- | audio/oss/PLIST | 101 | ||||
-rw-r--r-- | audio/oss/distinfo | 4 | ||||
-rw-r--r-- | audio/oss/files/MAKEDEV.oss | 129 | ||||
-rw-r--r-- | audio/oss/files/chroot | 16 | ||||
-rw-r--r-- | audio/oss/files/install.sh | 2 | ||||
-rw-r--r-- | audio/oss/files/oss.sh | 26 | ||||
-rw-r--r-- | audio/oss/files/responses | 4 |
12 files changed, 436 insertions, 0 deletions
diff --git a/audio/oss/DEINSTALL b/audio/oss/DEINSTALL new file mode 100644 index 00000000000..73166c46691 --- /dev/null +++ b/audio/oss/DEINSTALL @@ -0,0 +1,47 @@ +# $NetBSD: DEINSTALL,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $ + +OSSLIBDIR="@OSSLIBDIR@" +SFILES="@SFILES@" + +case ${STAGE} in +DEINSTALL) + # + # Unconditionally remove the OSS files in /etc. + # + for file in ${SFILES}; do + ${RM} -f /etc/$${file} + done + # + # Unconditionally remove the OSS license file. + # + ${RM} -f ${OSSLIBDIR}/license.asc + # + # Remove some files generated by soundconf/sndconf. + # + ${RM} -f ${OSSLIBDIR}/*.log + ${RM} -f ${OSSLIBDIR}/devices.cfg + ${RM} -f ${OSSLIBDIR}/modules.cfg + ${RM} -f ${OSSLIBDIR}/order.html + ${RM} -f ${OSSLIBDIR}/pnpres.dat + ;; + +POST-DEINSTALL) + # + # Remove the OSS devices. + # + ${RM} -f /dev/dsp* /dev/audio* /dev/mixer* /dev/midi* + ${RM} -f /dev/sequencer /dev/music /dev/sndstat + + ${CAT} << EOF +=========================================================================== + +The OSS devices in /dev have been removed. You should run + + cd /dev; sh MAKEDEV all + +to recreate any audio devices which were overwritten by the OSS devices. + +=========================================================================== +EOF + ;; +esac diff --git a/audio/oss/DESCR b/audio/oss/DESCR new file mode 100644 index 00000000000..a6b0571c21b --- /dev/null +++ b/audio/oss/DESCR @@ -0,0 +1,6 @@ +Open Sound System(TM) (OSS) is the first attempt in unifying the digital +audio architecture for UNIX. OSS is a set of device drivers that provide a +uniform API across all the major UNIX architectures. It supports Sound +Blaster or Windows Sound System compatible sound cards which can be plugged +into any UNIX workstation supporting the ISA or PCI bus architecture. OSS +also supports workstations with on-board digital audio hardware. diff --git a/audio/oss/INSTALL b/audio/oss/INSTALL new file mode 100644 index 00000000000..414a540c3e7 --- /dev/null +++ b/audio/oss/INSTALL @@ -0,0 +1,14 @@ +# $NetBSD: INSTALL,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $ + +OSSLIBDIR="@OSSLIBDIR@" + +case ${STAGE} in +POST-INSTALL) + # + # Create the OSS devices in /dev. + # + ${ECHO} + ${ECHO} "Creating OSS devices..." + cd /dev && ${SH} ${OSSLIBDIR}/MAKEDEV.oss all + ;; +esac diff --git a/audio/oss/MESSAGE b/audio/oss/MESSAGE new file mode 100644 index 00000000000..041103e8dd6 --- /dev/null +++ b/audio/oss/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/10/02 20:33:30 jlam Exp $ + +To use OSS, you will need a kernel built with the LKM option enabled, e.g. +GENERIC, GENERIC_LAPTOP. + +You should also initially run "soundconf" as root to detect and configure +and system soundcard(s), and to install a permanent license for OSS. +=========================================================================== diff --git a/audio/oss/Makefile b/audio/oss/Makefile new file mode 100644 index 00000000000..877b4879490 --- /dev/null +++ b/audio/oss/Makefile @@ -0,0 +1,78 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/02 20:33:30 jlam Exp $ + +DISTNAME= oss397d-netbsd-v1.6 +PKGNAME= oss-3.97d +CATEGORIES= audio sysutils +MASTER_SITES= ftp://ftp.opensound.com/pub/oss/netbsd/ + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://www.opensound.com/oss.html +COMMENT= Open Sound System(TM) soundcard driver + +ONLY_FOR_PLATFORM= NetBSD-1.6-i386 NetBSD-1.6.*-i386 + +RESTRICTED= "No re-distribution." +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} +NO_SRC_ON_FTP= ${RESTRICTED} +NO_BIN_ON_FTP= ${RESTRICTED} + +USE_BUILDLINK2= # defined +NO_CONFIGURE= # defined +NO_BUILD= # defined + +CHROOT?= /usr/sbin/chroot +WRKSRC= ${WRKDIR} +OSSLIBDIR= ${PREFIX}/lib/oss +FILES_SUBST+= OSSLIBDIR=${OSSLIBDIR} + +# OSS needs to find certain files in /etc, so this package can't be +# made to honor ${PKG_SYSCONFDIR}. +# +SFILES= drums.o3 drums.sb oss.conf std.o3 std.sb +FILES_SUBST+= SFILES=${SFILES:Q} +.for FILE in ${SFILES} +SUPPORT_FILES+= ${OSSLIBDIR}/${FILE} /etc/${FILE} +.endfor +SUPPORT_FILES+= ${OSSLIBDIR}/license.asc.eval ${OSSLIBDIR}/license.asc +RCD_SCRIPTS= oss + +post-extract: + ${MKDIR} ${WRKSRC} + ${MKDIR} ${WRKSRC}/dev + ${MKDIR} ${WRKSRC}/etc + ${CP} ${FILESDIR}/responses ${WRKSRC} + ( ${ECHO} "#!${SH}"; \ + ${ECHO} "${CAT} responses | ./oss-install" \ + ) > ${WRKSRC}/install.sh + ${CHMOD} +x ${WRKSRC}/install.sh + +chroot: + ${PAX} -rw `${CAT} ${FILESDIR}/chroot` ${WRKSRC} + ${CHROOT} -u ${ROOT_USER} -g ${ROOT_GROUP} ${WRKSRC} ./install.sh + ${ECHO} "OSSLIBDIR=${OSSLIBDIR}" > ${WRKSRC}/usr/lib/oss/oss.conf + ${MV} ${WRKSRC}/usr/lib/oss/license.asc \ + ${WRKSRC}/usr/lib/oss/license.asc.eval + ${RM} ${WRKSRC}/usr/lib/oss/*.log + +do-install: chroot + cd ${WRKSRC}/usr; ${PAX} -rwpe lib/oss ${PREFIX} + ${INSTALL_DATA} ${FILESDIR}/MAKEDEV.oss ${OSSLIBDIR} + ${LN} -sf ../lib/oss/mixer ${PREFIX}/bin/ossmixer + ${LN} -sf ../lib/oss/mplay ${PREFIX}/bin/ossmplay + ${LN} -sf ../lib/oss/ossxmix ${PREFIX}/bin/ossxmix + ${LN} -sf ../lib/oss/play ${PREFIX}/bin/ossplay + ${LN} -sf ../lib/oss/record ${PREFIX}/bin/ossrecord + ${LN} -sf ../lib/oss/savemixer ${PREFIX}/bin/osssavemixer + ${LN} -sf ../lib/oss/soundconf ${PREFIX}/bin/soundconf + ${LN} -sf ../lib/oss/soundoff ${PREFIX}/bin/soundoff + ${LN} -sf ../lib/oss/soundon ${PREFIX}/bin/soundon + + ${RM} -rf ${WRKSRC}/bin ${WRKSRC}/sbin ${WRKSRC}/usr + ${RM} -f ${WRKSRC}/dev/mixer0 ${WRKSRC}/dev/null + ${RM} -f ${WRKSRC}/etc/oss.conf + ${RM} -f ${WRKSRC}/etc/*.o3 ${WRKSRC}/etc/*.sb + ${RM} -f ${WRKSRC}/*.core + +.include "../../mk/bsd.pkg.install.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/audio/oss/PLIST b/audio/oss/PLIST new file mode 100644 index 00000000000..dd87e3dc0f8 --- /dev/null +++ b/audio/oss/PLIST @@ -0,0 +1,101 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $ +bin/ossplay +bin/ossmixer +bin/ossmplay +bin/ossrecord +bin/osssavemixer +bin/ossxmix +bin/soundconf +bin/soundoff +bin/soundon +lib/oss/Cards.lis +lib/oss/LICENSE +lib/oss/MAKEDEV.oss +lib/oss/Readme +lib/oss/allmods.cfg +lib/oss/awe_voice.h +lib/oss/checklic +lib/oss/config.dat +lib/oss/dm.h +lib/oss/docs/Cards.lis +lib/oss/docs/README.256AV +lib/oss/docs/README.AudioPCI +lib/oss/docs/README.CMI8738 +lib/oss/docs/README.CS4280 +lib/oss/docs/README.Digi32 +lib/oss/docs/README.Digi96 +lib/oss/docs/README.EWS64 +lib/oss/docs/README.Envy24 +lib/oss/docs/README.Intelpci +lib/oss/docs/README.Irqsharing +lib/oss/docs/README.KDE +lib/oss/docs/README.Maestro +lib/oss/docs/README.Notebooks +lib/oss/docs/README.Playing +lib/oss/docs/README.Riptide +lib/oss/docs/README.SBLive +lib/oss/docs/README.Studio +lib/oss/docs/README.Upgrading +lib/oss/docs/README.VirtualMixer +lib/oss/docs/README.Vortex +lib/oss/docs/README.WaveLoop +lib/oss/docs/README.Yamaha-DSXG +lib/oss/docs/README.awe +lib/oss/docs/README.chips +lib/oss/docs/README.cs4232 +lib/oss/docs/README.fullduplex +lib/oss/docs/README.ossmix +lib/oss/docs/README.osstest +lib/oss/docs/README.performance +lib/oss/docs/README.soundscape +lib/oss/docs/README.vivo +lib/oss/docs/README.za2 +lib/oss/docs/programming.txt +lib/oss/docs/using_oss.txt +lib/oss/drums.o3 +lib/oss/drums.sb +lib/oss/emu10k.bin1 +lib/oss/emu10k.bin2 +lib/oss/errors.cat +lib/oss/include/sys/awe_voice.h +lib/oss/include/sys/dm.h +lib/oss/include/sys/soundcard.h +lib/oss/include/sys/ultrasound.h +lib/oss/install.sh +lib/oss/install2.sh +lib/oss/ld10k +lib/oss/libOSSlib.a +lib/oss/license.asc.eval +lib/oss/mixer +lib/oss/mixer.def +lib/oss/modules.dep +lib/oss/modules.lis +lib/oss/mplay +lib/oss/options.cfg +lib/oss/order.tmpl +lib/oss/oss.conf +lib/oss/oss.o +lib/oss/ossmix +lib/oss/osstest +lib/oss/ossxmix +lib/oss/play +lib/oss/record +lib/oss/savemixer +lib/oss/sfxload +lib/oss/sndconf +lib/oss/soundcard.h +lib/oss/soundconf +lib/oss/soundoff +lib/oss/soundon +lib/oss/std.o3 +lib/oss/std.sb +lib/oss/synthgm.sf2 +lib/oss/ui_X.so +lib/oss/ui_curses.so +lib/oss/ultrasound.h +lib/oss/uninstall.sh +lib/oss/za2v2.dat +@dirrm lib/oss/include/sys +@dirrm lib/oss/include +@dirrm lib/oss/docs +@dirrm lib/oss diff --git a/audio/oss/distinfo b/audio/oss/distinfo new file mode 100644 index 00000000000..a36f329ff14 --- /dev/null +++ b/audio/oss/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/10/02 20:33:30 jlam Exp $ + +SHA1 (oss397d-netbsd-v1.6.tar.gz) = 57292aae50465a498294348cf8b4b251173c1c32 +Size (oss397d-netbsd-v1.6.tar.gz) = 1092800 bytes diff --git a/audio/oss/files/MAKEDEV.oss b/audio/oss/files/MAKEDEV.oss new file mode 100644 index 00000000000..ad2e29b8fa2 --- /dev/null +++ b/audio/oss/files/MAKEDEV.oss @@ -0,0 +1,129 @@ +#!/bin/sh - +# +# $NetBSD: MAKEDEV.oss,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $ +# + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +umask 77 + +# OSS devices have major number 30 +major=30 + +makedev() +{ + +for i +do + +case $i in + +all) + makedev audio dsp dmfm midi mixer music sequencer sndstat + ;; + +audio) + makedev audio0 audio1 audio2 audio3 audio4 audio5 audio6 audio7 + makedev audio8 audio9 audio10 audio11 audio12 audio13 audio14 audio15 + ;; + +dmfm) + makedev dmfm0 + ln -fs dsp dmdsp0 + ln -fs midi dmmidi0 + ;; + +dsp) + makedev dsp0 dsp1 dsp2 dsp3 dsp4 dsp5 dsp6 dsp7 dsp8 dsp9 + makedev dsp10 dsp11 dsp12 dsp13 dsp14 dsp15 + makedev dspW0 dspW1 dspW2 dspW3 dspW4 dspW5 dspW6 dspW7 dspW8 dspW9 + makedev dspW10 dspW11 dspW12 dspW13 dspW14 dspW15 + ln -fs dsp0 dsp + ln -fs dspW0 dspW + ;; + +midi) + makedev midi00 midi01 midi02 midi03 midi04 + ln -fs midi00 midi + ;; + +mixer) + makedev mixer0 mixer1 mixer2 mixer3 mixer4 + ;; + +audio*) + unit=${i#audio} + audio=audio$unit + rm -f $audio + mknod $audio c $major $(($unit * 16 + 4)) + chmod 666 $audio + ;; + +dmfm*) + unit=${i#dmfm} + dmfm=dmfm$unit + rm -f $dmfm + mknod $dmfm c $major $(($unit * 16 + 7)) + chmod 666 $dmfm + ;; + +dspW*) + unit=${i#dspW} + dspW=dspW$unit + rm -f $dspW + mknod $dspW c $major $(($unit * 16 + 5)) + chmod 666 $dspW + ;; + +dsp*) + unit=${i#dsp} + dsp=dsp$unit + rm -f $dsp + mknod $dsp c $major $(($unit * 16 + 3)) + chmod 666 $dsp + ;; + +midi*) + unit=${i#midi} + midi=midi$unit + rm -f $midi + mknod $midi c $major $(($unit * 16 + 2)) + chmod 666 $midi + ;; + +mixer*) + unit=${i#mixer} + mixer=mixer$unit + rm -f $mixer + mknod $mixer c $major $(($unit * 16 + 0)) + chmod 666 $mixer + ;; + +music) + rm -f music + mknod music c $major 8 + chmod 666 music + ;; + +sequencer) + rm -f sequencer + mknod sequencer c $major 1 + chmod 666 sequencer + ln -fs music sequencer2 + ;; + +sndstat) + rm -f sndstat + mknod sndstat c $major 6 + chmod 666 sndstat + ;; + +*) + echo $i: unknown device + ;; + +esac +done + +} + +makedev $* diff --git a/audio/oss/files/chroot b/audio/oss/files/chroot new file mode 100644 index 00000000000..1d1153003ee --- /dev/null +++ b/audio/oss/files/chroot @@ -0,0 +1,16 @@ +/bin/sh +/bin/cat +/bin/chmod +/bin/cp +/bin/echo +/bin/ln +/bin/rm +/bin/sync +/bin/test +/dev/null +/sbin/mknod +/usr/bin/tar +/usr/bin/touch +/usr/lib/libc.so* +/usr/lib/libcurses.so* +/usr/libexec/ld.elf_so diff --git a/audio/oss/files/install.sh b/audio/oss/files/install.sh new file mode 100644 index 00000000000..638b48c055a --- /dev/null +++ b/audio/oss/files/install.sh @@ -0,0 +1,2 @@ +#!/bin/sh +/bin/cat responses | ./oss-install diff --git a/audio/oss/files/oss.sh b/audio/oss/files/oss.sh new file mode 100644 index 00000000000..9218ce76079 --- /dev/null +++ b/audio/oss/files/oss.sh @@ -0,0 +1,26 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: oss.sh,v 1.1.1.1 2002/10/02 20:33:31 jlam Exp $ +# +# PROVIDE: oss +# REQUIRE: aftermountlkm +# KEYWORD: shutdown + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="oss" +rcvar=$name +required_files="/etc/oss.conf" +start_cmd="@PREFIX@/bin/soundon" +stop_cmd="@PREFIX@/bin/soundoff" + +if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ] +then + load_rc_config $name + run_rc_command "$1" +else + $start_cmd +fi + diff --git a/audio/oss/files/responses b/audio/oss/files/responses new file mode 100644 index 00000000000..2827cd6aa77 --- /dev/null +++ b/audio/oss/files/responses @@ -0,0 +1,4 @@ + +A +A +1 |