wok-next view qt4-base/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents cd7906120828
children d5aab818505e
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="http://qt-project.org/"
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="xorg-libX11-dev dbus-dev libmng-dev \
17 cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev \
18 postgresql-dev atk-dev autoconf automake bash \
19 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
20 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng16-dev libtool \
21 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
22 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple xorg-pixman-dev \
23 tiff-dev xorg-dev-proto xorg-dev zip unzip gtk2-dev alsa-lib-dev \
24 sqlite3-dev libQtClucene wayland-dev"
25 SPLIT="qt-base libQtWebkit qtconfig"
27 compile_rules() {
28 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
30 # site script isn't used
31 ./configure\
32 -silent \
33 -prefix /usr \
34 -confirm-license -opensource \
35 -sysconfdir /etc/xdg \
36 -plugindir /usr/lib/qt/plugins \
37 -importdir /usr/lib/qt/imports \
38 -translationdir /usr/share/qt/translations \
39 -datadir /usr/share/qt \
40 -docdir /usr/share/doc/qt \
41 -examplesdir /usr/share/doc/qt/examples \
42 -demosdir /usr/share/doc/qt/demos \
43 -release \
44 -nomake demos \
45 -nomake examples \
46 -nomake docs \
47 -system-zlib \
48 -system-libtiff \
49 -system-libpng \
50 -system-libmng \
51 -system-libjpeg \
52 -system-sqlite \
53 -scripttools \
54 -glib \
55 -optimized-qmake \
56 -gtkstyle \
57 -no-opengl -no-openvg \
58 -reduce-relocations \
59 -no-gstreamer -no-phonon \
60 -no-declarative -no-phonon-backend \
61 -graphicssystem raster \
62 -continue \
63 2>&1 | sed 's/such file or directory/file/' &&
64 make $MAKEFLAGS &&
65 make INSTALL_ROOT=$DESTDIR install
66 }
68 genpkg_rules() {
69 case $PACKAGE in
70 qt4-base)
71 # PROVIDE="qt-x11-opensource-src Qt4"
72 TAGS="qt"
73 DEPENDS="libQtWebkit qtconfig"
74 mkdir -p $fs/etc/xdg
75 ;;
76 libQtWebkit)
77 copy libQtWebKit.so*
78 CAT="network|Web browser engine for Qt"
79 DEPENDS="libQtCore libQtGui libQtNetwork libpng16"
80 ;;
81 qtconfig)
82 CAT="x-window|Qtconfig is a tool that allows users to customize the default settings for Qt applications"
83 DEPENDS="libQt3Support libQtNetwork libQtDBus"
84 mkdir -p $fs/usr/bin $fs/usr/share/qt/translations $fs/usr/share/icons/hicolor/22x22/apps
85 cp -a $install/usr/bin/qtconfig $fs/usr/bin
86 cp -a $install/usr/share/qt/translations/qtconfig*.qm $fs/usr/share/qt/translations
87 cp -a $WOK/qt4/source/qt4-4.8.6/tools/designer/src/components/formeditor/images/qtlogo.png \
88 $fs/usr/share/icons/hicolor/22x22/apps/qtlogo.png
89 ;;
90 esac
91 }