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

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents bce36a298f1e
children d43bf7aae921
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 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://qt-project.org/"
12 WGET_URL="http://download.qt-project.org/archive/qt/${VERSION%.*}/$VERSION/$TARBALL"
14 BUILD_DEPENDS="xorg-libX11-dev dbus-dev libmng-dev \
15 cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev \
16 postgresql-dev atk-dev autoconf automake bash \
17 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
18 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng16-dev libtool \
19 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
20 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple xorg-pixman-dev \
21 pkg-config tiff-dev xorg-dev-proto xorg-dev zip unzip gtk+-dev alsa-lib-dev \
22 sqlite3-dev libQtClucene wayland-dev"
23 SPLIT="qt-base libQtWebkit qtconfig"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
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=$DESTDIR install
65 }
67 # Rules to gen a SliTaz package suitable for Tazpkg.
68 genpkg_rules()
69 {
70 case $PACKAGE in
71 qt4-base)
72 # PROVIDE="qt-x11-opensource-src Qt4"
73 TAGS="qt"
74 DEPENDS="libQtWebkit qtconfig"
75 mkdir -p $fs/etc/xdg
76 ;;
77 libQtWebkit)
78 CAT="network|Web browser engine for Qt"
79 DEPENDS="libQtCore libQtGui libQtNetwork libpng16"
80 mkdir -p $fs/usr/lib
81 cp -a $install/usr/lib/libQtWebKit.so* $fs/usr/lib
82 ;;
83 qtconfig)
84 CAT="x-window|Qtconfig is a tool that allows users to customize the default settings for Qt applications"
85 DEPENDS="libQt3Support libQtNetwork libQtDBus"
86 mkdir -p $fs/usr/bin $fs/usr/share/qt/translations $fs/usr/share/icons/hicolor/22x22/apps
87 cp -a $install/usr/bin/qtconfig $fs/usr/bin
88 cp -a $install/usr/share/qt/translations/qtconfig*.qm $fs/usr/share/qt/translations
89 cp -a $WOK/qt4/source/qt4-4.8.6/tools/designer/src/components/formeditor/images/qtlogo.png \
90 $fs/usr/share/icons/hicolor/22x22/apps/qtlogo.png
91 ;;
92 esac
93 }