blob: c58194d0375e4a6d9e082600b30f2b39651ba09f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $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.*
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:${PORTSDIR}/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>
|