aboutsummaryrefslogtreecommitdiffstats
path: root/audio/terminatorx/Makefile
blob: a9e05740c83cc942bac2bdbd786ceb0c5916bd2e (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/audio/terminatorx/Makefile,v 1.6 2007/08/04 03:51:28 marcus Exp $

PORTNAME=   terminatorx
PORTVERSION=    3.84
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   http://terminatorx.org/dist/
DISTNAME=   terminatorX-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Realtime audio synthesizer that allows you to "scratch" on audio data

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
        rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS=    libaudiofile.so:${PORTSDIR}/audio/libaudiofile \
        liblrdf.so:${PORTSDIR}/textproc/liblrdf

OPTIONS_DEFINE= ALSA JACK MPG123 SOX VORBIS MAD
OPTIONS_DEFAULT=    JACK MPG123 SOX VORBIS MAD
SOX_DESC=   sox (.au) support
MPG123_DESC=    mpg123 support

USE_XORG=   x11 xext xi xxf86dga ice sm
USES=       tar:bzip2 gmake pathfix pkgconfig
USE_GNOME=  gnomehier gtk20 libxml2
USE_AUTOTOOLS=  aclocal autoheader automake autoconf
ACLOCAL_ARGS=   -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS=  --add-missing
CONFIGURE_ARGS= --disable-alsamidi \
        --disable-scheduler
INSTALLS_OMF=   yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

ALSA_LIB_DEPENDS=   libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_OFF= --disable-alsa
JACK_LIB_DEPENDS=   libjack.so:${PORTSDIR}/audio/jack
JACK_CONFIGURE_OFF= --disable-jack
MPG123_BUILD_DEPENDS=   mpg123:${PORTSDIR}/audio/mpg123
MPG123_CONFIGURE_OFF=   --disable-mpg123
SOX_BUILD_DEPENDS=  sox:${PORTSDIR}/audio/sox
SOX_CONFIGURE_OFF=  --disable-sox
VORBIS_BUILD_DEPENDS=   oggenc:${PORTSDIR}/audio/vorbis-tools
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_OFF=   --disable-vorbis
MAD_LIB_DEPENDS=    libmad.so:${PORTSDIR}/audio/libmad
MAD_CONFIGURE_OFF=  --disable-mad

post-patch:
    @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|malloc\.h|stdlib.h|g'
    @${GREP} -lR "%%LOCALBASE%%" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|%%LOCALBASE%%|${LOCALBASE}|g'

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/terminatorX ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/terminatorX.1 ${STAGEDIR}${MANPREFIX}/man/man1
.for file in terminatorX-app.png terminatorX-mime.png
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
        ${STAGEDIR}${PREFIX}/share/pixmaps
.endfor
.for f in terminatorX.mime terminatorX.keys
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/${f} \
        ${STAGEDIR}${PREFIX}/share/mime-info
.endfor
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/terminatorX.desktop \
        ${STAGEDIR}${PREFIX}/share/applications
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C
    ${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual.xml \
        ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/terminatorX.xml
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/figures
    ${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/figures/signalflow.png \
        ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/figures
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/omf/terminatorX
    ${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual-C.omf \
        ${STAGEDIR}${PREFIX}/share/omf/terminatorX/terminatorX-C.omf

.include <bsd.port.mk>