summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-05-09 07:54:42 +0000
committernia <nia@pkgsrc.org>2021-05-09 07:54:42 +0000
commitb868e3d035e9c353647e9ce56700dad658ebbd68 (patch)
tree550f43518864cacf335789687e920eff890fd781 /audio
parent03ec7c856d428bf7bc2201f412522fe5af01e89f (diff)
downloadpkgsrc-b868e3d035e9c353647e9ce56700dad658ebbd68.tar.gz
add audio/ossxmix
Graphical (GTK+) mixer application from the Open Sound System. Compatible with: NetBSD 10, Solaris 11, FreeBSD.
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile3
-rw-r--r--audio/ossxmix/DESCR3
-rw-r--r--audio/ossxmix/Makefile57
-rw-r--r--audio/ossxmix/PLIST5
-rw-r--r--audio/ossxmix/files/Makefile17
-rw-r--r--audio/ossxmix/files/ossxmix.desktop10
6 files changed, 94 insertions, 1 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 95d7cb88da2..13979307d5e 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.627 2021/05/06 20:41:22 wiz Exp $
+# $NetBSD: Makefile,v 1.628 2021/05/09 07:54:42 nia Exp $
#
COMMENT= Audio tools, players, and libraries
@@ -352,6 +352,7 @@ SUBDIR+= openal-soft
SUBDIR+= opencore-amr
SUBDIR+= opus-tools
SUBDIR+= opusfile
+SUBDIR+= ossxmix
SUBDIR+= p5-Audio-CD
SUBDIR+= p5-Audio-Scan
SUBDIR+= p5-Audio-Wav
diff --git a/audio/ossxmix/DESCR b/audio/ossxmix/DESCR
new file mode 100644
index 00000000000..2aec93718a1
--- /dev/null
+++ b/audio/ossxmix/DESCR
@@ -0,0 +1,3 @@
+Graphical (GTK+) mixer application from the Open Sound System.
+
+Compatible with: NetBSD 10, Solaris 11, FreeBSD.
diff --git a/audio/ossxmix/Makefile b/audio/ossxmix/Makefile
new file mode 100644
index 00000000000..53b930ab4ce
--- /dev/null
+++ b/audio/ossxmix/Makefile
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1 2021/05/09 07:54:42 nia Exp $
+
+DISTNAME= oss-v4.2-build2019-src-bsd
+PKGNAME= ossxmix-${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
+HOMEPAGE= http://www.opensound.com/
+COMMENT= Audio mixer GUI from OSSv4
+LICENSE= 2-clause-bsd
+
+USE_TOOLS+= pkg-config
+
+BUILD_DIRS= cmd/ossxmix
+
+# 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}/ossxmix.man
+SUBST_SED.paths= -e 's,/usr/bin,${PREFIX}/bin,g'
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+
+pre-build:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/cmd/${PKGBASE}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/cmd/${PKGBASE}/ossxmix \
+ ${DESTDIR}${PREFIX}/bin/ossxmix
+ ${INSTALL_DATA} ${FILESDIR}/ossxmix.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/COPYING \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/cmd/${PKGBASE}/ossxmix.man \
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../sysutils/desktop-file-utils/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/ossxmix/PLIST b/audio/ossxmix/PLIST
new file mode 100644
index 00000000000..aaf90e22a88
--- /dev/null
+++ b/audio/ossxmix/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/09 07:54:42 nia Exp $
+bin/ossxmix
+share/applications/ossxmix.desktop
+share/doc/ossxmix/COPYING
+share/doc/ossxmix/ossxmix.man
diff --git a/audio/ossxmix/files/Makefile b/audio/ossxmix/files/Makefile
new file mode 100644
index 00000000000..473a9125441
--- /dev/null
+++ b/audio/ossxmix/files/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2021/05/09 07:54:42 nia Exp $
+
+GTK_CFLAGS!= pkg-config --cflags gtk+-2.0
+GTK_LIBS!= pkg-config --libs gtk+-2.0
+
+CFLAGS+= ${GTK_CFLAGS}
+LDFLAGS+= ${GTK_LIBS}
+
+OBJS= gtkvu.o ossxmix.o
+
+all: ossxmix
+
+.c.o:
+ ${CC} ${CFLAGS} -c ${.IMPSRC}
+
+ossxmix: ${OBJS}
+ ${CC} ${LDFLAGS} -o ossxmix ${OBJS}
diff --git a/audio/ossxmix/files/ossxmix.desktop b/audio/ossxmix/files/ossxmix.desktop
new file mode 100644
index 00000000000..d1ace5cd5ef
--- /dev/null
+++ b/audio/ossxmix/files/ossxmix.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=ossxmix
+GenericName=Mixer
+Comment=Graphical mixer application from OSSv4
+Icon=audio-card
+Exec=ossxmix
+Terminal=false
+Categories=AudioVideo;Audio;