Date: Tue, 13 Jul 1999 14:05:01 +0200 (MET DST) From: Jason Brazile <jason@netcetera.ch> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12624: New version of audio/mxv wich also works with pcm driver Message-ID: <199907131205.OAA14773@house.netcetera.ch>
next in thread | raw e-mail | index | archive | help
>Number: 12624 >Category: ports >Synopsis: New version of mxv which also works with pcm driver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jul 13 05:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Jason Brazile >Release: FreeBSD 3.2-RELEASE i386 >Organization: Netcetera AG >Environment: This is the shar file of the pkg directory in the format as mentioned on the web page for submitting new packages. >Description: There is already an mxv package for version 1.10. This is mostly derived from that. Other than upgrading to a newer version (v1.20), the main change I made was to remove an unneeded call to a sound initialization routine that caused problems for the sounds cards that I have using Luigi's pcm driver. >How-To-Repeat: Obvious, hopefully. >Fix: N/A --------------------------------------------------------------------------- Jason Brazile, Netcetera AG, CH-8040 Zuerich jason.brazile@netcetera.ch Phone: +41 (1) 247 70 70 Fax: +41 (1) 247 70 75 http://www.netcetera.ch ============================================================================ # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mxv120/ # mxv120/files # mxv120/files/md5 # mxv120/patches # mxv120/patches/patch-ab # mxv120/patches/patch-ac # mxv120/patches/patch-ad # mxv120/patches/patch-ae # mxv120/patches/patch-af # mxv120/patches/patch-ag # mxv120/patches/patch-ah # mxv120/patches/patch-ai # mxv120/patches/patch-aa # mxv120/pkg # mxv120/pkg/COMMENT # mxv120/pkg/DESCR # mxv120/pkg/PLIST # mxv120/Makefile # mxv120/README.html # echo c - mxv120/ mkdir -p mxv120/ > /dev/null 2>&1 echo c - mxv120/files mkdir -p mxv120/files > /dev/null 2>&1 echo x - mxv120/files/md5 sed 's/^X//' >mxv120/files/md5 << 'END-of-mxv120/files/md5' XMD5 (mxv-v1.20-source.tar.gz) = 742a7d49d5754853ab9dcacfae91c633 END-of-mxv120/files/md5 echo c - mxv120/patches mkdir -p mxv120/patches > /dev/null 2>&1 echo x - mxv120/patches/patch-ab sed 's/^X//' >mxv120/patches/patch-ab << 'END-of-mxv120/patches/patch-ab' X*** /dev/null Mon Jul 12 15:25:18 1999 X--- MiXViews.res Mon Jul 12 14:54:19 1999 X*************** X*** 0 **** X--- 1,32 ---- X+ ! This file must be renamed "MiXViews", and installed either in your home X+ ! directory (if you are the only one using mxv) or in the X res dir X+ ! (/usr/lib/X11/app-defaults) or in the InterViews res dir X+ ! (<installed InterViews dir>/lib/app-defaults). X+ X+ MiXViews*font: -*-times-medium-r-normal--14-* X+ MiXViews*PulldownCommandMenu*background: light blue X+ MiXViews*Command*background: lightskyblue2 X+ MiXViews*PullrightCommandMenu*background: lightskyblue X+ MiXViews*MenuBar*font: -*-helvetica-bold-r-normal--17-* X+ MiXViews*MenuItem*font: -*-helvetica-medium-r-normal--14-* X+ MiXViews*PullrightMenu*font: -*-helvetica-medium-r-normal--14-* X+ MiXViews*DialogBox*Title*font: -*-helvetica-bold-r-normal--14-* X+ MiXViews*DialogBox*Subtitle*font: -*-helvetica-medium-r-normal--12-* X+ MiXViews*Alert*Title*foreground: Red X+ MiXViews*InputDialog*FileSelector*font: -*-times-medium-r-normal--14-* X+ MiXViews*PushButton*font: -*-helvetica-medium-r-normal--14-* X+ MiXViews*HorizontalScale*font: -*-helvetica-medium-r-normal--8-* X+ MiXViews*VerticalScale*font: -*-helvetica-medium-r-normal--8-* X+ MiXViews*StatusBar*font: -*-helvetica-medium-r-normal--12-* X+ MiXViews*FrameGraph*font: -*-helvetica-medium-r-normal--8-* X+ MiXViews*HorizontalScaleLabel*foreground: White X+ MiXViews*HorizontalScaleLabel*background: Black X+ MiXViews*VerticalScaleLabel*foreground: White X+ MiXViews*VerticalScaleLabel*background: Black X+ MiXViews*LPCWindowDisplayChannels: 4 X+ MiXViews*FFTWindowDisplayChannels: 4 X+ MiXViews*FFTWindow*PlotStyle: Line X+ MiXViews*PvocWindowDisplayChannels: 4 X+ MiXViews*PvocWindow*VerticalScaleLabel*font: -*-helvetica-medium-r-normal--10-* X+ MiXViews*malloc_debug: off X+ END-of-mxv120/patches/patch-ab echo x - mxv120/patches/patch-ac sed 's/^X//' >mxv120/patches/patch-ac << 'END-of-mxv120/patches/patch-ac' X*** old/application.C Mon Apr 27 05:41:31 1998 X--- application.C Mon Jul 12 15:28:20 1999 X*************** X*** 41,46 **** X--- 41,47 ---- X #include <iostream.h> X #include "localdefs.h" X X+ #if !defined(__FreeBSD__) X #ifdef NeXT X extern "C" { X char *strerror(int); X*************** X*** 60,65 **** X--- 61,67 ---- X return(sys_errlist[errn]); X } X #endif /* NeXT */ X+ #endif /* FreeBSD */ X X class GlobalResourceList { X friend Application; END-of-mxv120/patches/patch-ac echo x - mxv120/patches/patch-ad sed 's/^X//' >mxv120/patches/patch-ad << 'END-of-mxv120/patches/patch-ad' X*** old/device.h Fri Mar 13 02:01:36 1998 X--- device.h Mon Jul 12 15:28:20 1999 X*************** X*** 33,39 **** X #include "InterViews/resource.h" X #include "localdefs.h" X X! #if !defined(sgi) && !defined(sun) X extern "C" int ioctl(int, unsigned long, char*); X #endif X X--- 33,39 ---- X #include "InterViews/resource.h" X #include "localdefs.h" X X! #if !defined(sgi) && !defined(sun) && !defined(__FreeBSD__) X extern "C" int ioctl(int, unsigned long, char*); X #endif X END-of-mxv120/patches/patch-ad echo x - mxv120/patches/patch-ae sed 's/^X//' >mxv120/patches/patch-ae << 'END-of-mxv120/patches/patch-ae' X*** old/dialogbox.C Mon Jul 12 15:43:28 1999 X--- dialogbox.C Mon Jul 12 15:43:56 1999 X*************** X*** 45,51 **** X #include "textinput.h" X X boolean DialogBox::override_WindowManager = false; X! int DialogBox::beep_Level = 50; X X DialogBox::DialogBox(ButtonState* s, Interactor* u, Response r) X : Dialog(s, nil), defaultResponse(r), underlying(u), useBell(false) { X--- 45,51 ---- X #include "textinput.h" X X boolean DialogBox::override_WindowManager = false; X! int DialogBox::beep_Level = 0; X X DialogBox::DialogBox(ButtonState* s, Interactor* u, Response r) X : Dialog(s, nil), defaultResponse(r), underlying(u), useBell(false) { END-of-mxv120/patches/patch-ae echo x - mxv120/patches/patch-af sed 's/^X//' >mxv120/patches/patch-af << 'END-of-mxv120/patches/patch-af' X*** old/diskfile.C Fri Apr 26 16:24:01 1996 X--- diskfile.C Mon Jul 12 15:28:20 1999 X*************** X*** 50,56 **** X #if defined(linux) X extern "C" void setbuffer(FILE*, char*, int); X #else X! #if !defined( sgi ) && !defined( sun ) X extern "C" int setbuffer(FILE*, char*, int); X #endif X #endif X--- 50,56 ---- X #if defined(linux) X extern "C" void setbuffer(FILE*, char*, int); X #else X! #if !defined( sgi ) && !defined( sun ) && !defined( __FreeBSD__ ) X extern "C" int setbuffer(FILE*, char*, int); X #endif X #endif X*************** X*** 193,198 **** X--- 193,203 ---- X rw &= ~01; X if (fp->_flags & _IO_NO_WRITES) X rw &= ~02; X+ #elif defined(__FreeBSD__) X+ if (fp->_flags & (__SRD|__SRW)) X+ rw |= 01; X+ if (fp->_flags & (__SWR|__SRW|__SAPP)) X+ rw |= 02; X #else X if (fp->_flag & (_IOREAD|_IORW)) X rw |= 01; END-of-mxv120/patches/patch-af echo x - mxv120/patches/patch-ag sed 's/^X//' >mxv120/patches/patch-ag << 'END-of-mxv120/patches/patch-ag' X*** old/settergetter.h Wed Jan 17 03:57:37 1996 X--- settergetter.h Mon Jul 12 15:28:20 1999 X*************** X*** 64,69 **** X--- 64,70 ---- X Status (Object::*setfunc)(Type), X Type (Object::*getfunc)() const) X : obj(objptr), setter(setfunc), getter(getfunc) {} X+ ~MethodSetterGetter() {} X redefined boolean set(Type value) { X return boolean((obj->*setter)(value)); X } X*************** X*** 89,94 **** X--- 90,96 ---- X public: X FunctionSetterGetter(Status (*setfunc)(Type), Type (*getfunc)()) X : setter(setfunc), getter(getfunc) {} X+ ~FunctionSetterGetter() {} X redefined boolean set(Type value) { (*setter)(value); return true; } X redefined Type get() const { return (*getter)(); } X private: END-of-mxv120/patches/patch-ag echo x - mxv120/patches/patch-ah sed 's/^X//' >mxv120/patches/patch-ah << 'END-of-mxv120/patches/patch-ah' X*** old/smartmem.C Thu May 25 00:39:35 1995 X--- smartmem.C Mon Jul 12 15:28:20 1999 X*************** X*** 64,70 **** X--- 64,74 ---- X void X SmartMemory::free(void* ptr, unsigned size) { X if(ptr) { X+ #ifdef __FreeBSD__ X+ ::free(ptr); X+ #else X ::cfree(ptr); X+ #endif X totalBytes_Allocated -= size; X } X } END-of-mxv120/patches/patch-ah echo x - mxv120/patches/patch-ai sed 's/^X//' >mxv120/patches/patch-ai << 'END-of-mxv120/patches/patch-ai' X*** old/vw_converter.C Thu Jan 30 00:22:41 1997 X--- vw_converter.C Mon Jul 12 15:28:20 1999 X*************** X*** 27,33 **** X--- 27,37 ---- X #pragma implementation X #endif X X+ #ifdef __FreeBSD__ X+ #include <machine/soundcard.h> X+ #else X #include <sys/soundcard.h> X+ #endif X #include "localdefs.h" X #include "application.h" X #include "vw_converter.h" X*************** X*** 114,122 **** X fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode); X #endif X X if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode)) X error("Unable to set fragment size."); X! else if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat)) X error("Unable to set sample format."); X else if(confirmedFormat != sampleFormat) X error("This sample format not supported by hardware."); X--- 118,129 ---- X fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode); X #endif X X+ #ifndef __FreeBSD__ X if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode)) X error("Unable to set fragment size."); X! else X! #endif X! if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat)) X error("Unable to set sample format."); X else if(confirmedFormat != sampleFormat) X error("This sample format not supported by hardware."); END-of-mxv120/patches/patch-ai echo x - mxv120/patches/patch-aa sed 's/^X//' >mxv120/patches/patch-aa << 'END-of-mxv120/patches/patch-aa' X*** old/Imakefile Thu Apr 9 19:57:34 1998 X--- Imakefile Mon Jul 12 15:28:20 1999 X*************** X*** 132,137 **** X--- 132,154 ---- X ARCH_OBJS = utils.o X #endif X X+ X+ #if defined(FreeBSDArchitecture) X+ XCOMM Extra defines, include directories, loading flags, and libraries needed X+ XCOMM for the FreeBSD version. The assumption is that you are using Gnu gcc/g++ X+ X+ ARCH_CCDEFINES = -DVOXWARE_DACS -DXDisplay=_XDisplay X+ ARCH_CCFLAGS = X+ ARCH_CCINCLUDES = X+ ARCH_CCLDFLAGS = -L/usr/local/lib X+ ARCH_CCLDLIBS = $(APP_FORTLIBS) -lm X+ DEBUG_CCFLAGS = -Ddebug X+ X+ DAC_OBJS = conv_config.o conv_device.o vw_converter.o X+ ARCH_OBJS = utils.o X+ #endif X+ X+ X #if defined(i386SVR4Architecture) X XCOMM This assumes you have the SoundBlaster card on your machine X ARCH_CCDEFINES = -DSOUNDBLASTER X*************** X*** 243,248 **** X--- 260,270 ---- X MakeObjectFromSrcFlags(sgi_dac, $(OPTIMIZE_CCFLAGS)) X #endif X #if defined(LinuxArchitecture) X+ MakeObjectFromSrcFlags(utils, $(OPTIMIZE_CCFLAGS)) X+ MakeObjectFromSrcFlags(conv_device, $(OPTIMIZE_CCFLAGS)) X+ MakeObjectFromSrcFlags(vw_converter, $(OPTIMIZE_CCFLAGS)) X+ #endif X+ #if defined(FreeBSDArchitecture) X MakeObjectFromSrcFlags(utils, $(OPTIMIZE_CCFLAGS)) X MakeObjectFromSrcFlags(conv_device, $(OPTIMIZE_CCFLAGS)) X MakeObjectFromSrcFlags(vw_converter, $(OPTIMIZE_CCFLAGS)) END-of-mxv120/patches/patch-aa echo c - mxv120/pkg mkdir -p mxv120/pkg > /dev/null 2>&1 echo x - mxv120/pkg/COMMENT sed 's/^X//' >mxv120/pkg/COMMENT << 'END-of-mxv120/pkg/COMMENT' XSound file editor/player/recorder/converter for X Window System. END-of-mxv120/pkg/COMMENT echo x - mxv120/pkg/DESCR sed 's/^X//' >mxv120/pkg/DESCR << 'END-of-mxv120/pkg/DESCR' XThis is the MiXViews sound file editor/recorder/player that supports XFreeBSD's voxware sound drivers written by doug@ccmrc.ucsb.edu. XIt supports the following sound file formats: IRCAM, SND/AU, Hybrid (CMIX), XAIF-C, WAVE, and raw (headerless). X XVersion 1.20. END-of-mxv120/pkg/DESCR echo x - mxv120/pkg/PLIST sed 's/^X//' >mxv120/pkg/PLIST << 'END-of-mxv120/pkg/PLIST' Xbin/mxv Xlib/X11/app-defaults/MiXViews END-of-mxv120/pkg/PLIST echo x - mxv120/Makefile sed 's/^X//' >mxv120/Makefile << 'END-of-mxv120/Makefile' X# New ports collection makefile for: mxv X# Version required: 1.20 X# Date created: 12 July 1999 X# Whom: davidn@blaze.net.au X# X# $Id: Makefile,v 1.7 1999/02/11 12:53:46 flathill Exp $ X# X XDISTNAME= mxv-v1.20-source XPKGNAME= mxv-1.20 XCATEGORIES= audio XMASTER_SITES= ftp://ftp.create.ucsb.edu/pub/MixViews/source/ X XMAINTAINER= davidn@blaze.net.au X XBUILD_DEPENDS= ${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf:${PORTSDIR}/x11-toolkits/iv X XNO_WRKSUBDIR= yes XUSE_IMAKE= yes XMAKE_ENV= CPU=FREEBSD X#ivmkmf -a (with makedepend) not recommended by documentation XXMKMF= env ${MAKE_ENV} ${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf; \ X env ${MAKE_ENV} make Makefiles X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/FREEBSD/mxv ${PREFIX}/bin X ${INSTALL_DATA} ${WRKSRC}/MiXViews.res ${PREFIX}/lib/X11/app-defaults/MiXViews X X.include <bsd.port.mk> END-of-mxv120/Makefile echo x - mxv120/README.html sed 's/^X//' >mxv120/README.html << 'END-of-mxv120/README.html' X<html> X<title> The FreeBSD Ports Collection (audio/mxv)</title> X<head><h1> The FreeBSD Ports Collection ("audio/mxv")</h1> </head> <hr> X<body> X X<p>You are now in the directory for the port "audio/mxv" (package name "mxv-1.20"). X X<p>This is the one-line description for this port: X X<p><hr><p> XSound file editor/player/recorder/converter for X Window System. X<p><hr> X X<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a Xlonger description. X X<p>Go to the <a href="../../README.html">top of the ports tree</a> for Xa summary on how to use the ports collection. X X<p> XThis port requires package(s) "XFree86-3.3.3.1 iv-3.1" to build. X<p> XThis port requires package(s) "XFree86-3.3.3.1" to run. X X<p><hr><p> X<a href="../README.html"> Go up one level</a> X| X<a href="../../README.html"> Go to top of ports tree</a> X</body> X</html> END-of-mxv120/README.html exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907131205.OAA14773>