aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mixxx/Makefile
blob: 81c9172743f783a8eb1cd1230fc6bce656a4ad5c (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
99
100
# New ports collection makefile for:    Mixxx
# Date created:         25 Jun 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=   mixxx
PORTVERSION=    1.10.0
PORTREVISION=   2
DISTVERSIONSUFFIX=  -src
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   http://mixxx.rasant-records.de/downloads/%SUBDIR%/ \
        http://moo.glines.org/mixxx/%SUBDIR%/ \
        http://web.mit.edu/rryan/www/downloads.mixxx.org/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A DJ mixing application

LICENSE=    GPLv2 # (or later)

LIB_DEPENDS=    FLAC.10:${PORTSDIR}/audio/flac \
        id3tag.0:${PORTSDIR}/audio/libid3tag \
        mad.2:${PORTSDIR}/audio/libmad \
        sndfile.1:${PORTSDIR}/audio/libsndfile \
        vorbis.4:${PORTSDIR}/audio/libvorbis \
        portaudio.2:${PORTSDIR}/audio/portaudio2 \
        tag.1:${PORTSDIR}/audio/taglib

OPTIONS_DEFINE= LAME FAAD WAVPACK SHOUTCAST DOCS
SHOUTCAST_DESC= Enable Shoutcast Broadcasting
WAVPACK_DESC=   Enable WavPack audio support plugin

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_GL=     glu
USE_QT_VER= 4
QT_COMPONENTS=  corelib gui network opengl script sql svg webkit xml \
        xmlpatterns linguist_build moc_build qmake_build rcc_build \
        uic_build
USE_SCONS=  yes
SCONS_BUILDENV= ${SCONS_ENV}
SCONS_ARGS= qtdir="${QT_PREFIX}" optimize=0
MAKE_JOBS_SAFE= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLAME}
RUN_DEPENDS+=   lame:${PORTSDIR}/audio/lame
.endif

.if ${PORT_OPTIONS:MSHOUTCAST}
LIB_DEPENDS+=   shout.5:${PORTSDIR}/audio/libshout2
SCONS_ARGS+=    shoutcast=1
.else
SCONS_ARGS+=    shoutcast=0
.endif

.if ${PORT_OPTIONS:MFAAD}
LIB_DEPENDS+=   faad.2:${PORTSDIR}/audio/faad \
        mp4v2.10:${PORTSDIR}/multimedia/mp4v2
SCONS_ARGS+=    faad=1
PLIST_SUB+= FAAD=""
.else
SCONS_ARGS+=    faad=0
PLIST_SUB+= FAAD="@comment "
.endif

.if ${PORT_OPTIONS:MWAVPACK}
LIB_DEPENDS+=   wavpack.2:${PORTSDIR}/audio/wavpack
SCONS_ARGS+=    wv=1
PLIST_SUB+= WAVPACK=""
.else
SCONS_ARGS+=    wv=0
PLIST_SUB+= WAVPACK="@comment "
.endif

post-patch:
.for FILE in build/depends.py src/soundsourceproxy.cpp src/recording/encodermp3.cpp
    @${REINPLACE_CMD} -e \
        "s|%%LOCALBASE%%|${LOCALBASE}|g ; \
         s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${FILE}
.endfor
    @${REINPLACE_CMD} -e \
        "/('install', docs)/d" ${WRKSRC}/src/SConscript
    @${REINPLACE_CMD} -e \
        "s|^Exec=.*|Exec=mixxx|" ${WRKSRC}/src/mixxx.desktop

post-install:
    @${STRIP_CMD} ${PREFIX}/bin/mixxx
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for FILE in Mixxx-Manual.pdf README
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
val&id=4cc332868625be7a92424a3f7911e05b56747e9a'>If /var/db/zoneinfo exists, use the file to determine timezone rather thanjkim2013-12-112-11/+17 * Add multiple security patches and improvements from IcedTea6.jkim2013-12-05104-2/+41263 * - Add throw() to all user-defined operator new()s within HotSpot becausejkim2013-11-092-19/+779 * - Do not crash when unsupported options are specified. [1]jkim2013-11-062-62/+82 * - Turn off UseMembar by default. This workaround is not necessary any more.jkim2013-10-262-8/+108