[kde-freebsd] rfc: kde4 and qt4 phonons
Martin Wilke
miwi at FreeBSD.org
Thu Jun 5 12:26:43 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Jun 05, 2008 at 10:06:44AM +0400, M. Yu. Brazhnikov wrote:
> Hello dear kde4/qt4 users,
>
> As you know Qt-4.4.0 (and higher) provides multimedia API based on KDE4
> Phonon. This means that after installing Qt4 and kdelibs4 there are two
> phonons libraries in a system (currently libphonon.so.4.1.0 from qt4 and
> libphonon-qt4.so.4.2.0 from kde4), which could confuse (and really do this)
> phonon consuming apps.
>
> So, we have to decide whether we should mark qt4 and kde4 as conflicting ;)
> or rename one of the phonons. I suggest to rename a phonon from Qt4 to
> phonon-qt4. The patches vs. area51 are attached.
>
> Please note, you have to rebuild qmake4 firstly!
Hi Max,
I think for the moment this is the wrong way, Qt 4.4 come with phonon 4.1
but we need phonon 4.2 from kdelibs. I think the best is we mark both as
conflict.
See also the discussion on kde-devel:
http://kde.markmail.org/search/?q=phonon#query:phonon%20order%3Adate-backward+page:1+mid:akphynnzs36jkjtp+state:results
- - Martin
>
> Sincerely,
> Max
> Index: Makefile
> ===================================================================
> RCS file: /home/kde-freebsd/area51/devel/qmake4/Makefile,v
> retrieving revision 1.22
> diff -u -r1.22 Makefile
> --- Makefile 14 Sep 2007 17:21:19 -0000 1.22
> +++ Makefile 29 May 2008 21:00:19 -0000
> @@ -62,6 +62,8 @@
> ${WRKSRC}/../mkspecs/freebsd-g++/qmake.conf \
> ${WRKSRC}/../mkspecs/freebsd-g++34/qmake.conf
> @${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
> + ${REINPLACE_CMD} -e 's|qlib = phonon|qlib = phonon-qt4|' \
> + ${WRKDIR}/${DISTNAME}/mkspecs/features/qt.prf
>
> do-configure:
> ${SED} -e 's|/usr/local|${PREFIX}|g' \
> Index: Makefile
> ===================================================================
> RCS file: /home/kde-freebsd/area51/multimedia/qt4-phonon-gst/Makefile,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile
> --- Makefile 13 May 2008 06:14:11 -0000 1.1
> +++ Makefile 29 May 2008 21:12:02 -0000
> @@ -46,6 +46,10 @@
>
> EXTRA_INCL!= pkg-config --cflags-only-I gstreamer-0.10 | sed -e 's|-I||g'
>
> +port-patch:
> + ${REINPLACE_CMD} -e 's|qlib = phonon|qlib = phonon-qt4|' \
> + ${WRKDIR}/${DISTNAME}/mkspecs/features/qt.prf
> +
> pre-configure:
> ${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
> #${REINPLACE_CMD} -e 's|target.path.*|target.path=${PREFIX}/lib|g' \
> Index: Makefile
> ===================================================================
> RCS file: /home/kde-freebsd/area51/multimedia/qt4-phonon/Makefile,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile
> --- Makefile 13 May 2008 06:14:11 -0000 1.1
> +++ Makefile 29 May 2008 21:10:02 -0000
> @@ -42,13 +42,18 @@
> WRKSRC= ${WRKDIR}/${DISTNAME}/src/${PORTNAME}
> CONFIGURE_WRKSRC=${WRKSRC}/../../
>
> +post-patch:
> + ${REINPLACE_CMD} -e '/^TARGET/s|phonon|phonon-qt4|' ${WRKSRC}/${PORTNAME}.pro
> + ${REINPLACE_CMD} -e '/^HEADERS_PRI/s|$$$$TARGET|phonon|' ${WRKSRC}/../qbase.pri
> +
> +
> pre-configure:
> ${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
> - ${REINPLACE_CMD} -e 's|target.path.*|target.path=${PREFIX}/lib|g' \
> + ${MKDIR} ${WRKSRC}/../../mkspecs
> + ${REINPLACE_CMD} -e 's|target.path.*|target.path=${PREFIX}/lib|g' \
> -e 's|flat_headers.path.*|flat_headers.path=${PREFIX}/include/Qt|g' \
> -e 's|targ_headers.path.*|targ_headers.path=${PREFIX}/include/$$$$TARGET|g' \
> ${WRKSRC}/${PORTNAME}.pro ${WRKSRC}/../qt_install.pri
> - ${MKDIR} ${WRKSRC}/../../mkspecs
> ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
> ${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/../../bin/moc
>
> @@ -61,7 +66,7 @@
> -E -e 's|(.*location=).*moc|\1${PREFIX}/bin/moc-qt4|g' \
> -E -e 's|(.*location=).*uic|\1${PREFIX}/bin/uic-qt4|g' \
> -E -e 's|(.*Cflags:.*)-I${LOCALBASE}/include |\1|g' \
> - ${WRKSRC}/../../lib/pkgconfig/*Qt*
> + ${WRKSRC}/../../lib/pkgconfig/*.pc
>
> post-install:
> ${MKDIR} ${PREFIX}/lib/qt4/plugins/phonon_backend
> Index: pkg-plist
> ===================================================================
> RCS file: /home/kde-freebsd/area51/multimedia/qt4-phonon/pkg-plist,v
> retrieving revision 1.1
> diff -u -r1.1 pkg-plist
> --- pkg-plist 13 May 2008 06:14:11 -0000 1.1
> +++ pkg-plist 29 May 2008 21:10:02 -0000
> @@ -31,47 +31,47 @@
> include/Qt/volumefadereffect.h
> include/Qt/volumefaderinterface.h
> include/Qt/volumeslider.h
> -include/phonon/abstractaudiooutput.h
> -include/phonon/abstractmediastream.h
> -include/phonon/abstractvideooutput.h
> -include/phonon/addoninterface.h
> -include/phonon/audiooutput.h
> -include/phonon/audiooutputinterface.h
> -include/phonon/backendcapabilities.h
> -include/phonon/backendinterface.h
> -include/phonon/effect.h
> -include/phonon/effectinterface.h
> -include/phonon/effectparameter.h
> -include/phonon/effectwidget.h
> -include/phonon/mediacontroller.h
> -include/phonon/medianode.h
> -include/phonon/mediaobject.h
> -include/phonon/mediaobjectinterface.h
> -include/phonon/mediasource.h
> -include/phonon/objectdescription.h
> -include/phonon/objectdescriptionmodel.h
> -include/phonon/path.h
> -include/phonon/phonon
> -include/phonon/phonon_export.h
> -include/phonon/phonondefs.h
> -include/phonon/phononnamespace.h
> -include/phonon/platformplugin.h
> -include/phonon/seekslider.h
> -include/phonon/streaminterface.h
> -include/phonon/videoplayer.h
> -include/phonon/videowidget.h
> -include/phonon/videowidgetinterface.h
> -include/phonon/volumefadereffect.h
> -include/phonon/volumefaderinterface.h
> -include/phonon/volumeslider.h
> -lib/libphonon.la
> -lib/libphonon.prl
> -lib/libphonon.so
> -lib/libphonon.so.4
> -lib/libphonon.so.4.1
> -lib/libphonon.so.4.1.0
> -%%DEBUG%%lib/libphonon.so.4.1.0.debug
> -libdata/pkgconfig/phonon.pc
> - at dirrm include/phonon
> +include/phonon-qt4/abstractaudiooutput.h
> +include/phonon-qt4/abstractmediastream.h
> +include/phonon-qt4/abstractvideooutput.h
> +include/phonon-qt4/addoninterface.h
> +include/phonon-qt4/audiooutput.h
> +include/phonon-qt4/audiooutputinterface.h
> +include/phonon-qt4/backendcapabilities.h
> +include/phonon-qt4/backendinterface.h
> +include/phonon-qt4/effect.h
> +include/phonon-qt4/effectinterface.h
> +include/phonon-qt4/effectparameter.h
> +include/phonon-qt4/effectwidget.h
> +include/phonon-qt4/mediacontroller.h
> +include/phonon-qt4/medianode.h
> +include/phonon-qt4/mediaobject.h
> +include/phonon-qt4/mediaobjectinterface.h
> +include/phonon-qt4/mediasource.h
> +include/phonon-qt4/objectdescription.h
> +include/phonon-qt4/objectdescriptionmodel.h
> +include/phonon-qt4/path.h
> +include/phonon-qt4/phonon
> +include/phonon-qt4/phonon_export.h
> +include/phonon-qt4/phonondefs.h
> +include/phonon-qt4/phononnamespace.h
> +include/phonon-qt4/platformplugin.h
> +include/phonon-qt4/seekslider.h
> +include/phonon-qt4/streaminterface.h
> +include/phonon-qt4/videoplayer.h
> +include/phonon-qt4/videowidget.h
> +include/phonon-qt4/videowidgetinterface.h
> +include/phonon-qt4/volumefadereffect.h
> +include/phonon-qt4/volumefaderinterface.h
> +include/phonon-qt4/volumeslider.h
> +lib/libphonon-qt4.la
> +lib/libphonon-qt4.prl
> +lib/libphonon-qt4.so
> +lib/libphonon-qt4.so.4
> +lib/libphonon-qt4.so.4.1
> +lib/libphonon-qt4.so.4.1.0
> +%%DEBUG%%lib/libphonon-qt4.so.4.1.0.debug
> +libdata/pkgconfig/phonon-qt4.pc
> + at dirrm include/phonon-qt4
> @dirrmtry include/Qt
> @dirrmtry lib/qt4/plugins/phonon_backend
> Index: Makefile
> ===================================================================
> RCS file: /home/kde-freebsd/area51/misc/qt4-qtconfig/Makefile,v
> retrieving revision 1.22
> diff -u -r1.22 Makefile
> --- Makefile 13 May 2008 09:35:24 -0000 1.22
> +++ Makefile 29 May 2008 21:02:54 -0000
> @@ -53,7 +53,7 @@
> ${WRKSRC}/${PORTNAME}.pro
> ${ECHO_CMD} "INCLUDEPATH+=${EXTRA_INCL}" >> ${WRKSRC}/${PORTNAME}.pro
> ${ECHO_CMD} "LIBS+=-lgstreamer-0.10" >> ${WRKSRC}/${PORTNAME}.pro
> - ${ECHO_CMD} "LIBS+=-lphonon" >> ${WRKSRC}/${PORTNAME}.pro
> + ${ECHO_CMD} "LIBS+=-lphonon-qt4" >> ${WRKSRC}/${PORTNAME}.pro
> ${MKDIR} ${WRKSRC}/../../mkspecs
> ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
> ${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/../../bin/moc
> _______________________________________________
> kde-freebsd mailing list
> kde-freebsd at kde.org
> https://mail.kde.org/mailman/listinfo/kde-freebsd
- --
+-----------------------+-------------------------------+
| PGP : 0x05682353 | Jabber : miwi(at)BSDCrew.de |
| ICQ : 169139903 | Mail : miwi(at)FreeBSD.org |
+-----------------------+-------------------------------+
| Mess with the Best, Die like the Rest! |
+-----------------------+-------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAkhHv2IACgkQFwpycAVoI1Oo5ACgqbkynI/Blh73+uCeA/Ae1X0d
RO8AnAh9IA9RHJkLhAIWqZRRFuXXQMiK
=sgg8
-----END PGP SIGNATURE-----
More information about the kde-freebsd
mailing list