[oe-commits] org.oe.dev packages/webkit: Build and package naming fixes (when using debian renaming)

freyther commit openembedded-commits at lists.openembedded.org
Thu Oct 25 23:03:39 UTC 2007


packages/webkit: Build and package naming fixes (when using debian renaming)
    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.

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 65bea2472f8d53c3d2f8f8e784ede9b9a84f0af8
ViewMTN: http://monotone.openembedded.org/revision/info/65bea2472f8d53c3d2f8f8e784ede9b9a84f0af8
Files:
1
packages/webkit/files/qt-api-changes.diff
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
Diffs:

#
# mt diff -r0de8cf956bd98794bb542dfa7730694b74233a12 -r65bea2472f8d53c3d2f8f8e784ede9b9a84f0af8
#
# 
# 
# add_file "packages/webkit/files/qt-api-changes.diff"
#  content [dc7ee944ed723b1b75bc409eab71659312add2ba]
# 
# patch "packages/webkit/webkit-gtk_svn.bb"
#  from [84963a3b5a31a26c3902cc1010efa9df33f746a5]
#    to [cda8f2a66ffa21e54d42abd299bfb7e2162a58a5]
# 
# patch "packages/webkit/webkit-qt.inc"
#  from [1e75c2b1f67c6626edb8f9754c73d92cd0152d1a]
#    to [cf87668b6c6100c92f3789cfdab99d05b6699d3d]
# 
# patch "packages/webkit/webkit-qt_svn.bb"
#  from [cf3e31f4d11e142196490cbd0faf5942d102bc94]
#    to [98285c7285a74018daa1107a3757b71a0a8767bd]
# 
# patch "packages/webkit/webkit-qtopia_svn.bb"
#  from [03fe45bc1271170d30d12a7d3a2b54d0955974f3]
#    to [ccce4fbb6f4178fbe8f5c34728cd43ed24d10433]
# 
# patch "packages/webkit/webkit.inc"
#  from [79c94f59fcfca65105a65eb52f4bf24d076f2d1f]
#    to [7592351db1bfac2d0bb7c3317216d74aa14bbf0c]
# 
============================================================
--- packages/webkit/files/qt-api-changes.diff	dc7ee944ed723b1b75bc409eab71659312add2ba
+++ packages/webkit/files/qt-api-changes.diff	dc7ee944ed723b1b75bc409eab71659312add2ba
@@ -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
============================================================
--- packages/webkit/webkit-gtk_svn.bb	84963a3b5a31a26c3902cc1010efa9df33f746a5
+++ packages/webkit/webkit-gtk_svn.bb	cda8f2a66ffa21e54d42abd299bfb7e2162a58a5
@@ -1,14 +1,16 @@ DEPENDS = "curl icu libxml2 cairo libxsl
 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}
============================================================
--- packages/webkit/webkit-qt.inc	1e75c2b1f67c6626edb8f9754c73d92cd0152d1a
+++ packages/webkit/webkit-qt.inc	cf87668b6c6100c92f3789cfdab99d05b6699d3d
@@ -1,12 +1,15 @@ WEBKIT_EXTRA_OPTIONS = ""
 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}
+#}
+
============================================================
--- packages/webkit/webkit-qt_svn.bb	cf3e31f4d11e142196490cbd0faf5942d102bc94
+++ packages/webkit/webkit-qt_svn.bb	98285c7285a74018daa1107a3757b71a0a8767bd
@@ -1,4 +1,4 @@ inherit qt4x11
 require webkit-qt.inc
 inherit qt4x11
 
+PR = "r5"
-PR = "r1"
============================================================
--- packages/webkit/webkit-qtopia_svn.bb	03fe45bc1271170d30d12a7d3a2b54d0955974f3
+++ packages/webkit/webkit-qtopia_svn.bb	ccce4fbb6f4178fbe8f5c34728cd43ed24d10433
@@ -1,4 +1,6 @@ inherit qtopia4core
 require webkit-qt.inc
 inherit qtopia4core
 
+WEBKIT_EXTRA_OPTIONS += "QT+=xml QT+=network"
+
+PR = "r5"
-PR = "r1"
============================================================
--- packages/webkit/webkit.inc	79c94f59fcfca65105a65eb52f4bf24d076f2d1f
+++ packages/webkit/webkit.inc	7592351db1bfac2d0bb7c3317216d74aa14bbf0c
@@ -1,9 +1,10 @@ SRCREV_FORMAT = "webcore-rwebkit"
 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)
+}






More information about the Openembedded-commits mailing list