From nobody@FreeBSD.org  Sat Jul 14 19:27:59 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9C553106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 19:27:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 7C2828FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 19:27:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6EJRxBN057473
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2012 19:27:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q6EJRxkX057472;
	Sat, 14 Jul 2012 19:27:59 GMT
	(envelope-from nobody)
Message-Id: <201207141927.q6EJRxkX057472@red.freebsd.org>
Date: Sat, 14 Jul 2012 19:27:59 GMT
From: MIMIFIR Pierre Jacques <pierrejacques.mimifir@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Bristol Synthesiser Emulations
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169861
>Category:       ports
>Synopsis:       new port: audio/bristol, Bristol Synthesiser Emulations
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    madpilot
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 19:30:10 UTC 2012
>Closed-Date:    Mon Oct 01 21:52:54 UTC 2012
>Last-Modified:  Mon Oct  1 22:00:11 UTC 2012
>Originator:     MIMIFIR Pierre Jacques
>Release:        FreeBSD 9.0-RELEASE
>Organization:
>Environment:
reeBSD sakura 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Mon Jun 18 22:18:18 CEST 2012     pierre@sakura:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
New port: Bristol is an emulation package for a number of different 'classic' synthesisers including additive and subtractive and a few organs. The application consists of the engine, which is called bristol, and its own GUI library called brighton that represents all the emulations.

There are currently twenty something different emulations, each does sound different although the author maintains that the quality and accuracy of each emulation is subjective. One of the main reasons for putting together this site (host by Sourceforge which provides the rest of the services required by bristol) is to depict all the different emulations.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	bristol
#	bristol/files
#	bristol/files/patch-bristol-bristol.c
#	bristol/files/patch-libbristolaudio-audioGUIOSS.c
#	bristol/files/patch-libbristolaudio-audioEngine.c
#	bristol/Makefile
#	bristol/distinfo
#	bristol/pkg-descr
#	bristol/pkg-plist
#
echo c - bristol
mkdir -p bristol > /dev/null 2>&1
echo c - bristol/files
mkdir -p bristol/files > /dev/null 2>&1
echo x - bristol/files/patch-bristol-bristol.c
sed 's/^X//' >bristol/files/patch-bristol-bristol.c << 'f552364671fcd954c205c8e17c831ee1'
X--- ./bristol/bristol.org	2012-07-14 17:46:57.000000000 +0200
X+++ ./bristol/bristol.c	2012-07-14 17:47:11.000000000 +0200
X@@ -27,7 +27,7 @@
X #include <unistd.h>
X #include <pthread.h>
X #include <sys/types.h>
X-#include <wait.h>
X+#include <sys/wait.h>
X 
X #if defined(linux)
X #include <sched.h>
f552364671fcd954c205c8e17c831ee1
echo x - bristol/files/patch-libbristolaudio-audioGUIOSS.c
sed 's/^X//' >bristol/files/patch-libbristolaudio-audioGUIOSS.c << '8f8818de2cf83f0cbfb6948cb7739b5a'
X--- ./libbristolaudio/audioGUIOSS.c.org	2012-07-14 17:44:01.000000000 +0200
X+++ ./libbristolaudio/audioGUIOSS.c	2012-07-14 17:44:15.000000000 +0200
X@@ -50,7 +50,6 @@
X #include <unistd.h>
X #include <fcntl.h>
X #include <stdlib.h>
X-#include <malloc.h>
X 
X static int setAudioOSS(int, duplexDev *, int, int, int);
X 
8f8818de2cf83f0cbfb6948cb7739b5a
echo x - bristol/files/patch-libbristolaudio-audioEngine.c
sed 's/^X//' >bristol/files/patch-libbristolaudio-audioEngine.c << 'e1f2d8d9b603d1742e3e3c05cdea6213'
X--- ./libbristolaudio/audioEngine.c.org	2012-07-14 17:41:33.000000000 +0200
X+++ ./libbristolaudio/audioEngine.c	2012-07-14 17:42:00.000000000 +0200
X@@ -59,7 +59,7 @@ extern int alsaDevAudioStart(duplexDev *
X #include <fcntl.h>
X #ifdef SUBFRAGMENT
X #include <stdlib.h>
X-#include <malloc.h>
X+
X #endif
X 
X #include <sys/ioctl.h>
e1f2d8d9b603d1742e3e3c05cdea6213
echo x - bristol/Makefile
sed 's/^X//' >bristol/Makefile << '8bacfc529c7b0905dfb2b4cd5963a520'
X# New ports collection makefile for: bristol
X# Date created:		2012-07-14
X# Whom:			pjm <pierrejacqes.mimifir@gmail.com>
X# $FreeBSD$
X
XPORTNAME=	bristol
XPORTVERSION=	0.60.10
XCATEGORIES=	audio
XMASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/0.60
X
XMAINTAINER=	pierrejacques.mimifir@gmail.com
XCOMMENT=	Vintage synthesiers emulation for electric pianos and organs
X
XLICENSE=	GPLv2
X
XLIB_DEPENDS+=	jack.0:${PORTSDIR}/audio/jack
X
XRUNDEPENDS+=	fluidsynth.1:${PORTSDIR}/audio/fluidsynth\
X		jack.0:${PORTSDIR}/audio/jack
X
XOPTIONS=	QJACKCTL	"JACK Audio Connection Tookit - Qt GUI Interface" off\
X		QSYNTH		"Qt fluidsynth front-end application" off
X
XUSE_LDCONFIG=	yes
XGNU_CONFIGURE=	yes
XUSE_QT_VER=	4
XQT_COMPONENTS=	gui qmake_build moc_build uic_build rcc_build linguist_build
X
XCONFIGURE_ARGS+=--disable-alsa --enable-oss   --enable-jack-default-audio  --enable-jack-default-midi
X
XMAKE_JOBS_SAFE=	yes
X
XMAN=	bristol.1\
X	bristoljackstats.1
X
X.if defined(WITH_QSYNTH)
XRUNDEPENDS+=${LOCALBASE}/bin/qsynth:${PORTSDIR}/audio/qsynth
X.endif
X
X.if defined(WITH_QJACKCTL)
XRUNDEPENDS+=${LOCALBASE}/bin/qjackctl:${PORTSDIR}/audio/qjackctl
X.endif
X
X.include <bsd.port.mk>
8bacfc529c7b0905dfb2b4cd5963a520
echo x - bristol/distinfo
sed 's/^X//' >bristol/distinfo << '01c8161a2aec3e4d28476190971f707e'
XSHA256 (bristol-0.60.10.tar.gz) = a39cee4d7d59422b67a55620ae17f5b4aff162bf39077e70c5799bde7eb1191c
XSIZE (bristol-0.60.10.tar.gz) = 4206356
01c8161a2aec3e4d28476190971f707e
echo x - bristol/pkg-descr
sed 's/^X//' >bristol/pkg-descr << 'f6b8fbc34bd0bb6ce8e07ba2214afbe7'
XBristol is an emulation package for a number of different 'classic'i
Xsynthesisers including additive and subtractive and a few organs. 
XThe application consists of the engine, which is called bristol, 
Xand its own GUI library called brighton that represents all the emulations.
f6b8fbc34bd0bb6ce8e07ba2214afbe7
echo x - bristol/pkg-plist
sed 's/^X//' >bristol/pkg-plist << '90d75588892a1655c722c7cdec51d72d'
Xbin/startBristol
Xbin/bristoljackstats
Xbin/bristol
Xbin/brighton
Xlib/libbristolaudio.so.0
Xlib/libbristolaudio.so
Xlib/libbristolaudio.la
Xlib/libbristolaudio.a
Xlib/libbvg.so.0
Xlib/libbvg.so
Xlib/libbvg.la
Xlib/libbvg.a
Xlib/libbristolmidi.so.0
Xlib/libbristolmidi.so
Xlib/libbristolmidi.la
Xlib/libbristolmidi.a
Xlib/libbristolic.so.0
Xlib/libbristolic.so
Xlib/libbristolic.la
Xlib/libbristolic.a
Xlib/libbristol.so.0
Xlib/libbristol.so
Xlib/libbristol.la
Xlib/libbristol.a
Xlib/libbrighton.so.0
Xlib/libbrighton.so
Xlib/libbrighton.la
Xlib/libbrighton.a
Xlib/libC11.so.0
Xlib/libC11.so
Xlib/libC11.la
Xlib/libC11.a
Xlib/libB11.so.0
Xlib/libB11.so
Xlib/libB11.la
Xlib/libB11.a
90d75588892a1655c722c7cdec51d72d
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->madpilot 
Responsible-Changed-By: madpilot 
Responsible-Changed-When: Thu Sep 20 21:39:33 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169861 

From: Guido Falsi <madpilot@FreeBSD.org>
To: bug-followup@FreeBSD.org, pierrejacques.mimifir@gmail.com
Cc:  
Subject: Re: ports/169861: new port: audio/bristol, Bristol Synthesiser
 Emulations
Date: Tue, 25 Sep 2012 16:37:54 +0200

 --vGgW1X5XWziG23Ko
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi!
 
 Thanks for your submission to the ports collection.
 
 I have tested you port and made a few modifications. I'm attaching a
 revised shar. You should review them.
 
 Main points are:
 
 Added the website to pkg-descr
 
 Added MLINKS and PORTDATA, they are required to get a correct plist. the
 pkg-plist too neded some fixes.
 
 To better check the plist you shoud use make package, a tinderbox or the
 redports website.
 
 Removed ABI version numbers from LIB_DEPENDS
 
 Fixed the startup script, which had some linuxisms.
 
 I also modified your patches using ifdef/ifndef, in this way they can be
 submitted upstream for inclusion.
 
 I did remove the options. Options should really be this own port ones,
 not optional dependencies which are not required strictly by this port.
 
 It would be an anomaly if a jack client had a dependency on a jack
 control GUI application, even if it is optional. That GUI is not
 strictly required to run this software, and I'd expect people who use
 jack to know that, or, just like I did having never user jack, to learn
 how to properly operate it.
 
 One last point, the port fails with a big warning if one tries to run
 the configure target while it is already installed.
 
 This is a problem, since this is a needed step when updating the
 software using tools like portmaster or portupgrade and is quite common
 to perform the build of a port's new version before deinstalling the new
 one. The configure step fails witha  big warning about problems that
 could arise by building bristol while a previous version is installed. I
 worked around it with the configure flag "--disable-version-check".
 
 Is this acceptable? what big problems could this create?
 
 Please revise the modified port and see if you approve the changes.
 
 Thanks you.
 
 -- 
 Guido Falsi <madpilot@FreeBSD.org>
 
 --vGgW1X5XWziG23Ko
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="port.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	bristol=0A#	bristol=
 /distinfo=0A#	bristol/Makefile=0A#	bristol/pkg-plist=0A#	bristol/pkg-descr=
 =0A#	bristol/files=0A#	bristol/files/patch-bin_startBristol.in=0A#	bristol/=
 files/patch-bristol-bristol.c=0A#	bristol/files/patch-libbristolaudio-audio=
 GUIOSS.c=0A#	bristol/files/patch-libbristolaudio-audioEngine.c=0A#=0Aecho c=
  - bristol=0Amkdir -p bristol > /dev/null 2>&1=0Aecho x - bristol/distinfo=
 =0Ased 's/^X//' >bristol/distinfo << '01c8161a2aec3e4d28476190971f707e'=0AX=
 SHA256 (bristol-0.60.10.tar.gz) =3D a39cee4d7d59422b67a55620ae17f5b4aff162b=
 f39077e70c5799bde7eb1191c=0AXSIZE (bristol-0.60.10.tar.gz) =3D 4206356=0A01=
 c8161a2aec3e4d28476190971f707e=0Aecho x - bristol/Makefile=0Ased 's/^X//' >=
 bristol/Makefile << '8bacfc529c7b0905dfb2b4cd5963a520'=0AX# Created by: pjm=
  <pierrejacqes.mimifir@gmail.com>=0AX# $FreeBSD$=0AX=0AXPORTNAME=3D	bristol=
 =0AXPORTVERSION=3D	0.60.10=0AXCATEGORIES=3D	audio=0AXMASTER_SITES=3D	SF/${P=
 ORTNAME}/${PORTNAME}/0.60=0AX=0AXMAINTAINER=3D	pierrejacques.mimifir@gmail.=
 com=0AXCOMMENT=3D	Vintage synthesiers emulation for electric pianos and org=
 ans=0AX=0AXLICENSE=3D	GPLv2=0AX=0AXLIB_DEPENDS=3D	jack:${PORTSDIR}/audio/ja=
 ck \=0AX		fluidsynth:${PORTSDIR}/audio/fluidsynth=0AX=0AXUSE_LDCONFIG=3D	ye=
 s=0AXGNU_CONFIGURE=3D	yes=0AXUSE_QT_VER=3D	4=0AXQT_COMPONENTS=3D  gui qmake=
 _build moc_build uic_build rcc_build linguist_build=0AX=0AXCONFIGURE_ARGS+=
 =3D	--disable-alsa --enable-oss \=0AX			--enable-jack-default-audio \=0AX		=
 	--enable-jack-default-midi \=0AX			--disable-version-check=0AX=0AXMAKE_JOB=
 S_SAFE=3D	yes=0AX=0AXMAN1=3D		bristol.1 bristoljackstats.1=0AXMLINKS=3D		br=
 istol.1 brighton.1 bristol.1 startBristol.1=0AX=0AXPORTDATA=3D	*=0AX=0AX.in=
 clude <bsd.port.mk>=0A8bacfc529c7b0905dfb2b4cd5963a520=0Aecho x - bristol/p=
 kg-plist=0Ased 's/^X//' >bristol/pkg-plist << '90d75588892a1655c722c7cdec51=
 d72d'=0AXbin/startBristol=0AXbin/bristoljackstats=0AXbin/bristol=0AXbin/bri=
 ghton=0AXlib/libbristolaudio.so.0=0AXlib/libbristolaudio.so=0AXlib/libbrist=
 olaudio.la=0AXlib/libbristolaudio.a=0AXlib/libbvg.so.0=0AXlib/libbvg.so=0AX=
 lib/libbvg.la=0AXlib/libbvg.a=0AXlib/libbristolmidi.so.0=0AXlib/libbristolm=
 idi.so=0AXlib/libbristolmidi.la=0AXlib/libbristolmidi.a=0AXlib/libbristolic=
 =2Eso.0=0AXlib/libbristolic.so=0AXlib/libbristolic.la=0AXlib/libbristolic.a=
 =0AXlib/libbristol.so.0=0AXlib/libbristol.so=0AXlib/libbristol.la=0AXlib/li=
 bbristol.a=0AXlib/libbrighton.so.0=0AXlib/libbrighton.so=0AXlib/libbrighton=
 =2Ela=0AXlib/libbrighton.a=0AXlib/libC11.so.0=0AXlib/libC11.so=0AXlib/libC1=
 1.la=0AXlib/libC11.a=0A90d75588892a1655c722c7cdec51d72d=0Aecho x - bristol/=
 pkg-descr=0Ased 's/^X//' >bristol/pkg-descr << 'f6b8fbc34bd0bb6ce8e07ba2214=
 afbe7'=0AXBristol is an emulation package for a number of different 'classi=
 c'i=0AXsynthesisers including additive and subtractive and a few organs. =
 =0AXThe application consists of the engine, which is called bristol, =0AXan=
 d its own GUI library called brighton that represents all the emulations.=
 =0AX=0AXWWW: http://bristol.sourceforge.net/=0Af6b8fbc34bd0bb6ce8e07ba2214a=
 fbe7=0Aecho c - bristol/files=0Amkdir -p bristol/files > /dev/null 2>&1=0Ae=
 cho x - bristol/files/patch-bin_startBristol.in=0Ased 's/^X//' >bristol/fil=
 es/patch-bin_startBristol.in << 'a50a38cff77d47b090910d8e1192bfdb'=0AX--- b=
 in/startBristol.in.orig	2012-04-27 13:07:18.000000000 +0200=0AX+++ bin/star=
 tBristol.in	2012-09-24 13:30:26.589848964 +0200=0AX@@ -39,14 +39,19 @@=0AX =
 #PORT=3D5028=0AX # Randomise the port numbers, can be overridden by -port w=
 hich would be a=0AX # requirement for multitimbral=0AX-PORT=3D`date +%N`=0A=
 X-PORT=3D`expr $PORT % 65536` >/dev/null 2>&1=0AX-if [ -z $PORT ]; then=0AX=
 -	PORT=3D`date +%s`=0AX+UNAME=3D`uname`=0AX+if [ "${UNAME}x" =3D "FreeBSDx"=
  ]; then=0AX+	PORT=3D`jot -r 1 1025 65536`=0AX+else=0AX+	PORT=3D`date +%N`=
 =0AX 	PORT=3D`expr $PORT % 65536` >/dev/null 2>&1=0AX-fi=0AX-if [ $PORT -lt=
  1024 ]; then=0AX-	PORT=3D`expr $PORT + 5028`=0AX+	if [ -z $PORT ]; then=0A=
 X+		PORT=3D`date +%s`=0AX+		PORT=3D`expr $PORT % 65536` >/dev/null 2>&1=0AX=
 +	fi=0AX+	if [ $PORT -lt 1024 ]; then=0AX+		PORT=3D`expr $PORT + 5028`=0AX+=
 	fi=0AX fi=0AX =0AX valgrind=3D0=0AX@@ -497,12 +502,12 @@=0AX 		fi=0AX 	els=
 e=0AX 		echo checking availability of TCP port $PORT=0AX-		netstat -taln | =
 awk '{print $4}' | grep $PORT > /dev/null=0AX+		netstat -a -f inet -p tcp -=
 ln | grep $PORT > /dev/null=0AX 		while [ $? -eq 0 ]; do=0AX 			echo -n "po=
 rt looked busy, trying "=0AX 			PORT=3D`expr $PORT + 1`=0AX 			echo $PORT=
 =0AX-			netstat -taln | grep $PORT > /dev/null=0AX+			netstat -a -f inet -p=
  tcp -ln | grep $PORT > /dev/null=0AX 		done=0AX 		if [ ${PORT} -lt 1024 -a=
  ${USER} !=3D "root" ]; then=0AX 				echo you may not have permissions for =
 ports less than 1024=0Aa50a38cff77d47b090910d8e1192bfdb=0Aecho x - bristol/=
 files/patch-bristol-bristol.c=0Ased 's/^X//' >bristol/files/patch-bristol-b=
 ristol.c << 'f552364671fcd954c205c8e17c831ee1'=0AX--- bristol/bristol.c.ori=
 g	2012-04-27 13:04:28.000000000 +0200=0AX+++ bristol/bristol.c	2012-09-24 1=
 5:43:08.299853839 +0200=0AX@@ -27,7 +27,11 @@=0AX #include <unistd.h>=0AX #=
 include <pthread.h>=0AX #include <sys/types.h>=0AX+#ifdef __FreeBSD__=0AX+#=
 include <sys/wait.h>=0AX+#else=0AX #include <wait.h>=0AX+#endif=0AX =0AX #i=
 f defined(linux)=0AX #include <sched.h>=0Af552364671fcd954c205c8e17c831ee1=
 =0Aecho x - bristol/files/patch-libbristolaudio-audioGUIOSS.c=0Ased 's/^X//=
 ' >bristol/files/patch-libbristolaudio-audioGUIOSS.c << '8f8818de2cf83f0cbf=
 b6948cb7739b5a'=0AX--- libbristolaudio/audioGUIOSS.c.orig	2012-04-27 13:04:=
 29.000000000 +0200=0AX+++ libbristolaudio/audioGUIOSS.c	2012-09-24 15:42:10=
 =2E570849586 +0200=0AX@@ -50,7 +50,9 @@=0AX #include <unistd.h>=0AX #includ=
 e <fcntl.h>=0AX #include <stdlib.h>=0AX+#ifndef __FreeBSD__=0AX #include <m=
 alloc.h>=0AX+#endif=0AX =0AX static int setAudioOSS(int, duplexDev *, int, =
 int, int);=0AX =0A8f8818de2cf83f0cbfb6948cb7739b5a=0Aecho x - bristol/files=
 /patch-libbristolaudio-audioEngine.c=0Ased 's/^X//' >bristol/files/patch-li=
 bbristolaudio-audioEngine.c << 'e1f2d8d9b603d1742e3e3c05cdea6213'=0AX--- li=
 bbristolaudio/audioEngine.c.orig	2012-04-27 13:04:29.000000000 +0200=0AX+++=
  libbristolaudio/audioEngine.c	2012-09-24 15:41:49.609845763 +0200=0AX@@ -5=
 9,8 +59,10 @@=0AX #include <fcntl.h>=0AX #ifdef SUBFRAGMENT=0AX #include <s=
 tdlib.h>=0AX+#ifndef __FreeBSD__=0AX #include <malloc.h>=0AX #endif=0AX+#en=
 dif=0AX =0AX #include <sys/ioctl.h>=0AX =0Ae1f2d8d9b603d1742e3e3c05cdea6213=
 =0Aexit=0A=0A
 --vGgW1X5XWziG23Ko--
State-Changed-From-To: open->feedback 
State-Changed-By: madpilot 
State-Changed-When: Fri Sep 28 09:28:08 UTC 2012 
State-Changed-Why:  
Ask for submitter approval. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169861 
State-Changed-From-To: feedback->open 
State-Changed-By: madpilot 
State-Changed-When: Sun Sep 30 16:17:43 UTC 2012 
State-Changed-Why:  
Submitter has approved via private email. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169861 
State-Changed-From-To: open->closed 
State-Changed-By: madpilot 
State-Changed-When: Mon Oct 1 21:52:53 UTC 2012 
State-Changed-Why:  
New port added, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169861 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/169861: commit references a PR
Date: Mon,  1 Oct 2012 21:52:57 +0000 (UTC)

 Author: madpilot
 Date: Mon Oct  1 21:52:42 2012
 New Revision: 305142
 URL: http://svn.freebsd.org/changeset/ports/305142
 
 Log:
   Bristol is an emulation package for a number of different 'classic'
   synthesisers including additive, subtractive and a few organs.
   The application consists of the engine, which is called bristol,
   and its own GUI library called brighton that represents all the
   emulations.
   
   WWW: http://bristol.sourceforge.net/
   
   PR:		ports/169861
   Submitted by:	pjm <pierrejacqes.mimifir@gmail.com>
 
 Added:
   head/audio/bristol/
   head/audio/bristol/Makefile   (contents, props changed)
   head/audio/bristol/distinfo   (contents, props changed)
   head/audio/bristol/files/
   head/audio/bristol/files/patch-bin_startBristol.in   (contents, props changed)
   head/audio/bristol/files/patch-bristol-bristol.c   (contents, props changed)
   head/audio/bristol/files/patch-libbristolaudio-audioEngine.c   (contents, props changed)
   head/audio/bristol/files/patch-libbristolaudio-audioGUIOSS.c   (contents, props changed)
   head/audio/bristol/pkg-descr   (contents, props changed)
   head/audio/bristol/pkg-plist   (contents, props changed)
 Modified:
   head/audio/Makefile
 
 Modified: head/audio/Makefile
 ==============================================================================
 --- head/audio/Makefile	Mon Oct  1 20:06:55 2012	(r305141)
 +++ head/audio/Makefile	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -77,6 +77,7 @@
      SUBDIR += bmp-wma
      SUBDIR += bonk
      SUBDIR += boodler
 +    SUBDIR += bristol
      SUBDIR += btc
      SUBDIR += calf
      SUBDIR += cam
 
 Added: head/audio/bristol/Makefile
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/Makefile	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,34 @@
 +# Created by: pjm <pierrejacqes.mimifir@gmail.com>
 +# $FreeBSD$
 +
 +PORTNAME=	bristol
 +PORTVERSION=	0.60.10
 +CATEGORIES=	audio
 +MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/0.60
 +
 +MAINTAINER=	pierrejacques.mimifir@gmail.com
 +COMMENT=	Vintage synthesiers emulation for electric pianos and organs
 +
 +LICENSE=	GPLv2
 +
 +LIB_DEPENDS=	jack:${PORTSDIR}/audio/jack \
 +		fluidsynth:${PORTSDIR}/audio/fluidsynth
 +
 +USE_LDCONFIG=	yes
 +GNU_CONFIGURE=	yes
 +USE_QT_VER=	4
 +QT_COMPONENTS=	gui qmake_build moc_build uic_build rcc_build linguist_build
 +
 +CONFIGURE_ARGS+=	--disable-alsa --enable-oss \
 +			--enable-jack-default-audio \
 +			--enable-jack-default-midi \
 +			--disable-version-check
 +
 +MAKE_JOBS_SAFE=	yes
 +
 +MAN1=		bristol.1 bristoljackstats.1
 +MLINKS=		bristol.1 brighton.1 bristol.1 startBristol.1
 +
 +PORTDATA=	*
 +
 +.include <bsd.port.mk>
 
 Added: head/audio/bristol/distinfo
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/distinfo	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,2 @@
 +SHA256 (bristol-0.60.10.tar.gz) = a39cee4d7d59422b67a55620ae17f5b4aff162bf39077e70c5799bde7eb1191c
 +SIZE (bristol-0.60.10.tar.gz) = 4206356
 
 Added: head/audio/bristol/files/patch-bin_startBristol.in
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/files/patch-bin_startBristol.in	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,44 @@
 +--- bin/startBristol.in.orig	2012-04-27 13:07:18.000000000 +0200
 ++++ bin/startBristol.in	2012-09-24 13:30:26.589848964 +0200
 +@@ -39,14 +39,19 @@
 + #PORT=5028
 + # Randomise the port numbers, can be overridden by -port which would be a
 + # requirement for multitimbral
 +-PORT=`date +%N`
 +-PORT=`expr $PORT % 65536` >/dev/null 2>&1
 +-if [ -z $PORT ]; then
 +-	PORT=`date +%s`
 ++UNAME=`uname`
 ++if [ "${UNAME}x" = "FreeBSDx" ]; then
 ++	PORT=`jot -r 1 1025 65536`
 ++else
 ++	PORT=`date +%N`
 + 	PORT=`expr $PORT % 65536` >/dev/null 2>&1
 +-fi
 +-if [ $PORT -lt 1024 ]; then
 +-	PORT=`expr $PORT + 5028`
 ++	if [ -z $PORT ]; then
 ++		PORT=`date +%s`
 ++		PORT=`expr $PORT % 65536` >/dev/null 2>&1
 ++	fi
 ++	if [ $PORT -lt 1024 ]; then
 ++		PORT=`expr $PORT + 5028`
 ++	fi
 + fi
 + 
 + valgrind=0
 +@@ -497,12 +502,12 @@
 + 		fi
 + 	else
 + 		echo checking availability of TCP port $PORT
 +-		netstat -taln | awk '{print $4}' | grep $PORT > /dev/null
 ++		netstat -a -f inet -p tcp -ln | grep $PORT > /dev/null
 + 		while [ $? -eq 0 ]; do
 + 			echo -n "port looked busy, trying "
 + 			PORT=`expr $PORT + 1`
 + 			echo $PORT
 +-			netstat -taln | grep $PORT > /dev/null
 ++			netstat -a -f inet -p tcp -ln | grep $PORT > /dev/null
 + 		done
 + 		if [ ${PORT} -lt 1024 -a ${USER} != "root" ]; then
 + 				echo you may not have permissions for ports less than 1024
 
 Added: head/audio/bristol/files/patch-bristol-bristol.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/files/patch-bristol-bristol.c	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,14 @@
 +--- bristol/bristol.c.orig	2012-04-27 13:04:28.000000000 +0200
 ++++ bristol/bristol.c	2012-09-24 15:43:08.299853839 +0200
 +@@ -27,7 +27,11 @@
 + #include <unistd.h>
 + #include <pthread.h>
 + #include <sys/types.h>
 ++#ifdef __FreeBSD__
 ++#include <sys/wait.h>
 ++#else
 + #include <wait.h>
 ++#endif
 + 
 + #if defined(linux)
 + #include <sched.h>
 
 Added: head/audio/bristol/files/patch-libbristolaudio-audioEngine.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/files/patch-libbristolaudio-audioEngine.c	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,13 @@
 +--- libbristolaudio/audioEngine.c.orig	2012-04-27 13:04:29.000000000 +0200
 ++++ libbristolaudio/audioEngine.c	2012-09-24 15:41:49.609845763 +0200
 +@@ -59,8 +59,10 @@
 + #include <fcntl.h>
 + #ifdef SUBFRAGMENT
 + #include <stdlib.h>
 ++#ifndef __FreeBSD__
 + #include <malloc.h>
 + #endif
 ++#endif
 + 
 + #include <sys/ioctl.h>
 + 
 
 Added: head/audio/bristol/files/patch-libbristolaudio-audioGUIOSS.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/files/patch-libbristolaudio-audioGUIOSS.c	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,12 @@
 +--- libbristolaudio/audioGUIOSS.c.orig	2012-04-27 13:04:29.000000000 +0200
 ++++ libbristolaudio/audioGUIOSS.c	2012-09-24 15:42:10.570849586 +0200
 +@@ -50,7 +50,9 @@
 + #include <unistd.h>
 + #include <fcntl.h>
 + #include <stdlib.h>
 ++#ifndef __FreeBSD__
 + #include <malloc.h>
 ++#endif
 + 
 + static int setAudioOSS(int, duplexDev *, int, int, int);
 + 
 
 Added: head/audio/bristol/pkg-descr
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/pkg-descr	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,7 @@
 +Bristol is an emulation package for a number of different 'classic'
 +synthesisers including additive, subtractive and a few organs.
 +The application consists of the engine, which is called bristol,
 +and its own GUI library called brighton that represents all the
 +emulations.
 +
 +WWW: http://bristol.sourceforge.net/
 
 Added: head/audio/bristol/pkg-plist
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/audio/bristol/pkg-plist	Mon Oct  1 21:52:42 2012	(r305142)
 @@ -0,0 +1,32 @@
 +bin/startBristol
 +bin/bristoljackstats
 +bin/bristol
 +bin/brighton
 +lib/libbristolaudio.so.0
 +lib/libbristolaudio.so
 +lib/libbristolaudio.la
 +lib/libbristolaudio.a
 +lib/libbvg.so.0
 +lib/libbvg.so
 +lib/libbvg.la
 +lib/libbvg.a
 +lib/libbristolmidi.so.0
 +lib/libbristolmidi.so
 +lib/libbristolmidi.la
 +lib/libbristolmidi.a
 +lib/libbristolic.so.0
 +lib/libbristolic.so
 +lib/libbristolic.la
 +lib/libbristolic.a
 +lib/libbristol.so.0
 +lib/libbristol.so
 +lib/libbristol.la
 +lib/libbristol.a
 +lib/libbrighton.so.0
 +lib/libbrighton.so
 +lib/libbrighton.la
 +lib/libbrighton.a
 +lib/libC11.so.0
 +lib/libC11.so
 +lib/libC11.la
 +lib/libC11.a
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
