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