pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio add audio/ossxmix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c586743c376
branches:  trunk
changeset: 452358:1c586743c376
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun May 09 07:54:42 2021 +0000

description:
add audio/ossxmix

Graphical (GTK+) mixer application from the Open Sound System.

Compatible with: NetBSD 10, Solaris 11, FreeBSD.

diffstat:

 audio/Makefile                      |   3 +-
 audio/ossxmix/DESCR                 |   3 +
 audio/ossxmix/Makefile              |  57 +++++++++++++++++++++++++++++++++++++
 audio/ossxmix/PLIST                 |   5 +++
 audio/ossxmix/files/Makefile        |  17 +++++++++++
 audio/ossxmix/files/ossxmix.desktop |  10 ++++++
 6 files changed, 94 insertions(+), 1 deletions(-)

diffs (129 lines):

diff -r d02987c59ee1 -r 1c586743c376 audio/Makefile
--- a/audio/Makefile    Sun May 09 07:50:00 2021 +0000
+++ b/audio/Makefile    Sun May 09 07:54:42 2021 +0000
@@ -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+=       opencore-amr
 SUBDIR+=       opus-tools
 SUBDIR+=       opusfile
+SUBDIR+=       ossxmix
 SUBDIR+=       p5-Audio-CD
 SUBDIR+=       p5-Audio-Scan
 SUBDIR+=       p5-Audio-Wav
diff -r d02987c59ee1 -r 1c586743c376 audio/ossxmix/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossxmix/DESCR       Sun May 09 07:54:42 2021 +0000
@@ -0,0 +1,3 @@
+Graphical (GTK+) mixer application from the Open Sound System.
+
+Compatible with: NetBSD 10, Solaris 11, FreeBSD.
diff -r d02987c59ee1 -r 1c586743c376 audio/ossxmix/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossxmix/Makefile    Sun May 09 07:54:42 2021 +0000
@@ -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@localhost
+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 -r d02987c59ee1 -r 1c586743c376 audio/ossxmix/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossxmix/PLIST       Sun May 09 07:54:42 2021 +0000
@@ -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 -r d02987c59ee1 -r 1c586743c376 audio/ossxmix/files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossxmix/files/Makefile      Sun May 09 07:54:42 2021 +0000
@@ -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 -r d02987c59ee1 -r 1c586743c376 audio/ossxmix/files/ossxmix.desktop
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ossxmix/files/ossxmix.desktop       Sun May 09 07:54:42 2021 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index