Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2003 11:00:12 -0800 (PST)
From:      Ulrich Spoerlein <q@uni.de>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/33082: audio/mxv fails to compile
Message-ID:  <200301131900.h0DJ0CbI049108@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/33082; it has been noted by GNATS.

From: Ulrich Spoerlein <q@uni.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc: devin@spamcop.net
Subject: Re: ports/33082: audio/mxv fails to compile
Date: Mon, 13 Jan 2003 19:59:19 +0100

 --=.O2nLld9wf68jWF
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Here is an update to the current version, which is still broken because
 builtin.h and String.h are missing from newer (2.9+ ??) g++ versions.
 
 I doubt this can be easily fixed, but this patch makes the distfile
 fetchable again, so perhaps you should commit this nevertheless...
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/audio/mxv/Makefile,v
 retrieving revision 1.15
 diff -u -r1.15 Makefile
 --- Makefile	10 Nov 2002 16:45:06 -0000	1.15
 +++ Makefile	13 Jan 2003 18:46:53 -0000
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	mxv
 -PORTVERSION=	1.20
 +PORTVERSION=	1.24
  CATEGORIES=	audio
  MASTER_SITES=	ftp://ftp.create.ucsb.edu/pub/MixViews/source/
  DISTNAME=	${PORTNAME}-v${PORTVERSION}-source
 @@ -15,7 +15,8 @@
  
  BROKEN=		"Does not build"
  
 -BUILD_DEPENDS=	${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf:${PORTSDIR}/x11-toolkits/iv
 +BUILD_DEPENDS=	${LOCALBASE}/interviews/bin/FREEBSD/ivmkmf:${PORTSDIR}/x11-toolkits/iv \
 +		${LOCALBASE}/include/f2c.h:${PORTSDIR}/lang/f2c
  
  NO_WRKSUBDIR=	yes
  USE_IMAKE=	yes
 Index: distinfo
 ===================================================================
 RCS file: /home/ncvs/ports/audio/mxv/distinfo,v
 retrieving revision 1.2
 diff -u -r1.2 distinfo
 --- distinfo	14 Feb 2000 21:02:59 -0000	1.2
 +++ distinfo	13 Jan 2003 18:46:53 -0000
 @@ -1 +1 @@
 -MD5 (mxv-v1.20-source.tar.gz) = 742a7d49d5754853ab9dcacfae91c633
 +MD5 (mxv-v1.24-source.tar.gz) = a58fbcea3b3804cd66f67eaf913ce76c
 Index: files/patch-ai
 ===================================================================
 RCS file: /home/ncvs/ports/audio/mxv/files/patch-ai,v
 retrieving revision 1.2
 diff -u -r1.2 patch-ai
 --- files/patch-ai	14 Feb 2000 21:03:03 -0000	1.2
 +++ files/patch-ai	13 Jan 2003 18:46:53 -0000
 @@ -1,40 +1,14 @@
 -*** old/vw_converter.C	Thu Jan 30 00:22:41 1997
 ---- vw_converter.C	Mon Jul 12 15:28:20 1999
 -***************
 -*** 27,33 ****
 ---- 27,37 ----
 -  #pragma implementation
 -  #endif
 -  
 -+ #ifdef __FreeBSD__
 -+ #include <machine/soundcard.h>
 -+ #else
 -  #include <sys/soundcard.h>
 -+ #endif
 -  #include "localdefs.h"
 -  #include "application.h"
 -  #include "vw_converter.h"
 -***************
 -*** 114,122 ****
 -  		fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
 -  #endif
 -  
 -  		if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
 -  			error("Unable to set fragment size.");
 -! 		else if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
 -  			error("Unable to set sample format.");
 -  		else if(confirmedFormat != sampleFormat)
 -  			error("This sample format not supported by hardware.");
 ---- 118,129 ----
 -  		fprintf(stderr, "setting frag size code to 0x%x\n", sizeCode);
 -  #endif
 -  
 -+ #ifndef __FreeBSD__
 -  		if (!ioctl (SNDCTL_DSP_SETFRAGMENT, (char *) &sizeCode))
 -  			error("Unable to set fragment size.");
 -! 		else 
 -! #endif
 -! 		if (!ioctl(SNDCTL_DSP_SETFMT, (char *) &confirmedFormat))
 -  			error("Unable to set sample format.");
 -  		else if(confirmedFormat != sampleFormat)
 -  			error("This sample format not supported by hardware.");
 +--- vw_converter.C.orig	Sun Feb 18 04:29:16 2001
 ++++ vw_converter.C	Mon Jan 13 16:09:13 2003
 +@@ -36,7 +36,11 @@
 + #ifdef DEBUG_MIXER
 + #include <string.h>
 + #endif
 ++#ifdef __FreeBSD__
 ++#include <machine/soundcard.h>
 ++#else
 + #include <sys/soundcard.h>
 ++#endif
 + #include <String.h>
 + #include "localdefs.h"
 + #include "application.h"
 
 --=.O2nLld9wf68jWF
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+IwyLmArGtfDbn0QRAnLbAJ9UG4fTt8ZXE+u+SC0hS9HVF1jmZgCg8I2f
 TDPpS/SCYBpAdoMST+ryyBI=
 =UFnY
 -----END PGP SIGNATURE-----
 
 --=.O2nLld9wf68jWF--

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?200301131900.h0DJ0CbI049108>