mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
qtwebengine: new recipe
* runs Chromium 83.0.4103.122 under the hood. * based on patches from KapiX and FreeBSD. * includes fixes for gcc11 * no media support, even crashes then. * forced 1-job build for jumbo builds consuming memory.
This commit is contained in:
10022
dev-qt/qtwebengine/patches/qtwebengine-5.15.2.patchset
Normal file
10022
dev-qt/qtwebengine/patches/qtwebengine-5.15.2.patchset
Normal file
File diff suppressed because it is too large
Load Diff
174
dev-qt/qtwebengine/qtwebengine-5.15.2.recipe
Normal file
174
dev-qt/qtwebengine/qtwebengine-5.15.2.recipe
Normal file
@@ -0,0 +1,174 @@
|
||||
SUMMARY="WebKit rendering library for the Qt5 framework"
|
||||
DESCRIPTION="QtWebKit provides a Web browser engine that makes it easy to embed \
|
||||
content from the World Wide Web into your Qt application. At the same time Web \
|
||||
content can be enhanced with native controls.
|
||||
QtWebKit provides facilities for rendering of HyperText Markup Language (HTML), \
|
||||
Extensible HyperText Markup Language (XHTML) and Scalable Vector Graphics (SVG) \
|
||||
documents, styled using Cascading Style Sheets (CSS) and scripted with JavaScript."
|
||||
HOMEPAGE="https://www.qt.io"
|
||||
COPYRIGHT="2015-2020 The Qt Company Ltd."
|
||||
LICENSE="BSD (3-clause)
|
||||
GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.qt.io/official_releases/qt/${portVersion%.*}/$portVersion/submodules/qtwebengine-everywhere-src-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="c8afca0e43d84f7bd595436fbe4d13a5bbdb81ec5104d605085d07545b6f91e0"
|
||||
SOURCE_DIR="qtwebengine-everywhere-src-$portVersion"
|
||||
PATCHES="qtwebengine-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
qtwebengine$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Pdf$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libQt5PdfWidgets$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libQt5WebEngine$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libQt5WebEngineCore$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libQt5WebEngineWidgets$secondaryArchSuffix = $libVersionCompat
|
||||
cmd:qwebengine_convert_dict
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libavcodec$secondaryArchSuffix
|
||||
lib:libavformat$secondaryArchSuffix
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
lib:libdbus_1$secondaryArchSuffix
|
||||
lib:libexecinfo$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:libminizip$secondaryArchSuffix
|
||||
lib:libnspr4$secondaryArchSuffix
|
||||
lib:libnss3$secondaryArchSuffix
|
||||
lib:libnssutil3$secondaryArchSuffix
|
||||
lib:libopus$secondaryArchSuffix
|
||||
lib:libplc4$secondaryArchSuffix
|
||||
lib:libplds4$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Positioning$secondaryArchSuffix
|
||||
lib:libQt5Qml$secondaryArchSuffix
|
||||
lib:libQt5QmlModels$secondaryArchSuffix
|
||||
lib:libQt5Quick$secondaryArchSuffix
|
||||
lib:libQt5WebChannel$secondaryArchSuffix
|
||||
lib:libsmime3$secondaryArchSuffix
|
||||
lib:libsnappy$secondaryArchSuffix
|
||||
lib:libvpx$secondaryArchSuffix
|
||||
lib:libwebp$secondaryArchSuffix
|
||||
lib:libwebpdemux$secondaryArchSuffix
|
||||
lib:libwebpmux$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
qtwebengine${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
||||
devel:libQt5Pdf$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libQt5PdfWidgets$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libQt5WebEngine$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libQt5WebEngineCore$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libQt5WebEngineWidgets$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
qtwebengine$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libavcodec$secondaryArchSuffix
|
||||
devel:libdbus_1$secondaryArchSuffix
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libharfbuzz$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libjsoncpp$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libminizip$secondaryArchSuffix
|
||||
devel:libnss3$secondaryArchSuffix
|
||||
devel:libopus$secondaryArchSuffix
|
||||
devel:libprotobuf$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Positioning$secondaryArchSuffix
|
||||
devel:libQt5Qml$secondaryArchSuffix
|
||||
devel:libQt5QmlModels$secondaryArchSuffix
|
||||
devel:libQt5Quick$secondaryArchSuffix
|
||||
devel:libQt5WebChannel$secondaryArchSuffix
|
||||
devel:libsnappy$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libvpx$secondaryArchSuffix
|
||||
devel:libwebp$secondaryArchSuffix >= 7
|
||||
devel:libxslt$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:bison
|
||||
cmd:find
|
||||
cmd:flex
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gperf
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:ninja
|
||||
cmd:perl
|
||||
pkgconfig$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python2
|
||||
cmd:qmake >= 5
|
||||
cmd:which
|
||||
"
|
||||
TEST_REQUIRES="
|
||||
cmd:wget
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
|
||||
qmake .. -- \
|
||||
-system-ffmpeg \
|
||||
-webp
|
||||
NINJAJOBS=-j1 make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install INSTALL_ROOT=$prefix
|
||||
|
||||
mv $prefix/boot/system/* $prefix/
|
||||
rm -rf $prefix/boot
|
||||
|
||||
rm $prefix/lib/Qt5*.la
|
||||
|
||||
fixPkgconfig
|
||||
prepareInstalledDevelLibs libQt5Pdf libQt5PdfWidgets \
|
||||
libQt5WebEngine libQt5WebEngineCore libQt5WebEngineWidgets
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake \
|
||||
$dataDir/Qt5/mkspecs
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
wget https://chromium.googlesource.com/chromium/src/+archive/refs/tags/83.0.4103.122/base/test/data.tar.gz
|
||||
|
||||
# cd src/3rdparty/chromium
|
||||
# ../../../build/src/3rdparty/gn/out/Release/gn ls ../../../build/src/core/release/ //base/test/*
|
||||
}
|
||||
Reference in New Issue
Block a user