wok-current view qt4/receipt @ rev 25609

Patch qt4 to build with gcc 6
author Stanislas Leduc <shann@slitaz.org>
date Sat Sep 02 22:03:07 2023 +0000 (9 months ago)
parents 08392a9d42ea
children 63b31b012ead
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4"
4 SOURCE="qt-everywhere-opensource-src"
5 VERSION="4.8.7"
6 CATEGORY="meta"
7 SHORT_DESC="qt x11 toolkit"
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="GPL3 LGPL2.1"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://qt-project.org/"
12 WGET_URL="https://web.archive.org/web/20220321180342if_/https://download.qt.io/archive/qt/${VERSION%.*}/$VERSION/$TARBALL"
13 PROVIDE="qt-x11-opensource-src Qt4"
14 TAGS="qt"
16 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
17 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
18 libQtOpenGL libQtSql libQtWebkit qtconfig"
19 SUGGESTED="libQtPlugins libQtScriptTools libQtDeclarative"
20 BUILD_DEPENDS="xorg-libX11-dev dbus-dev mesa-dev libmng-dev cups-dev mysql-dev \
21 unixODBC-dev fontconfig-dev postgresql-dev atk-dev autoconf automake bash \
22 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
23 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng-dev libtool \
24 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
25 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple pixman-dev \
26 pkg-config tiff-dev xorg-dev-proto xorg-dev zip unzip gtk+-dev alsa-lib-dev \
27 xorg-libXv-dev sqlite-dev"
29 # What is the latest version available today?
30 current_version()
31 {
32 wget -O - https://download.qt.io/archive/qt/ 2>/dev/null | \
33 sed '/LICENSE/d;/>4\./!d;s|.*/">|https://download.qt.io/archive/qt/|;s|/<.*||' | \
34 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
35 sed '/>4\./!d;s|.*/">||;s|/<.*||' | sort -Vr | sed q
36 }
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 # Patch for build with gcc 6
42 patch -p1 < $stuff/gcc6_build_fix.patch
44 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${src}/lib"
45 ./configure\
46 -silent \
47 -prefix /usr \
48 -confirm-license -opensource \
49 -sysconfdir /etc/xdg \
50 -plugindir /usr/lib/qt/plugins \
51 -importdir /usr/lib/qt/imports \
52 -translationdir /usr/share/qt/translations \
53 -datadir /usr/share/qt \
54 -docdir /usr/share/doc/qt \
55 -examplesdir /usr/share/doc/qt/examples \
56 -demosdir /usr/share/doc/qt/demos \
57 -release \
58 -nomake demos \
59 -nomake examples \
60 -nomake docs \
61 -system-zlib \
62 -system-libtiff \
63 -system-libpng \
64 -system-libmng \
65 -system-libjpeg \
66 -system-sqlite \
67 -scripttools \
68 -glib \
69 -optimized-qmake \
70 -opengl \
71 -gtkstyle \
72 -no-openvg \
73 -no-reduce-relocations \
74 -no-phonon \
75 -no-phonon-backend \
76 -graphicssystem raster \
77 -continue \
78 2>&1 | grep -v 'wayland-client' | \
79 sed 's/such file or directory/file/' &&
80 make $MAKEFLAGS &&
81 make INSTALL_ROOT=$DESTDIR install
82 }
84 # Rules to gen a SliTaz package suitable for Tazpkg.
85 genpkg_rules()
86 {
87 # dummy tree to avoid 'tazwok cmp --cook' building loop
88 mkdir $fs/etc
89 }