Import of wmmixer-1.0-beta1

This is an audio mixer that can run within the Window Maker
"Dock" or Aftersteps Wharf.

ok naddy@
This commit is contained in:
wilfried 2001-02-06 11:54:54 +00:00
parent f4429914ec
commit 68c4325c57
8 changed files with 102 additions and 0 deletions

32
audio/wmmixer/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/06 11:54:54 wilfried Exp $
PKGNAME= wmmixer-1.0b1
DISTNAME= wmmixer-1.0-beta1
EXTRACT_SUFX= .tgz
CATEGORIES= audio x11 x11/windowmaker
NEED_VERSION= 1.340
HOMEPAGE= http://www.geocities.com/SiliconValley/Vista/2471/wmmixer.html
MASTER_SITES= http://www.geocities.com/SiliconValley/Vista/2471/files/
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= imake
USE_X11= Yes
WRKDIST= ${WRKDIR}/wmmixer
SAMPLE_DIR= ${PREFIX}/share/examples/wmmixer
SUBST_VARS+= SAMPLE_DIR
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/wmmixer ${PREFIX}/bin
${INSTALL_DATA_DIR} ${SAMPLE_DIR}
${INSTALL_DATA} ${WRKSRC}/home.wmmixer ${SAMPLE_DIR}/dot.wmmixer.sample
.include <bsd.port.mk>

3
audio/wmmixer/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (wmmixer-1.0-beta1.tgz) = 8200c0cb94e3e6a0f4768fc23d2391ac
RMD160 (wmmixer-1.0-beta1.tgz) = 5edea21f2154ebce018b7c34d9f05892acab16d4
SHA1 (wmmixer-1.0-beta1.tgz) = b8695455e1a7364aa337feb924f059db9a5856fe

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-Imakefile,v 1.1.1.1 2001/02/06 11:54:55 wilfried Exp $
--- Imakefile.orig Sat Sep 5 17:11:33 1998
+++ Imakefile Mon Feb 5 19:08:41 2001
@@ -1,5 +1,7 @@
#ifdef NetBSDArchitecture
OSSAUDIO = -lossaudio
+#elif defined OpenBSDArchitecture
+OSSAUDIO = -lossaudio
#else
OSSAUDIO =
#endif
@@ -10,4 +12,4 @@ LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) $(OS
SRCS = wmmixer.cc
OBJS = wmmixer.o
-ComplexProgramTarget(wmmixer)
+ComplexProgramTargetNoMan(wmmixer)

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-mixctl_h,v 1.1.1.1 2001/02/06 11:54:55 wilfried Exp $
--- mixctl.h.orig Sat Sep 5 17:11:33 1998
+++ mixctl.h Mon Feb 5 19:08:10 2001
@@ -21,6 +21,9 @@
#ifdef __FreeBSD__
#include <machine/soundcard.h>
#endif
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#endif
#ifdef __linux__
#include <linux/soundcard.h>
#endif

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-wmmixer_cc,v 1.1.1.1 2001/02/06 11:54:55 wilfried Exp $
--- wmmixer.cc.orig Sat Sep 5 17:11:33 1998
+++ wmmixer.cc Mon Feb 5 19:29:21 2001
@@ -110,8 +110,8 @@ int rpttimer=0;
bool dragging=false;
int channels=0;
-int channel[20];
-int icon[20]={0, 7, 8, 2, 1, 6, 4, 5, 3, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9};
+int channel[25];
+int icon[25]={0, 7, 8, 2, 1, 6, 4, 5, 3, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9};
MixCtl *mixctl;
@@ -191,8 +191,8 @@ int main(int argc, char **argv)
fprintf(stderr,"%s : Unable to open mixer device '%s'.\n", NAME, mixdev);
else{
for(int i=0;i<mixctl->getNrDevices();i++){
- if(i==20){
- fprintf(stderr,"%s : Sorry, can only use channels 0-19\n", NAME);
+ if(i==25){
+ fprintf(stderr,"%s : Sorry, can only use channels 0-24\n", NAME);
break;
}
if(mixctl->getSupport(i)){

View File

@ -0,0 +1 @@
wm-dockapp; audio mixer

7
audio/wmmixer/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
This is an audio mixer that can run within the Window Maker
"Dock" or Aftersteps Wharf.
You can configure wmmixer by using a ~/.wmmixer file,
copy a sample from ${SAMPLE_DIR}.
WWW: ${HOMEPAGE}

4
audio/wmmixer/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/06 11:54:55 wilfried Exp $
bin/wmmixer
share/examples/wmmixer/dot.wmmixer.sample
@dirrm share/examples/wmmixer