wok-next view qt4-base/receipt @ rev 21108
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 07 11:27:51 2019 +0200 (2019-01-07) |
parents | d457c4e37c1b |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="qt4-base"
4 SOURCE="qt-everywhere-opensource-src"
5 VERSION="4.8.6"
6 CATEGORY="meta"
7 SHORT_DESC="Qt4 less deps rebuild (without gstreamer, phonon etc.)"
8 MAINTAINER="psychomaniak@xakep.ru"
9 LICENSE="GPL3 LGPL2.1"
10 WEB_SITE="https://www.qt.io/developers/"
11 REPOLOGY="qt4"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="http://download.qt-project.org/archive/qt/${VERSION%.*}/$VERSION/$TARBALL"
16 BUILD_DEPENDS="libx11-dev dbus-dev libmng-dev cups-dev mysql-dev \
17 unixODBC-dev mesa-dev fontconfig-dev postgresql-dev atk-dev autoconf automake \
18 bash binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
19 freetype-dev gettext-dev glib-dev jpeg-dev libIDL libcap-dev libpng-dev \
20 libtool libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
21 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple pixman-dev \
22 tiff-dev xorg-dev-proto xorg-dev zip unzip gtk2-dev alsa-lib-dev sqlite3-dev \
23 libQtClucene wayland-dev"
24 SPLIT="qt-base libQtWebkit qtconfig"
26 compile_rules() {
27 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
29 # site script isn't used
30 ./configure\
31 -silent \
32 -prefix /usr \
33 -confirm-license -opensource \
34 -sysconfdir /etc/xdg \
35 -plugindir /usr/lib/qt/plugins \
36 -importdir /usr/lib/qt/imports \
37 -translationdir /usr/share/qt/translations \
38 -datadir /usr/share/qt \
39 -docdir /usr/share/doc/qt \
40 -examplesdir /usr/share/doc/qt/examples \
41 -demosdir /usr/share/doc/qt/demos \
42 -release \
43 -nomake demos \
44 -nomake examples \
45 -nomake docs \
46 -system-zlib \
47 -system-libtiff \
48 -system-libpng \
49 -system-libmng \
50 -system-libjpeg \
51 -system-sqlite \
52 -scripttools \
53 -glib \
54 -optimized-qmake \
55 -gtkstyle \
56 -no-opengl -no-openvg \
57 -reduce-relocations \
58 -no-gstreamer -no-phonon \
59 -no-declarative -no-phonon-backend \
60 -graphicssystem raster \
61 -continue \
62 2>&1 | sed 's/such file or directory/file/' &&
63 make $MAKEFLAGS &&
64 make INSTALL_ROOT=$install install
65 }
67 genpkg_rules() {
68 case $PACKAGE in
69 qt4-base)
70 # PROVIDE="qt-x11-opensource-src Qt4"
71 TAGS="qt"
72 DEPENDS="libQtWebkit qtconfig"
73 mkdir -p $fs/etc/xdg
74 ;;
75 libQtWebkit)
76 copy libQtWebKit.so*
77 CAT="network|Web browser engine for Qt"
78 DEPENDS="libQtCore libQtGui libQtNetwork libpng"
79 ;;
80 qtconfig)
81 CAT="x-window|Qtconfig is a tool that allows users to customize the default settings for Qt applications"
82 DEPENDS="libQt3Support libQtNetwork libQtDBus"
83 mkdir -p $fs/usr/bin $fs/usr/share/qt/translations $fs/usr/share/icons/hicolor/22x22/apps
84 cp -a $install/usr/bin/qtconfig $fs/usr/bin
85 cp -a $install/usr/share/qt/translations/qtconfig*.qm $fs/usr/share/qt/translations
86 cp -a $WOK/qt4/source/qt4-4.8.6/tools/designer/src/components/formeditor/images/qtlogo.png \
87 $fs/usr/share/icons/hicolor/22x22/apps/qtlogo.png
88 ;;
89 esac
90 }