aboutsummaryrefslogtreecommitdiff
path: root/audio/mixxx/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-02-20 00:06:48 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-02-20 00:06:48 +0000
commit4995e4a28e618bdd78a6685ce451bc264b10e802 (patch)
tree0cce98c6171c6aa93aae141b41698284fa185a9b /audio/mixxx/Makefile
parent2bb12a9788ad657a250b61bf22220396e00ce4c1 (diff)
downloadports-4995e4a28e618bdd78a6685ce451bc264b10e802.tar.gz
ports-4995e4a28e618bdd78a6685ce451bc264b10e802.zip
- Update to version 1.10.0
PR: 165004 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=291888
Diffstat (limited to 'audio/mixxx/Makefile')
-rw-r--r--audio/mixxx/Makefile80
1 files changed, 61 insertions, 19 deletions
diff --git a/audio/mixxx/Makefile b/audio/mixxx/Makefile
index 63c923a4624b..0a483a8bf9b2 100644
--- a/audio/mixxx/Makefile
+++ b/audio/mixxx/Makefile
@@ -6,50 +6,92 @@
#
PORTNAME= mixxx
-PORTVERSION= 1.7.0
-PORTREVISION= 2
+PORTVERSION= 1.10.0
+DISTVERSIONSUFFIX= -src
CATEGORIES= audio
-MASTER_SITES= http://downloads.mixxx.org/%SUBDIR%/
+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}
-DISTNAME= ${PORTNAME}-${PORTVERSION}-src
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
+ portaudio.2:${PORTSDIR}/audio/portaudio2 \
+ tag.1:${PORTSDIR}/audio/taglib
+
+OPTIONS= LAME "LAME MP3 audio encoder support" off \
+ SHOUTCAST "Shoutcast Broadcasting" off \
+ FAAD "FAAD AAC audio decoder plugin" off \
+ WAVPACK "WavPack audio support plugin" off
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_QT_VER= 4
-QT_COMPONENTS= corelib gui opengl qt3support script svg xml \
- linguist_build moc_build qmake_build uic_build \
- moc_build rcc_build
+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}"
+SCONS_ARGS= qtdir="${QT_PREFIX}" optimize=0
+MAKE_JOBS_SAFE= yes
-CCFLAGS= `pkg-config --cflags portaudio-2.0 \
- QtCore QtGui QtOpenGL Qt3Support QtScript QtSvg QtXml`
-LINKFLAGS= -L${LOCALBASE}/lib/portaudio2 -L${QT_LIBDIR} \
- -Wl,-rpath,${LOCALBASE}/lib/portaudio2 -Wl,-rpath,${QT_LIBDIR} \
- ${PTHREAD_LIBS}
+.include <bsd.port.options.mk>
+
+.if defined(WITH_LAME)
+RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
+.endif
+
+.if defined(WITH_SHOUTCAST)
+LIB_DEPENDS+= shout.5:${PORTSDIR}/audio/libshout2
+SCONS_ARGS+= shoutcast=1
+.else
+SCONS_ARGS+= shoutcast=0
+.endif
+
+.if defined(WITH_FAAD)
+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 defined(WITH_WAVPACK)
+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 \
- '/pthread/d ; \
- /X11R6/d ; \
- /-pipe -Wall -W -g/d' ${WRKSRC}/src/SConscript
+ "s|^Exec=.*|Exec=mixxx|" ${WRKSRC}/src/mixxx.desktop
post-install:
+ @${STRIP_CMD} ${PREFIX}/bin/mixxx
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for file in Mixxx-Manual.pdf README
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.for FILE in Mixxx-Manual.pdf README
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif