diff options
author | trasz <trasz@FreeBSD.org> | 2007-06-24 04:58:05 +0800 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2007-06-24 04:58:05 +0800 |
commit | 1296f35001b497bab19cd0dd0da0af425917d759 (patch) | |
tree | e9240b982d9199b2a784a613dc1bf9468ac5425b /audio/oss/Makefile | |
parent | ced1ded75b2817263af23e7ccdd873a5cb912eb5 (diff) | |
download | freebsd-ports-gnome-1296f35001b497bab19cd0dd0da0af425917d759.tar.gz freebsd-ports-gnome-1296f35001b497bab19cd0dd0da0af425917d759.tar.zst freebsd-ports-gnome-1296f35001b497bab19cd0dd0da0af425917d759.zip |
- Add Open Sound System drivers, version 4.0 build 1003.
Approved by: miwi (mentor)
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 000000000000..9d3e17612968 --- /dev/null +++ b/audio/oss/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: oss +# Date created: 2007-06-14 +# Whom: Edward Tomasz Napierala <trasz@freebsd.org> +# +# $FreeBSD$ +# + +PORTNAME= oss +DISTVERSION= 4.0-build1003 +CATEGORIES= audio +MASTER_SITES= http://developer.opensound.com/sources/stable/ +DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-gpl + +MAINTAINER= trasz@freebsd.org +COMMENT= Open Sound System + +BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk + +USE_BZIP2= yes +ALL_TARGET= all install +USE_LDCONFIG= yes +USE_GNOME= gtk20 +USE_RC_SUBR= oss +WRKSRC= ${WRKDIR}/build +PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} +SUB_FILES= pkg-install pkg-message + +MAN1= ossinfo.1 ossmix.1 ossplay.1 ossrecord.1 osstest.1 ossxmix.1 +MAN8= ossctl.8 ossdevlinks.8 savemixer.8 ossdetect.8 + +.if !exists(${SRC_BASE}/sys/Makefile) +IGNORE= requires kernel source to be installed +.endif + +do-configure: + ${MKDIR} ${WRKSRC} + cd ${WRKSRC} && ${WRKDIR}/${DISTNAME}/configure + ${FIND} ${WRKDIR}/${DISTNAME} -type f -name '*.[hc]' | ${XARGS} ${REINPLACE_CMD} \ + -e 's|"/usr/include/stdarg.h"|<stdarg.h>|g' \ + -e 's|/usr/|${PREFIX}/|g' \ + -e 's|/etc/oss|${PREFIX}/etc/oss|g' + ${REINPLACE_CMD} -e "s|mkdir|mkdir -p|" ${WRKSRC}/build.sh + ${FIND} ${WRKDIR} -name soundon -or -name soundoff -or -name build.sh | ${XARGS} ${REINPLACE_CMD} \ + -e 's|%%PREFIX%%|${PREFIX}|g' + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr/bin/* ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr//sbin/savemixer ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr/sbin/ossdevlinks ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr/sbin/ossdetect ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr/sbin/ossctl ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/prototype/usr/sbin/soundon ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/prototype/usr/sbin/soundoff ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/prototype/usr/lib/oss/lib/libOSSlib.so ${PREFIX}/lib + @# oss.conf does not contain any user-configurable data; it's ok to overwrite it. + ${INSTALL_DATA} ${WRKSRC}/prototype/etc/oss.conf ${PREFIX}/etc/oss.conf + ${MKDIR} ${PREFIX}/include/sys + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/include/sys/soundcard.h ${PREFIX}/include/sys + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/include/midiparser.h ${PREFIX}/include + ${MKDIR} ${PREFIX}/lib/oss + ${MKDIR} ${PREFIX}/lib/oss/etc + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/etc/devices.list ${PREFIX}/lib/oss/etc + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/version.dat ${PREFIX}/lib/oss + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/sysfiles.list ${PREFIX}/lib/oss + ${MKDIR} ${PREFIX}/lib/oss/modules + ${INSTALL_DATA} ${WRKSRC}/prototype/usr/lib/oss/modules/* ${PREFIX}/lib/oss/modules + ${INSTALL_MAN} ${WRKSRC}/prototype/usr/man/man8/* ${PREFIX}/man/man8/ + ${INSTALL_MAN} ${WRKSRC}/prototype/usr/man/man1/* ${PREFIX}/man/man1/ + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 600000 || ${OSVERSION} > 700000 +BROKEN= Does not compile on 5.x and 7.x +.endif + +.include <bsd.port.post.mk> |