mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
1b13452762
tricky for others to work on the ports tree, this will also bring more visible to portroach of those which are outdated
77 lines
1.8 KiB
Makefile
77 lines
1.8 KiB
Makefile
COMMENT= MIDI to WAV renderer and player
|
|
|
|
V= 2.15.0
|
|
DISTNAME= TiMidity++-${V}
|
|
PKGNAME= timidity-${V}
|
|
CATEGORIES= audio
|
|
REVISION= 3
|
|
|
|
SITES= ${SITE_SOURCEFORGE:=timidity/}
|
|
SITES.nycbug= https://mirrors.nycbug.org/pub/distfiles/
|
|
|
|
DISTFILES.nycbug= TimGM6mb-20170802.tar.gz
|
|
DISTFILES= ${DISTNAME}.tar.gz
|
|
|
|
HOMEPAGE= https://timidity.sourceforge.net/
|
|
|
|
# timidity: GPLv2+
|
|
# TimGM6mb: https://musescore.org/en/handbook/soundfonts#list
|
|
# "License: GNU GPL, version 2; Courtesy of Tim Brechbill"
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c curses m sndio
|
|
|
|
CONFIGURE_STYLE=autoreconf
|
|
AUTOCONF_VERSION = 2.59
|
|
AUTOMAKE_VERSION = 1.9
|
|
CONFIGURE_ARGS= --enable-audio=sndio \
|
|
--with-default-output=sndio \
|
|
--enable-vt100 \
|
|
--enable-ncurses \
|
|
--enable-server \
|
|
--with-default-path=${SYSCONFDIR}
|
|
|
|
FLAVORS= gtk2 xaw
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mgtk2}
|
|
CONFIGURE_ARGS+=--enable-gtk
|
|
LIB_DEPENDS+= devel/gettext,-runtime \
|
|
x11/gtk+2
|
|
WANTLIB+= X11 Xcomposite Xcursor Xdamage Xext Xfixes \
|
|
Xi Xinerama Xrandr Xrender atk-1.0 cairo \
|
|
fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 \
|
|
glib-2.0 gio-2.0 gobject-2.0 \
|
|
gtk-x11-2.0 intl pango-1.0 pangocairo-1.0 \
|
|
pangoft2-1.0 pthread z harfbuzz
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mxaw}
|
|
CONFIGURE_ARGS+=--enable-xaw
|
|
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xt
|
|
.endif
|
|
|
|
.if ! ${FLAVOR:Mgtk2} && ! ${FLAVOR:Mxaw}
|
|
CONFIGURE_ARGS+=--without-x
|
|
.endif
|
|
|
|
USE_GMAKE= Yes
|
|
NO_TEST= Yes
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
post-patch:
|
|
cp ${FILESDIR}/sndio_a.c \
|
|
${WRKSRC}/timidity/sndio_a.c
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/timidity/TimGM6mb
|
|
${INSTALL_DATA} ${WRKDIST}/TimGM6mb/* \
|
|
${PREFIX}/share/timidity/TimGM6mb
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/timidity
|
|
${SUBST_CMD} -c -m 644 ${WRKDIR}/timidity.cfg \
|
|
${PREFIX}/share/examples/timidity/timidity.cfg
|
|
|
|
.include <bsd.port.mk>
|