pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio add audio/ossmix
details: https://anonhg.NetBSD.org/pkgsrc/rev/5e8f242b03f1
branches: trunk
changeset: 452360:5e8f242b03f1
user: nia <nia%pkgsrc.org@localhost>
date: Sun May 09 08:02:03 2021 +0000
description:
add audio/ossmix
Command line mixer application from the Open Sound System.
Compatible with: NetBSD 10, Solaris 11, FreeBSD.
NOTE: On NetBSD, use mixerctl(1) (included in base) instead.
This package primarily exists for testing OSSv4 compatibility.
diffstat:
audio/Makefile | 3 +-
audio/ossmix/DESCR | 6 +++++
audio/ossmix/Makefile | 50 +++++++++++++++++++++++++++++++++++++++++++++
audio/ossmix/PLIST | 5 ++++
audio/ossmix/distinfo | 6 +++++
audio/ossmix/files/Makefile | 14 ++++++++++++
6 files changed, 83 insertions(+), 1 deletions(-)
diffs (118 lines):
diff -r 01d895c99962 -r 5e8f242b03f1 audio/Makefile
--- a/audio/Makefile Sun May 09 07:55:03 2021 +0000
+++ b/audio/Makefile Sun May 09 08:02:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.628 2021/05/09 07:54:42 nia Exp $
+# $NetBSD: Makefile,v 1.629 2021/05/09 08:02:03 nia Exp $
#
COMMENT= Audio tools, players, and libraries
@@ -352,6 +352,7 @@
SUBDIR+= opencore-amr
SUBDIR+= opus-tools
SUBDIR+= opusfile
+SUBDIR+= ossmix
SUBDIR+= ossxmix
SUBDIR+= p5-Audio-CD
SUBDIR+= p5-Audio-Scan
diff -r 01d895c99962 -r 5e8f242b03f1 audio/ossmix/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossmix/DESCR Sun May 09 08:02:03 2021 +0000
@@ -0,0 +1,6 @@
+Command line mixer application from the Open Sound System.
+
+Compatible with: NetBSD 10, Solaris 11, FreeBSD.
+
+NOTE: On NetBSD, use mixerctl(1) (included in base) instead.
+This package primarily exists for testing OSSv4 compatibility.
diff -r 01d895c99962 -r 5e8f242b03f1 audio/ossmix/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossmix/Makefile Sun May 09 08:02:03 2021 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2021/05/09 08:02:03 nia Exp $
+
+DISTNAME= oss-v4.2-build2019-src-bsd
+PKGNAME= ossmix-${DISTNAME:S/oss-v//1:S/-src-bsd//1:S/-/./g}
+CATEGORIES= audio
+MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= http://www.opensound.com/
+COMMENT= Command line mixer from OSSv4
+LICENSE= 2-clause-bsd
+
+BUILD_DIRS= cmd/${PKGBASE}
+
+# NOTE: Linux support will require an OSSv4 package integrated into
+# oss.buildlink3.mk
+ONLY_FOR_PLATFORM+= FreeBSD-*-*
+ONLY_FOR_PLATFORM+= NetBSD-*-*
+ONLY_FOR_PLATFORM+= SunOS-*-*
+
+.include "../../mk/oss.buildlink3.mk"
+
+LDFLAGS+= ${LIBOSSAUDIO}
+
+.if ${OPSYS} == "NetBSD" && \
+ (!empty(OS_VERSION:M[5-9].*) && empty(OS_VERSION:M9.99.*))
+PKG_SKIP_REASON+= "Requires OSSv4 support"
+.endif
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= cmd/${PKGBASE}/${PKGBASE}.man
+SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+
+pre-build:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE} \
+ ${DESTDIR}${PREFIX}/bin/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/COPYING
+ ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/${PKGBASE}.man \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/${PKGBASE}.man
+
+.include "../../mk/bsd.pkg.mk"
diff -r 01d895c99962 -r 5e8f242b03f1 audio/ossmix/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossmix/PLIST Sun May 09 08:02:03 2021 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/09 08:02:03 nia Exp $
+bin/ossmix
+share/doc/ossmix/COPYING
+share/doc/ossmix/ossmix.man
+@pkgdir share/applications
diff -r 01d895c99962 -r 5e8f242b03f1 audio/ossmix/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossmix/distinfo Sun May 09 08:02:03 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/09 08:02:03 nia Exp $
+
+SHA1 (oss-v4.2-build2019-src-bsd.tar.bz2) = f6e03cbb5b5010aa48dd6d963b7e68c991c7d7dc
+RMD160 (oss-v4.2-build2019-src-bsd.tar.bz2) = be04756160843acdaacbb610d5e8ebd9f7acf572
+SHA512 (oss-v4.2-build2019-src-bsd.tar.bz2) = 9d43fa3e3abe4cf006cabfedf2c9fc51372f8cbe499c2e4bee6ba489291c31eb93b66b312054bcf92fc26df329bc3c7ef14a633fece8af38256bc7198d0c1556
+Size (oss-v4.2-build2019-src-bsd.tar.bz2) = 1723557 bytes
diff -r 01d895c99962 -r 5e8f242b03f1 audio/ossmix/files/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossmix/files/Makefile Sun May 09 08:02:03 2021 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2021/05/09 08:02:03 nia Exp $
+
+CFLAGS+= -DLOCAL_BUILD
+
+OBJS= ossmix.o
+PROG= ossmix
+
+all: ${PROG}
+
+.c.o:
+ ${CC} ${CFLAGS} -c ${.IMPSRC}
+
+${PROG}: ${OBJS}
+ ${CC} ${LDFLAGS} -o ${PROG} ${OBJS}
Home |
Main Index |
Thread Index |
Old Index