From jylefort@brutele.be  Fri Jun 25 16:13:45 2004
Return-Path: <jylefort@brutele.be>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2A17116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jun 2004 16:13:45 +0000 (GMT)
Received: from gateway.lefort.net (212.68.242.203.brutele.be [212.68.242.203])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D520443D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jun 2004 16:13:43 +0000 (GMT)
	(envelope-from jylefort@brutele.be)
Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2])
	by gateway.lefort.net (Postfix) with ESMTP id D18805515
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jun 2004 18:13:11 +0200 (CEST)
Received: by jsite.lefort.net (Postfix, from userid 1000)
	id 9DBBF22E2A; Fri, 25 Jun 2004 18:13:11 +0200 (CEST)
Message-Id: <20040625161311.9DBBF22E2A@jsite.lefort.net>
Date: Fri, 25 Jun 2004 18:13:11 +0200 (CEST)
From: Jean-Yves Lefort <jylefort@brutele.be>
Reply-To: Jean-Yves Lefort <jylefort@brutele.be>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: audio/swami, an advanced instrument editor
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         68335
>Category:       ports
>Synopsis:       New port: audio/swami, an advanced instrument editor
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 25 16:20:10 GMT 2004
>Closed-Date:    Sat Jun 26 06:26:45 GMT 2004
>Last-Modified:  Sat Jun 26 06:26:45 GMT 2004
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Thu May 27 14:42:30 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
# 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:
#
#	swami
#	swami/pkg-plist
#	swami/pkg-descr
#	swami/files
#	swami/files/patch-src::gui::main.c
#	swami/files/patch-src::plugins::wavetbl_fluidsynth.c
#	swami/Makefile
#	swami/distinfo
#
echo c - swami
mkdir -p swami > /dev/null 2>&1
echo x - swami/pkg-plist
sed 's/^X//' >swami/pkg-plist << 'END-of-swami/pkg-plist'
Xbin/swami
Xlib/swami/samplelib_audiofile.a
Xlib/swami/samplelib_audiofile.la
Xlib/swami/samplelib_audiofile.so
Xlib/swami/samplelib_libsndfile.a
Xlib/swami/samplelib_libsndfile.la
Xlib/swami/samplelib_libsndfile.so
Xlib/swami/wavetbl_fluidsynth.a
Xlib/swami/wavetbl_fluidsynth.la
Xlib/swami/wavetbl_fluidsynth.so
Xshare/locale/de/LC_MESSAGES/swami.mo
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X@dirrm lib/swami
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-swami/pkg-plist
echo x - swami/pkg-descr
sed 's/^X//' >swami/pkg-descr << 'END-of-swami/pkg-descr'
XSwami - Sampled Waveforms and And Musical Instruments - is an advanced
Xinstrument editor for MIDI music composition and a sampler
Xfrontend. Currently SoundFont(r) files can be browsed, edited and
Xsaved and new instrument formats are being added in the Swami
Xdevelopment version. Swami uses FluidSynth for software synthesis, so
Xalmost any sound card can be used. FluidSynth has real time effect
Xcontrol and SoundFont 2.01 modulator support for controlling effects
Xin real time with MIDI.
X
XWWW: http://swami.sourceforge.net/
X
X- Jean-Yves Lefort
Xjylefort@brutele.be
END-of-swami/pkg-descr
echo c - swami/files
mkdir -p swami/files > /dev/null 2>&1
echo x - swami/files/patch-src::gui::main.c
sed 's/^X//' >swami/files/patch-src::gui::main.c << 'END-of-swami/files/patch-src::gui::main.c'
X--- src/gui/main.c.orig	Fri Jun 25 17:40:49 2004
X+++ src/gui/main.c	Fri Jun 25 17:41:12 2004
X@@ -119,6 +119,9 @@
X 
X   poptFreeContext (popt_ctx);
X 
X+  /* keep sound alive */
X+  gtk_timeout_add(10, gtk_true, NULL);
X+
X   gdk_threads_enter ();
X   gtk_main ();			/* kick it in the main GTK loop */
X   gdk_threads_leave ();
END-of-swami/files/patch-src::gui::main.c
echo x - swami/files/patch-src::plugins::wavetbl_fluidsynth.c
sed 's/^X//' >swami/files/patch-src::plugins::wavetbl_fluidsynth.c << 'END-of-swami/files/patch-src::plugins::wavetbl_fluidsynth.c'
X--- src/plugins/wavetbl_fluidsynth.c.orig	Fri Jun 25 18:02:19 2004
X+++ src/plugins/wavetbl_fluidsynth.c	Fri Jun 25 18:03:08 2004
X@@ -154,7 +154,7 @@
X   { "fluidsynth", "audio_type", G_TOKEN_STRING, {""}},
X   { NULL, "audio_device", G_TOKEN_STRING, {""}},
X   { NULL, "audio_bufsize", G_TOKEN_INT, {GINT_TO_POINTER (64)}},
X-  { NULL, "audio_bufcount", G_TOKEN_INT, {GINT_TO_POINTER (3)}},
X+  { NULL, "audio_bufcount", G_TOKEN_INT, {GINT_TO_POINTER (16)}},
X   { NULL, "midi_type", G_TOKEN_STRING, {""}},
X   { NULL, "midi_device", G_TOKEN_STRING, {""}},
X   { NULL, "master_gain", G_TOKEN_FLOAT, {v_float:0.0}},
END-of-swami/files/patch-src::plugins::wavetbl_fluidsynth.c
echo x - swami/Makefile
sed 's/^X//' >swami/Makefile << 'END-of-swami/Makefile'
X# New ports collection makefile for:	Swami
X# Date created:			25 Jun 2004
X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		swami
XPORTVERSION=		0.9.2
XCATEGORIES=		audio
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=		jylefort@brutele.be
XCOMMENT=		An advanced instrument editor
X
XLIB_DEPENDS=		popt:${PORTSDIR}/devel/popt \
X			png:${PORTSDIR}/graphics/png \
X			fluidsynth:${PORTSDIR}/audio/fluidsynth \
X			sndfile:${PORTSDIR}/audio/libsndfile \
X			audiofile:${PORTSDIR}/audio/libaudiofile
X
XUSE_X_PREFIX=		yes
XUSE_BZIP2=		yes
XUSE_REINPLACE=		yes
XUSE_LIBTOOL_VER=	14
XUSE_GNOME=		gnomelibs
XCONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
X			LDFLAGS="-L${LOCALBASE}/lib"
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|libpng|libpng12|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} \
X		${WRKSRC}/AUTHORS \
X		${WRKSRC}/NEWS \
X		${WRKSRC}/README \
X		${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-swami/Makefile
echo x - swami/distinfo
sed 's/^X//' >swami/distinfo << 'END-of-swami/distinfo'
XMD5 (swami-0.9.2.tar.bz2) = 72e981c592165537d86ae37fd21e3933
XSIZE (swami-0.9.2.tar.bz2) = 729688
END-of-swami/distinfo
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sat Jun 26 06:26:37 GMT 2004 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68335 
>Unformatted:
