- add a xaw FLAVOR

- reformat DESCR
- fix WANTLIB

based on a submission from Bryan Linton <bl at shoshoni dot info>
"go for it" landry@
This commit is contained in:
ajacoutot 2007-11-22 12:52:34 +00:00
parent 641855fcdb
commit 1612b04a0e
5 changed files with 59 additions and 17 deletions

View File

@ -1,8 +1,10 @@
# $OpenBSD: Makefile,v 1.31 2007/09/15 21:26:03 simon Exp $
# $OpenBSD: Makefile,v 1.32 2007/11/22 12:52:34 ajacoutot Exp $
COMMENT= MIDI to WAV renderer and player
DISTNAME= TiMidity++-2.13.2
PKGNAME= ${DISTNAME:L:S/++//}p0
V= 2.13.2
DISTNAME= TiMidity++-${V}
PKGNAME= timidity-${V}p1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=timidity/}
@ -17,6 +19,7 @@ PERMIT_PACKAGE_CDROM= copyrighted patches
PERMIT_PACKAGE_FTP= copyrighted patches
PERMIT_DISTFILES_CDROM= copyrighted patches
PERMIT_DISTFILES_FTP= copyrighted patches
WANTLIB= c m ncurses
CONFIGURE_STYLE=gnu
@ -28,7 +31,7 @@ CONFIGURE_ARGS= --enable-audio=sun \
--enable-server \
--with-default-path=${SYSCONFDIR}
FLAVORS= gtk2
FLAVORS= gtk2 xaw
FLAVOR?=
.if ${FLAVOR:L:Mgtk2}
@ -36,10 +39,19 @@ CONFIGURE_ARGS+=--enable-gtk
MODULES= devel/gettext
USE_X11= Yes
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
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
WANTLIB+= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat \
fontconfig freetype glib-2.0 glitz gmodule-2.0 \
gobject-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 png z
.endif
.if ${FLAVOR:L:Mxaw}
CONFIGURE_ARGS+=--enable-xaw
USE_X11= Yes
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xt
.endif
.if ! ${FLAVOR:L:Mgtk2} && ! ${FLAVOR:L:Mxaw}
CONFIGURE_ARGS+=--without-x
.endif

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-TiMidity++-2_13_2_configure,v 1.1 2006/01/30 10:13:11 jsg Exp $
--- TiMidity++-2.13.2/configure.orig Sun Oct 3 22:39:51 2004
+++ TiMidity++-2.13.2/configure Sat Jan 21 01:07:46 2006
@@ -16190,7 +16190,7 @@ if test "${ac_cv_lib_slang_SLang_init_tt
$OpenBSD: patch-TiMidity++-2_13_2_configure,v 1.2 2007/11/22 12:52:34 ajacoutot Exp $
--- TiMidity++-2.13.2/configure.orig Sun Oct 3 14:39:51 2004
+++ TiMidity++-2.13.2/configure Thu Nov 22 09:30:30 2007
@@ -16190,7 +16190,7 @@ if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set;
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS

View File

@ -1,8 +1,23 @@
TiMidity is a MIDI to WAVE converter using Gravis Ultrasound-compatible
patch files or soundfonts to generate digital audio data from General
MIDI files. The data can be stored in a file for processing, or played
in real time through an audio device.
MIDI (GM) files. The data can be stored in a file for processing, or
played in real time through an audio device.
FLAVORs:
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
gtk2 - build gtk+2 interface which may be used via 'timidity -ig'
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>'.
Available flavors:
gtk2 - Build gtk+2 interface which may be used via 'timidity -ig'
(does not support play tracing)
xaw - Build Xaw interface which may be used via 'timidity -ia'
(support play tracing)

View File

@ -0,0 +1,14 @@
@comment $OpenBSD: PFRAG.xaw,v 1.1 2007/11/22 12:52:34 ajacoutot Exp $
lib/timidity/
lib/timidity/bitmaps/
lib/timidity/bitmaps/back.xbm
lib/timidity/bitmaps/fwrd.xbm
lib/timidity/bitmaps/next.xbm
lib/timidity/bitmaps/pause.xbm
lib/timidity/bitmaps/play.xbm
lib/timidity/bitmaps/prev.xbm
lib/timidity/bitmaps/quit.xbm
lib/timidity/bitmaps/random.xbm
lib/timidity/bitmaps/repeat.xbm
lib/timidity/bitmaps/stop.xbm
lib/timidity/bitmaps/timidity.xbm

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.5 2006/01/30 10:13:11 jsg Exp $
@comment $OpenBSD: PLIST,v 1.6 2007/11/22 12:52:34 ajacoutot Exp $
bin/timidity
@man man/man1/timidity.1
@man man/man5/timidity.cfg.5
@ -261,3 +261,4 @@ share/timidity/goemon/woodblk.pat
share/timidity/goemon/woodblk1.pat
share/timidity/goemon/woodblk2.pat
share/timidity/goemon/woodflut.pat
%%xaw%%