2010-05-11 11:47:27 +02:00
|
|
|
# New ports collection Makefile for: phonon
|
|
|
|
# Date created: 2008-01-30
|
|
|
|
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= phonon
|
2011-04-07 13:48:18 +02:00
|
|
|
PORTVERSION= 4.5.0
|
2010-05-11 11:47:27 +02:00
|
|
|
CATEGORIES= multimedia kde ipv6
|
2010-06-09 21:39:52 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2011-03-25 11:14:53 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PHONON_BRANCH}/${PORTNAME}/${PORTVERSION}/src/
|
2010-05-11 11:47:27 +02:00
|
|
|
DIST_SUBDIR= KDE
|
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Multimedia framework for KDE4
|
|
|
|
|
2011-03-25 11:14:53 +01:00
|
|
|
CONFLICTS= qt4-phonon-4*
|
2010-05-11 11:47:27 +02:00
|
|
|
|
|
|
|
PHONON_BRANCH= stable
|
|
|
|
USE_BZIP2= yes
|
2010-05-21 22:54:47 +02:00
|
|
|
USE_CMAKE= yes
|
2010-05-11 11:47:27 +02:00
|
|
|
USE_KDE4= kdehier automoc4 kdeprefix
|
|
|
|
USE_QT_VER= 4
|
2011-04-07 13:48:18 +02:00
|
|
|
QT_COMPONENTS= dbus gui qtestlib \
|
2010-05-11 11:47:27 +02:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2010-05-21 22:54:47 +02:00
|
|
|
USE_LDCONFIG= yes
|
2010-05-11 11:47:27 +02:00
|
|
|
|
2011-04-07 13:48:18 +02:00
|
|
|
OPTIONS= PULSEAUDIO "Support playback via PulseAudio" off
|
|
|
|
# DESIGNER "Install Qt Designer plugin" off \
|
|
|
|
# ZEITGEIST "Log playback activity via Zeitgeist" off
|
2010-05-11 11:47:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-04-07 13:48:18 +02:00
|
|
|
# qt4-designer depends on qt4-webkit, hence on phonon. Disable this
|
|
|
|
# option to avoid a circular dependency.
|
|
|
|
.undef WITH_DESIGNER
|
|
|
|
.ifdef(WITH_DESIGNER)
|
|
|
|
QT_COMPONENTS+= designer
|
|
|
|
CMAKE_ARGS+= -DPHONON_BUILD_DESIGNER_PLUGIN:BOOL=ON
|
|
|
|
PLIST_SUB+= DESIGNER=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DPHONON_BUILD_DESIGNER_PLUGIN:BOOL=OFF
|
|
|
|
PLIST_SUB+= DESIGNER="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITH_PULSEAUDIO)
|
2010-05-11 11:47:27 +02:00
|
|
|
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
USE_GNOME+= glib20
|
2011-04-07 13:48:18 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=ON
|
2010-05-11 11:47:27 +02:00
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2011-04-07 13:48:18 +02:00
|
|
|
.ifdef(WITH_ZEITGEIST)
|
|
|
|
CMAKE_ARGS+= -DWITH_QtZeitgeist:BOOL=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWITH_QtZeitgeist:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2010-05-11 11:47:27 +02:00
|
|
|
PLIST_SUB+= QT_PREFIX=${QT_PREFIX}
|
|
|
|
|
2011-04-07 13:48:18 +02:00
|
|
|
.ifdef(WITH_QT_PHONON)
|
|
|
|
IGNORE= conflicts with Qt 4 phonon. Please, deinstall qt4-phonon and unset WITH_QT_PHONON to continue
|
2010-05-11 11:47:27 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e '/phonon.pc/s|pkgconfig|../libdata/pkgconfig|' \
|
2011-04-07 13:48:18 +02:00
|
|
|
-e 's|{QT_INCLUDES}|{QT_INCLUDES} ${LOCALBASE}/include|'\
|
2010-05-11 11:47:27 +02:00
|
|
|
${PATCH_WRKSRC}/CMakeLists.txt
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${LN} -sf ${PREFIX}/include/phonon ${QT_INCDIR}/phonon
|
|
|
|
${LN} -sf ${PREFIX}/include/phonon ${QT_INCDIR}/Phonon
|
|
|
|
${LN} -sf ${PREFIX}/include/KDE/Phonon ${PREFIX}/include/phonon/Phonon
|
2011-04-07 13:48:18 +02:00
|
|
|
.for lib in phonon phononexperimental
|
|
|
|
${LN} -sf ${PREFIX}/lib/lib${lib}.so.4.5.0 ${QT_LIBDIR}/lib${lib}.so
|
|
|
|
${LN} -sf ${PREFIX}/lib/lib${lib}.so.4.5.0 ${QT_LIBDIR}/lib${lib}.so.4
|
|
|
|
.endfor
|
2010-05-11 11:47:27 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|