wok view qt5/receipt @ rev 25261

qt5: modified configure
author Hans-G?nter Theisgen
date Fri Jul 15 07:57:26 2022 +0100 (23 months ago)
parents be49c4243bd8
children 083af5061d39
line source
1 # SliTaz package receipt.
3 PACKAGE="qt5"
4 VERSION="5.14.2"
5 CATEGORY="meta"
6 TAGS="qt"
7 SHORT_DESC="qt x11 toolkit"
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPL3 LGPL3"
10 WEB_SITE="https://www.qt.io/"
12 SOURCE="qt-everywhere-src"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="https://download.qt.io/archive/qt/${VERSION%.*}/$VERSION/single/$TARBALL"
16 SUGGESTED="libQt5Plugins libQt5ScriptTools"
17 PROVIDE="qt-x11-opensource-src Qt5"
18 DEPENDS="gcc83-lib-base glibc-locale libQt5Core libQt5DBus
19 libQt5Designer libQt5Gui libQt5Help libQt5Network libQt5OpenGL
20 libQt5Script libQt5Sql libQt5Svg libQt5Xml"
21 BUILD_DEPENDS="alsa-lib-dev cups-dev dbus-dev eudev-dev gcc83 glib-dev
22 gst-plugins-base-1.0-dev gtk+3-dev icu-dev fontconfig-dev
23 freetype-dev harfbuzz-dev libjpeg-turbo-dev libpng-dev
24 libxcb-dev libxkbcommon-dev mesa-dev openssl-dev pcre-dev
25 sqlite-dev tslib-dev xorg-libX11-dev xorg-libXcomposite-dev
26 xorg-libXrender-dev zlib-dev"
28 # What is the latest version available today?
29 current_version()
30 {
31 wget -O - https://download.qt.io/archive/qt/ 2>/dev/null | \
32 sed '/>5\./!d;s|.*/">|https://download.qt.io/archive/qt/|;s|/<.*||' | \
33 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
34 sed '/>5\./!d;s|.*/">||;s|/<.*||' | sort -Vr | sed q
35 }
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${src}/lib"
42 sed -i 's|gcc|gcc-83|; s|g++|g++-83|' qtbase/mkspecs/common/g++-base.conf
44 ./configure \
45 -prefix /usr \
46 -confirm-license \
47 -opensource \
48 -sysconfdir /etc/xdg \
49 -plugindir /usr/lib/qt5/plugins \
50 -headerdir /usr/include/qt5 \
51 -importdir /usr/lib/qt5/imports \
52 -archdatadir /usr/lib/qt5 \
53 -bindir /usr/bin \
54 -datadir /usr/share/qt5 \
55 -docdir /usr/share/doc/qt5 \
56 -examplesdir /usr/share/doc/qt5/examples \
57 -translationdir /usr/share/qt5/translations \
58 -release \
59 -nomake examples \
60 -system-harfbuzz \
61 -system-sqlite \
62 -glib \
63 -optimized-qmake \
64 -opengl \
65 -opensource \
66 -no-openvg \
67 -no-reduce-relocations \
68 -continue &&
69 make $MAKEFLAGS &&
70 make install INSTALL_ROOT=$DESTDIR
71 }
73 # Rules to gen a SliTaz package suitable for Tazpkg.
74 genpkg_rules()
75 {
76 # dummy tree to avoid 'tazwok cmp --cook' building loop
77 mkdir $fs/etc
78 }