wok annotate qtwebkit/receipt @ rev 24796

Add f2c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 16:04:07 2022 +0000 (2022-03-21)
parents 6135577f4d08
children 505d1daeed6c
rev   line source
psychomaniak@18169 1 # SliTaz package receipt.
psychomaniak@18169 2
psychomaniak@18169 3 PACKAGE="qtwebkit"
psychomaniak@18169 4 VERSION="2.3.4"
psychomaniak@18169 5 CATEGORY="network"
psychomaniak@18169 6 SHORT_DESC="KDE version of Qt Webkit browser engine."
psychomaniak@18169 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@18169 8 LICENSE="GPL"
psychomaniak@18169 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20679 10 WEB_SITE="http://code.qt.io/cgit/qt/qtwebkit.git/"
psychomaniak@18169 11 WGET_URL="$WEB_SITE/stable/$PACKAGE-${VERSION:0:3}/$VERSION/src/$TARBALL"
psychomaniak@18169 12
psychomaniak@18865 13 PROVIDE="libQtWebkit"
psychomaniak@18865 14 CONFIG_FILES="/etc/fonts/conf.d/10-QtWebkit-monospace.conf"
psychomaniak@18865 15
psychomaniak@18169 16 DEPENDS="libQtCore libQtDBus libQtGui libQtXml libQtNetwork libQtOpenGL \
psychomaniak@18169 17 mesa sqlite gstreamer orc gst-plugins-base"
psychomaniak@18169 18 BUILD_DEPENDS="Qt4-dev libQtDeclarative qmake bison flex gperf ruby-dev mesa-dev \
psychomaniak@18169 19 sqlite-dev libpng-dev jpeg-dev gstreamer-dev gst-plugins-base-dev gst-plugins-base"
psychomaniak@18169 20
pascal@24535 21 # What is the latest version available today?
pascal@24535 22 current_version()
pascal@24535 23 {
pascal@24535 24 wget -O - https://github.com/qtwebkit/qtwebkit/tags 2>/dev/null | \
pascal@24535 25 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
pascal@24535 26 }
pascal@24535 27
psychomaniak@18169 28 compile_rules()
psychomaniak@18169 29 {
psychomaniak@18865 30 sed 's|FixedFont, default.*$|FixedFont, QLatin1String("monospace"));|' -i \
psychomaniak@18865 31 $src/Source/WebKit/qt/Api/qwebsettings.cpp
psychomaniak@18169 32 QTDIR=/usr QMAKE_CXXFLAGS=$CFLAGS \
psychomaniak@18169 33 Tools/Scripts/build-webkit \
psychomaniak@18169 34 --qt \
psychomaniak@18169 35 --makeargs=$MAKEFLAGS \
psychomaniak@18169 36 --prefix=/usr \
psychomaniak@18169 37 --no-webkit2 \
psychomaniak@18169 38 --no-force-sse2 \
psychomaniak@18169 39 DEFINES+=ENABLE_JIT=0 \
psychomaniak@18169 40 DEFINES+=ENABLE_YARR_JIT=0 \
psychomaniak@18169 41 DEFINES+=ENABLE_ASSEMBLER=0 \
psychomaniak@18169 42 DEFINES+=ENABLE_SMOOTH_SCROLLING=1
psychomaniak@18169 43 make INSTALL_ROOT=$DESTDIR -C WebKitBuild/Release install
psychomaniak@18169 44
psychomaniak@18169 45 }
psychomaniak@18169 46
psychomaniak@18169 47 genpkg_rules()
psychomaniak@18169 48 {
psychomaniak@18865 49 mkdir -p $fs/usr/lib $fs/usr/bin $fs/etc/fonts/conf.d
psychomaniak@18865 50 cat > $fs/etc/fonts/conf.d/10-QtWebkit-monospace.conf <<EOT
psychomaniak@18865 51 <fontconfig><alias>
psychomaniak@18865 52 <family>monospace</family>
psychomaniak@18865 53 <prefer>
psychomaniak@18865 54 <family>DejaVu Sans Mono</family>
psychomaniak@18865 55 </prefer>
psychomaniak@18865 56 </alias></fontconfig>
psychomaniak@18865 57 EOT
psychomaniak@18169 58 cp -a $src/WebKitBuild/Release/bin/Qt* $fs/usr/bin
psychomaniak@18169 59 cp -a $install/usr/lib/*.so* $fs/usr/lib
psychomaniak@18169 60 }