tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Qt5 fix for testing



Hi all,
the attached patch fixes Qt5 when building against modular Xorg. It
would be nice if someone else can make sure the PLIST change for
qtmultimedia is correct for systems other than NetBSD/current.

Joerg
Index: x11/qt5-qtbase/Makefile
==================================================================
--- x11/qt5-qtbase/Makefile
+++ x11/qt5-qtbase/Makefile
@@ -1,8 +1,9 @@
 # $NetBSD: Makefile,v 1.1 2013/12/13 14:38:35 ryoon Exp $
 
 PKGNAME=       qt5-qtbase-${QTVERSION}
+PKGREVISION=   1
 COMMENT=       C++ X GUI toolkit
 
 .include "../../x11/qt5-qtbase/Makefile.common"
 
 BUILD_DIRS+=           qtbase

Index: x11/qt5-qtbase/Makefile.common
==================================================================
--- x11/qt5-qtbase/Makefile.common
+++ x11/qt5-qtbase/Makefile.common
@@ -43,11 +43,11 @@
 BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:M*}
 
 HAS_CONFIGURE=         yes
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
-USE_TOOLS+=            gmake perl:build
+USE_TOOLS+=            gmake perl:build pkg-config
 
 CONFIG_SHELL=          ${PERL5}
 
 REPLACE_PERL+=         qtbase/bin/syncqt.pl
 REPLACE_PERL+=         
qtwebkit/Source/WebKit2/Scripts/generate-forwarding-headers.pl
@@ -182,11 +182,12 @@
 
 .if empty(PKGNAME:Mqt5-qtbase*) && empty(PKGNAME:Mqt5-sqlite3*) \
        && empty(PKGNAME:Mqt5-mysql*) && empty(PKGNAME:Mqt5-psql*) \
        && empty(PKGNAME:Mqt5-odbc*)
 post-configure:
-       cd ${WRKSRC}/${BUILD_DIRS} && ${QTPREFIX}/bin/qmake -o Makefile
+       cd ${WRKSRC}/${BUILD_DIRS} && \
+       ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} ${QTPREFIX}/bin/qmake -o 
Makefile
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"

Index: x11/qt5-qtbase/distinfo
==================================================================
--- x11/qt5-qtbase/distinfo
+++ x11/qt5-qtbase/distinfo
@@ -28,10 +28,17 @@
 SHA1 
(patch-qtbase_tests_auto_widgets_itemviews_qtreewidgetitemiterator_qtreewidgetitemiterator.pro)
 = ec68f41ccdc622eb5457ea7a3c37c1f54058b595
 SHA1 
(patch-qtdeclarative_examples_quick_customitems_painteditem_painteditem.pro) = 
4eb38df598145da3bb8272dfc4c34649d54cf9fe
 SHA1 (patch-qtdeclarative_src_qml_jsruntime_qv4alloca__p.h) = 
9a1a4bb03776e3e6331120933accd0cf46503533
 SHA1 (patch-qtdeclarative_src_qmldevtools_qmldevtools.pro) = 
6f0e65eb6c4a5bfd05a603d9cbfc6fdc22e46d3b
 SHA1 (patch-qtdeclarative_tests_auto_qml_qjsengine_tst__qjsengine.cpp) = 
b1cc5a386dd0f1b3651adb9babee87be84221998
+SHA1 (patch-qtmultimedia_src_gsttools_qgstreamervideoinputdevicecontrol.cpp) = 
9281d212f28dab5fece2f7a0cc9bddf0e58922dc
+SHA1 
(patch-qtmultimedia_src_plugins_gstreamer_audiodecoder_qgstreameraudiodecoderserviceplugin.cpp)
 = ac97ed7ec63e3cfc060ce7e90dfe7f053f9dd851
+SHA1 (patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabincontrol.cpp) 
= e2b0022da1f523324159efdcd29237f82380aed8
+SHA1 
(patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabinserviceplugin.cpp) 
= 4c5f0d3d5a0c6b3075232272abe00b467575194f
+SHA1 
(patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamercaptureserviceplugin.cpp)
 = 224a3097498d12284f10a9adb5a774356092f374
+SHA1 
(patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamerv4l2input.cpp) 
= 55aee0426b057461861605dadd4687932988bd78
+SHA1 
(patch-qtmultimedia_src_plugins_gstreamer_mediaplayer_qgstreamerplayerserviceplugin.cpp)
 = 729d69245a1ab6fe9b01a63673102685b39d7add
 SHA1 
(patch-qtquick1_tests_auto_declarative_qdeclarativeimage_tst__qdeclarativeimage.cpp)
 = b1efdea5596a76eeae37a70bd49bb7741a8b7c5f
 SHA1 (patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_config.h) = 
66dc22ee78727c84f1e82dc10bb342d514f8f9a0
 SHA1 
(patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_runtime_JSValue.h) = 
ee35790f58ec9cf4d1a370f5549d92b5a680f557
 SHA1 
(patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_wtf_Platform.h) = 
ea5d9249aaa6e00b2111e0ba5bd8337f2e0f345a
 SHA1 
(patch-qttools_src_assistant_3rdparty_clucene_src_CLucene_index_SegmentMerger.cpp)
 = 67c3422f65338ea29d03e45f51bb0f40274760d1

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_gsttools_qgstreamervideoinputdevicecontrol.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_gsttools_qgstreamervideoinputdevicecontrol.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_gsttools_qgstreamervideoinputdevicecontrol.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_gsttools_qgstreamervideoinputdevicecontrol.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- qtmultimedia/src/gsttools/qgstreamervideoinputdevicecontrol.cpp.orig       
2013-12-20 09:05:17.000000000 +0000
++++ qtmultimedia/src/gsttools/qgstreamervideoinputdevicecontrol.cpp
+@@ -44,7 +44,12 @@
+ #include <QtCore/QDir>
+ #include <QtCore/QDebug>
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -54,7 +59,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ 
+ QGstreamerVideoInputDeviceControl::QGstreamerVideoInputDeviceControl(QObject 
*parent)
+     :QVideoDeviceSelectorControl(parent), m_selectedDevice(0)

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_audiodecoder_qgstreameraudiodecoderserviceplugin.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_audiodecoder_qgstreameraudiodecoderserviceplugin.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_audiodecoder_qgstreameraudiodecoderserviceplugin.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_audiodecoder_qgstreameraudiodecoderserviceplugin.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- 
qtmultimedia/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderserviceplugin.cpp.orig
       2013-12-20 09:09:03.000000000 +0000
++++ 
qtmultimedia/src/plugins/gstreamer/audiodecoder/qgstreameraudiodecoderserviceplugin.cpp
+@@ -49,7 +49,12 @@
+ #include <QtCore/QDir>
+ #include <QtCore/QDebug>
+ 
++#if defined(__linux__)
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -59,7 +64,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ #include <gst/gst.h>
+ 
+ // #define QT_SUPPORTEDMIMETYPES_DEBUG

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabincontrol.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabincontrol.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabincontrol.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabincontrol.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- qtmultimedia/src/plugins/gstreamer/camerabin/camerabincontrol.cpp.orig     
2013-12-20 09:31:52.000000000 +0000
++++ qtmultimedia/src/plugins/gstreamer/camerabin/camerabincontrol.cpp
+@@ -50,7 +50,12 @@
+ #include <QtCore/qfile.h>
+ #include <QtCore/qmetaobject.h>
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -60,7 +65,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ 
+ QT_BEGIN_NAMESPACE
+ 

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabinserviceplugin.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabinserviceplugin.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabinserviceplugin.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_camerabin_camerabinserviceplugin.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- 
qtmultimedia/src/plugins/gstreamer/camerabin/camerabinserviceplugin.cpp.orig    
   2013-12-20 09:28:04.000000000 +0000
++++ qtmultimedia/src/plugins/gstreamer/camerabin/camerabinserviceplugin.cpp
+@@ -50,7 +50,12 @@
+ #include "camerabinservice.h"
+ #include <private/qgstutils_p.h>
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -60,7 +65,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ #include <gst/gst.h>
+ 
+ QT_BEGIN_NAMESPACE

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamercaptureserviceplugin.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamercaptureserviceplugin.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamercaptureserviceplugin.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamercaptureserviceplugin.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- 
qtmultimedia/src/plugins/gstreamer/mediacapture/qgstreamercaptureserviceplugin.cpp.orig
    2013-12-20 09:17:00.000000000 +0000
++++ 
qtmultimedia/src/plugins/gstreamer/mediacapture/qgstreamercaptureserviceplugin.cpp
+@@ -51,7 +51,12 @@
+ #include "qgstreamercaptureservice.h"
+ #include <private/qgstutils_p.h>
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -61,7 +66,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ #include <gst/gst.h>
+ 
+ QMediaService* QGstreamerCaptureServicePlugin::create(const QString &key)

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamerv4l2input.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamerv4l2input.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamerv4l2input.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediacapture_qgstreamerv4l2input.cpp
@@ -0,0 +1,45 @@
+$NetBSD$
+
+NetBSD doesn't have support for v4l2_frmsizeenum and related logic.
+Should be fixed properly.
+
+--- 
qtmultimedia/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp.orig    
   2013-12-20 09:12:19.000000000 +0000
++++ qtmultimedia/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp
+@@ -44,7 +44,12 @@
+ #include <QtCore/qdebug.h>
+ #include <QtCore/qfile.h>
+ 
++#if defined(__linux__)
++#include <linux/videodev2.h>
+ #include <linux/types.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -54,7 +59,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ 
+ QT_BEGIN_NAMESPACE
+ static inline uint qHash(const QSize& key) { return 
uint(key.width()*256+key.height()); }
+@@ -154,7 +158,7 @@ void QGstreamerV4L2Input::updateSupporte
+ 
+ 
+     //get the list of resolutions:
+-
++#if !defined(__NetBSD__)
+     foreach (quint32 format, supportedFormats) {
+         struct v4l2_frmsizeenum formatSize;
+         memset(&formatSize, 0, sizeof(formatSize));
+@@ -256,6 +260,7 @@ void QGstreamerV4L2Input::updateSupporte
+             m_ratesByResolution[s].unite(frameRates.toSet());
+         }
+     }
++#endif
+ 
+     f.close();
+ 

ADDED    
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediaplayer_qgstreamerplayerserviceplugin.cpp
Index: 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediaplayer_qgstreamerplayerserviceplugin.cpp
==================================================================
--- 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediaplayer_qgstreamerplayerserviceplugin.cpp
+++ 
x11/qt5-qtbase/patches/patch-qtmultimedia_src_plugins_gstreamer_mediaplayer_qgstreamerplayerserviceplugin.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- 
qtmultimedia/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugin.cpp.orig
      2013-12-20 09:21:00.000000000 +0000
++++ 
qtmultimedia/src/plugins/gstreamer/mediaplayer/qgstreamerplayerserviceplugin.cpp
+@@ -51,7 +51,12 @@
+ #include "qgstreamerplayerservice.h"
+ #include <private/qgstutils_p.h>
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#include <linux/videodev2.h>
++#elif defined(__NetBSD__)
++#include <sys/videoio.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/ioctl.h>
+ #include <sys/poll.h>
+@@ -61,7 +66,6 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/mman.h>
+-#include <linux/videodev2.h>
+ #include <gst/gst.h>
+ 
+ 

Index: x11/qt5-qtmultimedia/PLIST
==================================================================
--- x11/qt5-qtmultimedia/PLIST
+++ x11/qt5-qtmultimedia/PLIST
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2013/12/15 09:42:44 ryoon Exp $
+@comment $NetBSD$
 lib/pkgconfig/Qt5Multimedia.pc
 lib/pkgconfig/Qt5MultimediaQuick_p.pc
 lib/pkgconfig/Qt5MultimediaWidgets.pc
 
qt5/include/QtMultimedia/${PKGVERSION}/QtMultimedia/private/gstvideoconnector_p.h
 
qt5/include/QtMultimedia/${PKGVERSION}/QtMultimedia/private/playlistfileparser_p.h
@@ -251,22 +251,27 @@
 qt5/lib/libQt5Multimedia.prl
 qt5/lib/libQt5MultimediaQuick_p.la
 qt5/lib/libQt5MultimediaQuick_p.prl
 qt5/lib/libQt5MultimediaWidgets.la
 qt5/lib/libQt5MultimediaWidgets.prl
+qt5/lib/libqgsttools_p.la
+qt5/lib/libqgsttools_p.prl
 qt5/lib/pkgconfig/Qt5Multimedia.pc
 qt5/lib/pkgconfig/Qt5MultimediaQuick_p.pc
 qt5/lib/pkgconfig/Qt5MultimediaWidgets.pc
 qt5/mkspecs/modules/qt_lib_multimedia.pri
 qt5/mkspecs/modules/qt_lib_multimedia_private.pri
 qt5/mkspecs/modules/qt_lib_multimediawidgets.pri
 qt5/mkspecs/modules/qt_lib_multimediawidgets_private.pri
 qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri
-qt5/plugins/mediaservice/libqtmedia_audioengine.la
+qt5/plugins/mediaservice/libgstaudiodecoder.la
+qt5/plugins/mediaservice/libgstcamerabin.la
+qt5/plugins/mediaservice/libgstmediacapture.la
+qt5/plugins/mediaservice/libgstmediaplayer.la
 qt5/plugins/playlistformats/libqtmultimedia_m3u.la
 qt5/qml/QtAudioEngine/libdeclarative_audioengine.la
 qt5/qml/QtAudioEngine/plugins.qmltypes
 qt5/qml/QtAudioEngine/qmldir
 qt5/qml/QtMultimedia/Video.qml
 qt5/qml/QtMultimedia/libdeclarative_multimedia.la
 qt5/qml/QtMultimedia/plugins.qmltypes
 qt5/qml/QtMultimedia/qmldir



Home | Main Index | Thread Index | Old Index