49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.21 2002/03/21 20:35:42 espie Exp $
|
|
|
|
COMMENT= "MIDI to WAV renderer and player"
|
|
DISTNAME= timidity-0.2i
|
|
CATEGORIES= audio
|
|
NEED_VERSION= 1.515
|
|
MASTER_SITES= http://www.goice.co.jp/member/mo/timidity/dist/
|
|
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
|
|
|
|
MAINTAINER= ports@openbsd.org
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
PERMIT_PACKAGE_FTP= No
|
|
PERMIT_DISTFILES_CDROM= No
|
|
PERMIT_DISTFILES_FTP= No
|
|
|
|
|
|
FLAVORS=motif curses slang
|
|
FLAVOR?=motif
|
|
|
|
.if ${FLAVOR:L:Mcurses}
|
|
MAKE_FLAGS+=-DCURSES
|
|
.endif
|
|
.if ${FLAVOR:L:Mmotif} || ${FLAVOR:L:Mlesstif}
|
|
MAKE_FLAGS+=-DMOTIF
|
|
USE_MOTIF= any
|
|
.endif
|
|
.if ${FLAVOR:L:Mslang}
|
|
MAKE_FLAGS+=-DSLANG
|
|
LIB_DEPENDS+=slang.::devel/libslang
|
|
.endif
|
|
|
|
INSTALL_TARGET= install.all
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST} ${MAKE_FLAGS}
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/timidity.1 ${PREFIX}/man/man1
|
|
@cd ${PREFIX}/lib/timidity && \
|
|
${TAR} zxf ${DISTDIR}/${TIINS} && \
|
|
cp goemon.cfg goemon.cfg.bak && \
|
|
sed 's=dir goemon=dir ${TRUEPREFIX}/lib/timidity/goemon=' \
|
|
< goemon.cfg.bak > goemon.cfg && \
|
|
rm -f goemon.cfg.bak
|
|
|
|
.include <bsd.port.mk>
|