mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
bacf71425a
Since 4.8.0 [1], Qt itself does not automatically include GLU's
headers and libraries with its OpenGL module, so applications which
relied on Qt to get these need to be adjusted.
PORTREVISION bumped since we now explicitly depend on GLU via
USE_GL=glu.
[1] e7eed096a0
101 lines
2.5 KiB
Makefile
101 lines
2.5 KiB
Makefile
# 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
|
|
DISTVERSIONSUFFIX= -src
|
|
PORTREVISION= 1
|
|
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= 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_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 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 \
|
|
"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}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|