openbsd-ports/audio/timidity/Makefile

56 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.28 2005/06/11 00:15:14 jaredy Exp $
1999-02-07 00:18:48 -05:00
COMMENT= "MIDI to WAV renderer and player"
DISTNAME= timidity-0.2i
PKGNAME= ${DISTNAME}p0
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/
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
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
FLAVORS=motif curses slang
FLAVOR?=motif
.if ${FLAVOR:L:Mcurses}
MAKE_FLAGS+=-DCURSES
2004-11-21 12:51:44 -05:00
WANTLIB+= curses
.endif
.if ${FLAVOR:L:Mmotif} || ${FLAVOR:L:Mlesstif}
MAKE_FLAGS+=-DMOTIF
USE_MOTIF= any
2004-11-21 12:51:44 -05:00
WANTLIB+= X11 Xext Xt
.endif
.if ${FLAVOR:L:Mslang}
MAKE_FLAGS+=-DSLANG
LIB_DEPENDS+=slang.::devel/libslang
2004-11-21 12:51:44 -05:00
WANTLIB+= curses
.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
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
@cd ${PREFIX}/lib/timidity && \
${TAR} zxf ${FULLDISTDIR}/${TIINS} && \
cp goemon.cfg goemon.cfg.bak && \
sed 's=dir goemon=dir ${TRUEPREFIX}/lib/timidity/goemon=' \
1999-02-07 00:18:48 -05:00
< goemon.cfg.bak > goemon.cfg && \
rm -f goemon.cfg.bak
1999-02-07 00:18:48 -05:00
.include <bsd.port.mk>