2005-06-10 20:15:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2005/06/11 00:15:14 jaredy Exp $
|
1999-02-07 00:18:48 -05:00
|
|
|
|
2001-04-12 23:23:59 -04:00
|
|
|
COMMENT= "MIDI to WAV renderer and player"
|
|
|
|
DISTNAME= timidity-0.2i
|
2005-06-10 20:15:14 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2001-04-12 23:23:59 -04:00
|
|
|
CATEGORIES= audio
|
2002-10-24 18:20:03 -04:00
|
|
|
|
2004-10-09 12:51:44 -04:00
|
|
|
MASTER_SITES= http://sca.uwaterloo.ca/www.cgs.fi/tt/timidity/
|
2001-04-12 23:23:59 -04:00
|
|
|
MASTER_SITES0= ftp://ftp.kiarchive.ru/pub/misc/hardware/soundcard/gus/
|
|
|
|
TIINS= goemon.tgz
|
|
|
|
DISTFILES= ${TIINS}:0 ${DISTNAME}.tar.gz
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
1999-09-06 14:33:22 -04:00
|
|
|
|
2003-05-18 19:41:55 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= "copyrighted patches"
|
|
|
|
PERMIT_PACKAGE_FTP= "copyrighted patches"
|
|
|
|
PERMIT_DISTFILES_CDROM= "copyrighted patches"
|
|
|
|
PERMIT_DISTFILES_FTP= "copyrighted patches"
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB= c m ossaudio
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2001-07-06 04:05:28 -04:00
|
|
|
|
|
|
|
FLAVORS=motif curses slang
|
|
|
|
FLAVOR?=motif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mcurses}
|
|
|
|
MAKE_FLAGS+=-DCURSES
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB+= curses
|
2001-07-06 04:05:28 -04:00
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmotif} || ${FLAVOR:L:Mlesstif}
|
|
|
|
MAKE_FLAGS+=-DMOTIF
|
2001-04-18 11:01:02 -04:00
|
|
|
USE_MOTIF= any
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB+= X11 Xext Xt
|
2001-07-06 04:05:28 -04:00
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mslang}
|
|
|
|
MAKE_FLAGS+=-DSLANG
|
|
|
|
LIB_DEPENDS+=slang.::devel/libslang
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB+= curses
|
2001-07-06 04:05:28 -04:00
|
|
|
.endif
|
1999-02-07 00:18:48 -05:00
|
|
|
|
2002-07-17 17:17:10 -04:00
|
|
|
MAKE_ENV= CC="${CC}"
|
2002-10-24 18:20:03 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1999-02-07 00:18:48 -05:00
|
|
|
INSTALL_TARGET= install.all
|
2001-07-06 04:05:28 -04:00
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST} ${MAKE_FLAGS}
|
1999-02-07 00:18:48 -05:00
|
|
|
|
|
|
|
post-install:
|
2001-07-05 06:53:49 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/timidity.1 ${PREFIX}/man/man1
|
1999-09-06 14:33:22 -04:00
|
|
|
@cd ${PREFIX}/lib/timidity && \
|
2003-10-26 18:49:31 -05:00
|
|
|
${TAR} zxf ${FULLDISTDIR}/${TIINS} && \
|
2000-02-16 05:52:08 -05:00
|
|
|
cp goemon.cfg goemon.cfg.bak && \
|
2000-03-24 17:39:00 -05:00
|
|
|
sed 's=dir goemon=dir ${TRUEPREFIX}/lib/timidity/goemon=' \
|
1999-02-07 00:18:48 -05:00
|
|
|
< goemon.cfg.bak > goemon.cfg && \
|
2000-02-16 05:52:08 -05:00
|
|
|
rm -f goemon.cfg.bak
|
1999-02-07 00:18:48 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|