wok-next annotate qtwebkit/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children
rev   line source
psychomaniak@18169 1 # SliTaz package receipt.
psychomaniak@18169 2
psychomaniak@18169 3 PACKAGE="qtwebkit"
psychomaniak@19993 4 VERSION="5.212.0-alpha2"
psychomaniak@18169 5 CATEGORY="network"
al@21020 6 SHORT_DESC="KDE version of Qt Webkit browser engine"
psychomaniak@18169 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@18169 8 LICENSE="GPL"
al@21020 9 WEB_SITE="http://code.qt.io/cgit/qt/qtwebkit.git/"
al@21020 10
psychomaniak@19993 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
psychomaniak@19993 12 WEB_SITE_2="https://github.com/annulen/webkit/"
psychomaniak@19993 13 WGET_URL="${WEB_SITE_2}releases/download/${TARBALL/.tar*/}/$TARBALL"
psychomaniak@18169 14
al@20502 15 BUILD_DEPENDS="qt5-dev cmake bison flex gperf ruby-dev xorg-dev mesa-dev \
al@21078 16 freetype-dev fontconfig-dev sqlite3-dev libpng-dev libjpeg-turbo-dev icu-dev \
psychomaniak@19996 17 glib-dev zlib-dev libxslt-python libxslt-dev gstreamer1-dev \
psychomaniak@19996 18 gst1-plugins-base-dev hyphen-dev "
psychomaniak@18169 19
al@21020 20 compile_rules() {
psychomaniak@20066 21 mkdir -p WebKitBuild/Release
psychomaniak@20066 22 cd WebKitBuild/Release
al@21020 23
al@21020 24 export CFLAGS=${CFLAGS/486 -Os/686 -O0}
psychomaniak@20380 25 export CXXFLAGS=${CXXFLAGS/486 -Os/686 -O0}
psychomaniak@20066 26 QMAKE_CFLAGS=$CFLAGS QMAKE_CXXFLAGS=$CXXFLAGS \
al@21020 27 cmake \
al@21020 28 -DPORT=Qt \
psychomaniak@20066 29 -DCMAKE_BUILD_TYPE=Release \
psychomaniak@20070 30 -DENABLE_API_TESTS=OFF \
psychomaniak@20070 31 -DENABLE_WEBKIT2=OFF \
psychomaniak@20066 32 -DENABLE_JIT=OFF \
psychomaniak@20069 33 -DENABLE_DFG_JIT=OFF \
psychomaniak@20069 34 -DENABLE_FTL_JIT=OFF \
psychomaniak@20069 35 -DENABLE_OPENGL=OFF \
psychomaniak@20069 36 -DENABLE_GAMEPAD_DEPRECATED=OFF \
psychomaniak@20069 37 -DENABLE_GEOLOCATION=OFF \
psychomaniak@20066 38 -DENABLE_SMOOTH_SCROLLING=1 \
psychomaniak@20070 39 -DENABLE_WEB_AUDIO=OFF \
psychomaniak@20070 40 -DENABLE_LEGACY_WEB_AUDIO=OFF \
psychomaniak@20070 41 -DENABLE_DEVICE_ORIENTATION=OFF \
psychomaniak@20070 42 -DENABLE_MEDIA_SOURCE=OFF \
psychomaniak@20070 43 -DUSE_GSTREAMER=OFF \
psychomaniak@20066 44 ../..
al@21020 45 make &&
al@21020 46 make install
psychomaniak@18169 47 }
psychomaniak@18169 48
al@21020 49 genpkg_rules() {
psychomaniak@20069 50 # qtwebkit
psychomaniak@20069 51 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/share/applications
psychomaniak@20380 52 cp -a $src/WebKitBuild/Release/bin/QtTestBrowser $fs/usr/bin
psychomaniak@20069 53 # cp -a $install/usr/lib/*.so* $fs/usr/lib
psychomaniak@20069 54 cat > $fs/usr/share/applications/QtTestBrowser.desktop <<EOT
psychomaniak@20069 55 [Desktop Entry]
psychomaniak@20069 56 Type=Application
psychomaniak@20069 57 Name=QtTestBrowser
psychomaniak@20069 58 Exec=QtTestBrowser
psychomaniak@20069 59 Categories=Network;WebBrowser;
psychomaniak@18865 60 EOT
psychomaniak@20069 61
psychomaniak@20069 62
psychomaniak@20069 63 # qtwebkit + qtwebkit-dev:
psychomaniak@20069 64 cp -a $install/* $fs
al@21020 65 DEPENDS="qt5-base qt5-location qt5-sensors qt5-webchannel sqlite3 hyphen \
al@21020 66 libxslt" # gstreamer1 gst1-plugins-base
psychomaniak@18169 67 }