wok-current view qt4/receipt @ rev 25694

Fix cifs-utils, up grub2-efi-x64 stuff for iso EFI
author Stanislas Leduc <shann@slitaz.org>
date Sat Mar 30 18:05:22 2024 +0000 (2 months ago)
parents a23978bfa665
children
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 # Patch for build with gcc 8
45 patch -p1 < $stuff/gcc8_build_fix.patch
47 # Patch for build with glibc >= 2.25
48 patch -p1 < $stuff/glibc2.25_build_fix.patch
50 # Patch for build with openssl 1.1.x, thanks FreeBSD / Arch Linux
51 # see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214691
52 # and https://aur.archlinux.org/cgit/aur.git/tree/?h=qt4
53 patch -p1 < $stuff/qt4-openssl-1.1-support.patch
54 patch -p1 < $stuff/disable-sslv3.patch
56 # Force std=gnu++98 to sanity built qt4
57 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
59 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${src}/lib"
60 ./configure\
61 -openssl-linked \
62 -silent \
63 -prefix /usr \
64 -confirm-license -opensource \
65 -sysconfdir /etc/xdg \
66 -plugindir /usr/lib/qt/plugins \
67 -importdir /usr/lib/qt/imports \
68 -translationdir /usr/share/qt/translations \
69 -datadir /usr/share/qt \
70 -docdir /usr/share/doc/qt \
71 -examplesdir /usr/share/doc/qt/examples \
72 -demosdir /usr/share/doc/qt/demos \
73 -release \
74 -nomake demos \
75 -nomake examples \
76 -nomake docs \
77 -system-zlib \
78 -system-libtiff \
79 -system-libpng \
80 -system-libmng \
81 -system-libjpeg \
82 -system-sqlite \
83 -scripttools \
84 -glib \
85 -optimized-qmake \
86 -opengl \
87 -gtkstyle \
88 -no-openvg \
89 -no-reduce-relocations \
90 -xmlpatterns \
91 -no-phonon \
92 -no-phonon-backend \
93 -graphicssystem raster \
94 -continue \
95 2>&1 | grep -v 'wayland-client' | \
96 sed 's/such file or directory/file/' &&
97 make $MAKEFLAGS &&
98 make INSTALL_ROOT=$DESTDIR install
99 }
101 # Rules to gen a SliTaz package suitable for Tazpkg.
102 genpkg_rules()
103 {
104 # dummy tree to avoid 'tazwok cmp --cook' building loop
105 mkdir $fs/etc
106 }