aboutsummaryrefslogtreecommitdiffstats
path: root/audio/timidity/Makefile
blob: bbb98b7028ae995f343c2f9d68b9b2d4845cb70a (plain) (blame)
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
# New ports collection makefile for:    timidity
# Date created:         17 Nov 1996
# Whom:                 ache
#
# $FreeBSD$
#

PORTNAME=   timidity
PORTVERSION=    0.2i
CATEGORIES= audio
MASTER_SITES=   ftp://ftp.kiarchive.ru/pub/misc/hardware/soundcard/gus/:tiins \
        http://www.onicos.com/staff/iz/timidity/dist/:timidity
DISTFILES=  ${TIINS}:tiins ${DISTNAME}.tar.gz:timidity
EXTRACT_ONLY=   ${DISTNAME}.tar.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    MIDI to WAV renderer and player

CONFLICTS=  timidity++-2.11.*

NO_CDROM=   "Uses copyrighted patches"

TIINS=      goemon.tgz
INSTALL_TARGET= install.all
MAN1=       timidity.1

post-patch:
    @${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
        ${WRKSRC}/linux_a.c > ${WRKSRC}/linux_a.c.new
    @${MV} ${WRKSRC}/linux_a.c.new ${WRKSRC}/linux_a.c

post-install:
    cd ${PREFIX}/lib/timidity && \
    ${TAR} zxf ${DISTDIR}/${TIINS} && \
    ${CP} goemon.cfg goemon.cfg.bak && \
    ${SED} 's=dir goemon=dir ${PREFIX}/lib/timidity/goemon=' \
       < goemon.cfg.bak > goemon.cfg && \
    ${RM} goemon.cfg.bak

.include <bsd.port.mk>