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/Makefile | |
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/Makefile')
-rw-r--r-- | audio/oss/Makefile | 78 |
1 files changed, 78 insertions, 0 deletions
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" |