This patch adds a Xaw GUI as an alternative flavor which supports
"play tracing" because the GTK version does not. Play tracing is a nice feature
because it allows you to see the notes being played in real-time [1]. I also
updated and expanded DESCR.
This is my first patch so I would appreciate any extra scrutiny or tips anyone
has to offer.
[1] http://timidity.sourceforge.net/iat.png
Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/timidity/Makefile,v
retrieving revision 1.30
diff -u -p -r1.30 Makefile
--- Makefile 2006/12/17 09:01:47 1.30
+++ Makefile 2007/11/20 02:10:47
@@ -26,11 +26,19 @@ CONFIGURE_ARGS= --enable-audio=sun \
--enable-vt100 \
--enable-ncurses \
--enable-server \
+ --without-x \
--with-default-path=${SYSCONFDIR}
-FLAVORS= gtk2
+FLAVORS= gtk2 xaw
FLAVOR?=
+.if ${FLAVOR:L:Mxaw}
+CONFIGURE_ARGS+=--enable-xaw \
+ --with-x
+USE_X11= Yes
+WANTLIB+= X11 Xau Xdmcp
+.endif
+
.if ${FLAVOR:L:Mgtk2}
CONFIGURE_ARGS+=--enable-gtk
MODULES= devel/gettext
@@ -39,8 +47,6 @@ LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0
WANTLIB+= X11 Xext Xrender atk-1.0 fontconfig freetype \
glib-2.0 gmodule-2.0 gobject-2.0 pango-1.0 \
pangoft2-1.0 pangocairo-1.0 glitz cairo png z
-.else
-CONFIGURE_ARGS+=--without-x
.endif
USE_GMAKE= Yes
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/audio/timidity/pkg/DESCR,v
retrieving revision 1.3
diff -u -p -r1.3 DESCR
--- pkg/DESCR 2006/01/30 10:13:11 1.3
+++ pkg/DESCR 2007/11/20 02:10:47
@@ -3,6 +3,24 @@ patch files or soundfonts to generate di
MIDI files. The data can be stored in a file for processing, or played
in real time through an audio device.
+TiMidity has several different interfaces which can be chosen by appending a
+character to the "-i" interface command line switch. The defaults are:
+ -in ncurses interface
+ -iT vt100 interface
+ -id dumb interface
+ -ir remote interface
+Some of the interfaces support "play tracing" which shows you the notes being
+played in realtime. This can be enabled by appending a 't' to the respective
+interface switch, e.g. to enable play tracing on the ncurses interface use
+'timidity -int <filename>'.
+
FLAVORs:
+
+ gtk2: Build a GTK+2 interface which may be used by appending a 'g' to
+ the interface switch e.g. 'timidity -ig'. This flavor does not support
+ play tracing.
+
+ xaw: Build a Xaw interface which may be used by appending an 'a' to
+ the interface switch e.g. 'timidity -ia'. This flavor supports play
+ tracing.
- gtk2 - build gtk+2 interface which may be used via 'timidity -ig'