2006-01-30 05:13:11 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2006/01/30 10:13:11 jsg Exp $
|
1999-02-07 00:18:48 -05:00
|
|
|
|
2001-04-12 23:23:59 -04:00
|
|
|
COMMENT= "MIDI to WAV renderer and player"
|
2006-01-30 05:13:11 -05:00
|
|
|
DISTNAME= TiMidity++-2.13.2
|
|
|
|
PKGNAME= ${DISTNAME:L:S/++//}
|
2001-04-12 23:23:59 -04:00
|
|
|
CATEGORIES= audio
|
2002-10-24 18:20:03 -04:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=timidity/}
|
2001-04-12 23:23:59 -04:00
|
|
|
MASTER_SITES0= ftp://ftp.kiarchive.ru/pub/misc/hardware/soundcard/gus/
|
2006-01-30 05:13:11 -05:00
|
|
|
TIINS= goemon.tgz
|
2001-04-12 23:23:59 -04:00
|
|
|
DISTFILES= ${TIINS}:0 ${DISTNAME}.tar.gz
|
1999-09-06 14:33:22 -04:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
HOMEPAGE= http://timidity.sourceforge.net/
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
# GPL, copyrighted patches in goemon patchset
|
|
|
|
PERMIT_PACKAGE_CDROM= "copyrighted patches"
|
|
|
|
PERMIT_PACKAGE_FTP= "copyrighted patches"
|
|
|
|
PERMIT_DISTFILES_CDROM= "copyrighted patches"
|
|
|
|
PERMIT_DISTFILES_FTP= "copyrighted patches"
|
|
|
|
WANTLIB= c m ncurses
|
2001-07-06 04:05:28 -04:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --enable-audio=sun \
|
|
|
|
--enable-vt100 \
|
|
|
|
--enable-ncurses \
|
|
|
|
--enable-server \
|
|
|
|
--with-default-path=${SYSCONFDIR}
|
2001-07-06 04:05:28 -04:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
FLAVORS= gtk2
|
|
|
|
FLAVOR?=
|
1999-02-07 00:18:48 -05:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
.if ${FLAVOR:L:Mgtk2}
|
|
|
|
CONFIGURE_ARGS+=--enable-gtk
|
|
|
|
MODULES= devel/gettext
|
|
|
|
USE_X11= Yes
|
|
|
|
LIB_DEPENDS+= gdk-x11-2.0.0.11,gdk_pixbuf-2.0.0.11,gtk-x11-2.0.0.11::x11/gtk+2
|
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
|
|
|
WANTLIB+= X11 Xext Xft Xrender atk-1.0.0.0 fontconfig freetype \
|
|
|
|
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 pango-1.0.0.0 \
|
|
|
|
pangoft2-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
.endif
|
2002-10-24 18:20:03 -04:00
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
USE_GMAKE= Yes
|
2002-10-24 18:20:03 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-01-30 05:13:11 -05:00
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
DATA_DIRS= gsdrum00 gsdrum08 gsdrum40
|
1999-02-07 00:18:48 -05:00
|
|
|
|
|
|
|
post-install:
|
2006-01-30 05:13:11 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/timidity/goemon
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/goemon/*.* ${PREFIX}/share/timidity/goemon
|
|
|
|
.for DDIR in ${DATA_DIRS}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/timidity/goemon/${DDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/goemon/${DDIR}/*.* \
|
|
|
|
${PREFIX}/share/timidity/goemon/${DDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/goemon.cfg ${PREFIX}/share/timidity/goemon
|
|
|
|
@echo -e "dir ${TRUEPREFIX}/share/timidity/goemon\nsource goemon.cfg" \
|
|
|
|
>> ${WRKDIR}/timidity.cfg
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/timidity
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/timidity.cfg ${PREFIX}/share/examples/timidity
|
1999-02-07 00:18:48 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|