1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/audio/timidity/Makefile
Mathieu Arnold 7f4572eae4 Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 13:29:15 +00:00

58 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= timidity
PORTVERSION= 0.2i
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES+= http://www.onicos.com/staff/iz/timidity/dist/:timidity
DISTFILES+= ${DISTNAME}.tar.gz:timidity
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= MIDI to PCM software synthesizer
CONFLICTS= timidity++-2.*
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= alias ncurses
TIINS= goemon.tgz
INSTALL_TARGET= install.all
OPTIONS_DEFINE= GUSPAT
GUSPAT_DESC= Use audio/guspat instead of included sound fonts (goemon)
.include <bsd.port.options.mk>
# Set up sound fonts from audio/guspat.
.if ${PORT_OPTIONS:MGUSPAT}
RUN_DEPENDS+= ${LOCALBASE}/share/guspat/power.cfg:audio/guspat
TDIR= ${LOCALBASE}/share/timidity
TCONFIG= timidity.cfg-guspat
PLIST_SUB+= GOEMON="@comment "
.else
# Set up default sound fonts (goemon).
MASTER_SITES+= http://www.anime.net/~goemon/timidity/:tiins
DISTFILES+= ${TIINS}:tiins
TDIR= ${PREFIX}/lib/timidity
TCONFIG= goemon.cfg
PLIST_SUB+= GOEMON=""
.endif
post-patch:
${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
${WRKSRC}/linux_a.c
${REINPLACE_CMD} -e 's|%%TDIR%%|${TDIR}| ; s|%%TCONFIG%%|${TCONFIG}|' \
${WRKSRC}/timidity.cfg
post-install:
.if ! ${PORT_OPTIONS:MGUSPAT}
cd ${STAGEDIR}${PREFIX}/lib/timidity && \
${TAR} --no-same-owner --no-same-permissions -zxf ${DISTDIR}/${TIINS} && \
${REINPLACE_CMD} -i "" -e 's,dir goemon,dir ${PREFIX}/lib/timidity/goemon,' \
goemon.cfg
.endif
.include <bsd.port.mk>