mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
qtwebengine: add recipe for 5.15.16 version
This commit is contained in:
11329
dev-qt/qtwebengine/patches/qtwebengine-5.15.16.patchset
Normal file
11329
dev-qt/qtwebengine/patches/qtwebengine-5.15.16.patchset
Normal file
File diff suppressed because it is too large
Load Diff
194
dev-qt/qtwebengine/qtwebengine-5.15.16.recipe
Normal file
194
dev-qt/qtwebengine/qtwebengine-5.15.16.recipe
Normal file
@@ -0,0 +1,194 @@
|
||||
SUMMARY="Chromium-based rendering library for the Qt5 framework"
|
||||
DESCRIPTION="QtWebEngine provides a Web browser engine that integrates \
|
||||
Chromium's fast moving web capabilities into Qt. "
|
||||
HOMEPAGE="https://www.qt.io"
|
||||
COPYRIGHT="2015-2023 The Qt Company Ltd."
|
||||
LICENSE="BSD (3-clause)
|
||||
GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pkg.freebsd.org/ports-distfiles/KDE/Qt/${portVersion}/kde-qtwebengine-${portVersion}p5.tar.xz"
|
||||
CHECKSUM_SHA256="a35887269d3e060859d00f399aa19dfb9e004d6bbf0dbb6daf1c60708c9dee78"
|
||||
SOURCE_DIR="kde-qtwebengine-${portVersion}p5"
|
||||
PATCHES="qtwebengine-$portVersion.patchset"
|
||||
|
||||
# disabled: takes too long to compile on builder
|
||||
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
Qt5Version="5.15.11"
|
||||
WebEngineApiVersion="5.15.17"
|
||||
|
||||
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:libexecinfo$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix
|
||||
lib:libicui18n$secondaryArchSuffix
|
||||
lib:libicudata$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:libQt5Designer$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:libxslt$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 >= 58
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libharfbuzz$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix >= 66
|
||||
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:libQt5Designer$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:libvulkan$secondaryArchSuffix
|
||||
devel:libwebp$secondaryArchSuffix >= 7
|
||||
devel:libxslt$secondaryArchSuffix
|
||||
devel:libz$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:nasm
|
||||
cmd:ninja
|
||||
cmd:node >= 16
|
||||
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 .. -- \
|
||||
-proprietary-codecs \
|
||||
-system-ffmpeg \
|
||||
-system-opus \
|
||||
-system-webp \
|
||||
-webengine-icu
|
||||
|
||||
NINJAJOBS=$jobArgs make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install INSTALL_ROOT=$prefix
|
||||
|
||||
mv $prefix/boot/system/* $prefix/
|
||||
rm -rf $prefix/boot
|
||||
|
||||
sed -e "/^QMAKE_PRL_BUILD_DIR/d" -i $libDir/libQt*.prl
|
||||
sed -e "s|${WebEngineApiVersion}\ |${Qt5Version} |" -i $libDir/cmake/*/*Config.cmake
|
||||
|
||||
fixPkgconfig
|
||||
prepareInstalledDevelLibs libQt5Pdf libQt5PdfWidgets \
|
||||
libQt5WebEngine libQt5WebEngineCore libQt5WebEngineWidgets
|
||||
|
||||
rm -rf $developLibDir/*.la $libDir/*.la
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.5.*;do
|
||||
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
||||
done
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake \
|
||||
$dataDir/Qt5/mkspecs
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
wget https://chromium.googlesource.com/chromium/src/+archive/refs/tags/87.0.4280.144/base/test/data.tar.gz
|
||||
|
||||
# cd src/3rdparty/chromium
|
||||
# ../../../build/src/3rdparty/gn/out/Release/gn ls ../../../build/src/core/release/ //base/test/*
|
||||
}
|
||||
@@ -81,7 +81,7 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libavcodec$secondaryArchSuffix
|
||||
devel:libavcodec$secondaryArchSuffix >= 58
|
||||
devel:libdbus_1$secondaryArchSuffix
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
@@ -98,6 +98,7 @@ BUILD_REQUIRES="
|
||||
devel:libprotobuf$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Designer$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Positioning$secondaryArchSuffix
|
||||
@@ -110,7 +111,9 @@ BUILD_REQUIRES="
|
||||
devel:libvpx$secondaryArchSuffix
|
||||
devel:libvulkan$secondaryArchSuffix
|
||||
devel:libwebp$secondaryArchSuffix >= 7
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libxslt$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
@@ -122,6 +125,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:gperf
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:nasm
|
||||
cmd:ninja
|
||||
cmd:node >= 16
|
||||
cmd:perl
|
||||
@@ -137,12 +141,18 @@ TEST_REQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export DISABLE_ASLR=1
|
||||
ulimit -S -n 4096
|
||||
|
||||
mkdir -p build && cd build
|
||||
|
||||
qmake .. -- \
|
||||
-system-ffmpeg \
|
||||
-proprietary-codecs \
|
||||
-opus \
|
||||
-webp
|
||||
NINJAJOBS=$jobArgs make
|
||||
|
||||
NINJAJOBS=-j16 make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
@@ -153,8 +163,6 @@ INSTALL()
|
||||
mv $prefix/boot/system/* $prefix/
|
||||
rm -rf $prefix/boot
|
||||
|
||||
rm $prefix/lib/Qt5*.la
|
||||
|
||||
sed -e "/^QMAKE_PRL_BUILD_DIR/d" -i $libDir/libQt*.prl
|
||||
sed -e "s|$portVersion\ |5.15.2 |" -i $libDir/cmake/*/*Config.cmake
|
||||
|
||||
@@ -162,6 +170,13 @@ INSTALL()
|
||||
prepareInstalledDevelLibs libQt5Pdf libQt5PdfWidgets \
|
||||
libQt5WebEngine libQt5WebEngineCore libQt5WebEngineWidgets
|
||||
|
||||
rm -rf $developLibDir/*.la $libDir/*.la
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.5.*;do
|
||||
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
||||
done
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake \
|
||||
|
||||
Reference in New Issue
Block a user