aboutsummaryrefslogtreecommitdiffstats
path: root/audio/terminatorx/Makefile
blob: 4f6757089270b72057e33f0137dcb476113bd178 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# New ports collection Makefile for:    terminatorx
# Date created:         13 May 2002
# Whom:             Tilman Linneweh <arved@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   terminatorx
PORTVERSION=    3.80
CATEGORIES= audio
MASTER_SITES=   http://www.terminatorx.cx/dist/
DISTNAME=   terminatorX-${PORTVERSION}

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

BUILD_DEPENDS=  ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS=    audiofile.0:${PORTSDIR}/audio/libaudiofile

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GNOME=  gnomehier libxml2 gtk20
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-lrdf --with-docdir="${PREFIX}/share/gnome"
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}"

MAN1=   terminatorX.1

.if !defined(WITHOUT_MPG123)
BUILD_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
.else
CONFIGURE_ARGS+=    --disable-mpg123
.endif

.if !defined(WITHOUT_SOX)
BUILD_DEPENDS+= sox:${PORTSDIR}/audio/sox
.else
CONFIGURE_ARGS+=    --disable-sox
.endif

.if !defined(WITHOUT_VORBIS)
BUILD_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools
LIB_DEPENDS+=   vorbis.2:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+=    --disable-vorbis
.endif

.if !defined(WITHOUT_MAD)
LIB_DEPENDS+=   mad.1:${PORTSDIR}/audio/mad
.else
CONFIGURE_ARGS+=    --disable-mad
.endif

pre-everything::
.if !defined(WITHOUT_MPG123)
    @${ECHO_MSG} "You can disable support for mpg123 by defining WITHOUT_MPG123."
.endif

.if !defined(WITHOUT_SOX)
    @${ECHO_MSG} "You can disable support for sox by defining WITHOUT_SOX."
.endif

.if !defined(WITHOUT_VORBIS)
    @${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
.endif

.if !defined(WITHOUT_MAD)
    @${ECHO_MSG} "You can disable support for mad by defining WITHOUT_MAD."
.endif

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/terminatorX ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/terminatorX.1 ${MANPREFIX}/man/man1
.for file in terminatorX-app.png terminatorX-mime.png
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
        ${PREFIX}/share/gnome/pixmaps
.endfor
.for file in terminatorX.mime terminatorX.keys
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
        ${PREFIX}/share/gnome/mime-info
.endfor
.for file in terminatorX.desktop
    ${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
        ${PREFIX}/share/gnome/apps/Multimedia
.endfor

.include <bsd.port.mk>