wok-current view qt4/receipt @ rev 25627

Patch sundown to use new gcc
author Stanislas Leduc <shann@slitaz.org>
date Mon Sep 04 19:37:09 2023 +0000 (16 months ago)
parents 63b31b012ead
children a23978bfa665
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
43 # Force std=gnu++98 to sanity built qt4
44 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
46 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${src}/lib"
47 ./configure\
48 -silent \
49 -prefix /usr \
50 -confirm-license -opensource \
51 -sysconfdir /etc/xdg \
52 -plugindir /usr/lib/qt/plugins \
53 -importdir /usr/lib/qt/imports \
54 -translationdir /usr/share/qt/translations \
55 -datadir /usr/share/qt \
56 -docdir /usr/share/doc/qt \
57 -examplesdir /usr/share/doc/qt/examples \
58 -demosdir /usr/share/doc/qt/demos \
59 -release \
60 -nomake demos \
61 -nomake examples \
62 -nomake docs \
63 -system-zlib \
64 -system-libtiff \
65 -system-libpng \
66 -system-libmng \
67 -system-libjpeg \
68 -system-sqlite \
69 -scripttools \
70 -glib \
71 -optimized-qmake \
72 -opengl \
73 -gtkstyle \
74 -no-openvg \
75 -no-reduce-relocations \
76 -xmlpatterns \
77 -no-phonon \
78 -no-phonon-backend \
79 -graphicssystem raster \
80 -continue \
81 2>&1 | grep -v 'wayland-client' | \
82 sed 's/such file or directory/file/' &&
83 make $MAKEFLAGS &&
84 make INSTALL_ROOT=$DESTDIR install
85 }
87 # Rules to gen a SliTaz package suitable for Tazpkg.
88 genpkg_rules()
89 {
90 # dummy tree to avoid 'tazwok cmp --cook' building loop
91 mkdir $fs/etc
92 }