]> git.openpandora.org Git - openembedded.git/commitdiff
packages/webkit: Build and package naming fixes (when using debian renaming)
authorHolger Freyther <zecke@selfish.org>
Thu, 25 Oct 2007 22:45:56 +0000 (22:45 +0000)
committerHolger Freyther <zecke@selfish.org>
Thu, 25 Oct 2007 22:45:56 +0000 (22:45 +0000)
    We do not want the package to be named libwebkitgtk-launcher but want to
    keep the webkit-gtklauncher names. The same applies to Qt and Qtopia.
    Use my Gtk+ API defines for the WebKit/Qt port as well.

packages/webkit/files/qt-api-changes.diff [new file with mode: 0644]
packages/webkit/webkit-gtk_svn.bb
packages/webkit/webkit-qt.inc
packages/webkit/webkit-qt_svn.bb
packages/webkit/webkit-qtopia_svn.bb
packages/webkit/webkit.inc

diff --git a/packages/webkit/files/qt-api-changes.diff b/packages/webkit/files/qt-api-changes.diff
new file mode 100644 (file)
index 0000000..16f448b
--- /dev/null
@@ -0,0 +1,27 @@
+Index: WebKit/qt/Api/qwebkitglobal.h
+===================================================================
+--- WebKit/qt/Api/qwebkitglobal.h      (revision 26079)
++++ WebKit/qt/Api/qwebkitglobal.h      (working copy)
+@@ -25,15 +25,13 @@
+ #include <qglobal.h>
+ 
+ #if defined(Q_OS_WIN)
+-#    if defined(BUILD_WEBKIT)
+-#        define QWEBKIT_EXPORT Q_DECL_EXPORT
+-#    else
+-#        define QWEBKIT_EXPORT Q_DECL_IMPORT
+-#    endif
++    #ifdef BUILD_WEBKIT
++        #define QWEBKIT_EXPORT __declspec(dllexport)
++    #else
++        #define QWEBKIT_EXPORT __declspec(dllimport)
++    #endif
++#else
++    #define QWEBKIT_EXPORT __attribute__((visibility("default")))
+ #endif
+ 
+-#if !defined(QWEBKIT_EXPORT)
+-#define QWEBKIT_EXPORT Q_DECL_EXPORT
+-#endif
+-
+ #endif // QWEBKITGLOBAL_H
index 4722999949fffb12e91cebd7b87e8566f39a68a7..262c6820dba0659d355712a015851a7c10806dbb 100644 (file)
@@ -1,14 +1,16 @@
 DEPENDS = "curl icu libxml2 cairo libxslt libidn gnutls gtk+"
 
+
 WEBKIT_PORT = "gtk-port"
 WEBKIT_EXTRA_OPTIONS = "CONFIG-=qt"
-PACKAGES =+ "webkit-gtklauncher-dbg webkit-gtklauncher"
 
 FILES_webkit-gtklauncher = "${bindir}/GtkLauncher"
 FILES_webkit-gtklauncher-dbg = "${bindir}/.debug/GtkLauncher"
 
 require webkit.inc
 
+PR = "r3"
+
 do_install() {
        install -d ${D}${bindir}
        install -d ${D}${libdir}
index cb9c1f7943f96e4928656cdedbcb5998e865aacc..626b691e50b6492077a0bc1e5bc3ba362c73191f 100644 (file)
@@ -1,12 +1,15 @@
 WEBKIT_PORT = "qt"
 WEBKIT_EXTRA_OPTIONS = ""
-PACKAGES =+ "${PN}launcher-dbg ${PN}launcher"
 
 FILES_${PN}launcher = "${bindir}/QtLauncher"
 FILES_${PN}launcher-dbg = "${bindir}/.debug/*"
 
+RDEPENDS += "openssl"
+
 require webkit.inc
 
+SRC_URI += " file://qt-api-changes.diff;patch=0;pnum=0 "
+
 do_install() {
        install -d ${D}${bindir}
        install -d ${D}${libdir}
@@ -16,5 +19,12 @@ do_install() {
        cd ${S}/WebKitBuilds/Debug
        PWD=`pwd` ${WEBKIT_QMAKE} WEBKIT_INC_DIR=${D}${prefix}/include WEBKIT_LIB_DIR=${D}${libdir} $PWD/../../WebKit.pro
        oe_runmake install
+
+    oe_libinstall -C ${S}/WebKitBuilds/Debug/lib libQtWebKit ${D}${libdir}
 }
 
+# disabled as Qt and Qtopia will not like each other...
+#do_stage_prepend() {
+#    oe_libinstall -C ${S}/WebKitBuilds/Debug/lib libQtWebKit ${D}${libdir}
+#}
+
index e681e7a41b237df1d8307c059d059ca9c9f4b59a..fb525cbd3535b1de3210cf0c3416e4c3664361cd 100644 (file)
@@ -1,4 +1,4 @@
 require webkit-qt.inc
 inherit qt4x11
 
-PR = "r1"
+PR = "r5"
index 706f0f1cd13f1309f4342ce37f1b072070a218ba..6ea22b72caa006ada3ee2f60e0ed4b3e200c3987 100644 (file)
@@ -1,4 +1,6 @@
 require webkit-qt.inc
 inherit qtopia4core
 
-PR = "r1"
+WEBKIT_EXTRA_OPTIONS += "QT+=xml QT+=network"
+
+PR = "r5"
index a80813f072e3a8ff47784e11de1c543a7be9c602..a04b565973c485118305e8f46d0cf99a92cce649 100644 (file)
@@ -1,9 +1,10 @@
 DEPENDS += "flex-native gperf-native perl-native sqlite3"
 SRCREV_FORMAT = "webcore-rwebkit"
 
+PACKAGES =+ "${PN}launcher-dbg ${PN}launcher"
+
 # Yes, this is wrong...
 PV = "0.1+svnr${SRCREV}"
-PR = "r1"
 
 inherit qmake2 pkgconfig
 
@@ -46,3 +47,11 @@ do_stage() {
        oe_runmake install
 }
 
+python populate_packages_prepend() {
+    print "foooo"
+    print bb.data.getVar("DEBIAN_NAMES", d, True)
+    if bb.data.getVar("DEBIAN_NAMES", d, True):
+        base = bb.data.expand("${PN}launcher", d, True)
+        bb.data.setVar("PKG_%s" % base, base, d)
+        bb.data.setVar("PKG_%s-dbg" % base, "%s-dbg" % base, d)
+}