wok-next annotate qt4-base/receipt @ rev 20976

Follow recent changes in the Python renames
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 25 17:35:51 2018 +0300 (2018-09-25)
parents 757d032c55c7
children f48456621a9d
rev   line source
pascal@19974 1 # SliTaz package receipt v2.
psychomaniak@17055 2
psychomaniak@17055 3 PACKAGE="qt4-base"
pascal@17750 4 SOURCE="qt-everywhere-opensource-src"
psychomaniak@17055 5 VERSION="4.8.6"
psychomaniak@17064 6 CATEGORY="meta"
psychomaniak@17064 7 SHORT_DESC="Qt4 less deps rebuild (without gstreamer, phonon etc.)"
psychomaniak@17055 8 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@17055 9 LICENSE="GPL3 LGPL2.1"
al@20534 10 WEB_SITE="http://qt-project.org/"
al@20888 11 REPOLOGY="qt4"
al@20534 12
pascal@17750 13 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@17869 14 WGET_URL="http://download.qt-project.org/archive/qt/${VERSION%.*}/$VERSION/$TARBALL"
psychomaniak@17055 15
psychomaniak@17055 16 BUILD_DEPENDS="xorg-libX11-dev dbus-dev libmng-dev \
psychomaniak@17055 17 cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev \
psychomaniak@17055 18 postgresql-dev atk-dev autoconf automake bash \
psychomaniak@17055 19 binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \
al@20454 20 freetype-dev gettext glib-dev jpeg-dev libIDL libcap-dev libpng16-dev libtool \
psychomaniak@17055 21 libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \
al@20446 22 pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple xorg-pixman-dev \
al@20513 23 tiff-dev xorg-dev-proto xorg-dev zip unzip gtk+-dev alsa-lib-dev \
pascal@20098 24 sqlite3-dev libQtClucene wayland-dev"
pascal@19974 25 SPLIT="qt-base libQtWebkit qtconfig"
psychomaniak@17055 26
al@20534 27 compile_rules() {
pascal@19975 28 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
pascal@19975 29
al@20534 30 # site script isn't used
psychomaniak@17055 31 ./configure\
psychomaniak@17055 32 -silent \
psychomaniak@17055 33 -prefix /usr \
psychomaniak@17055 34 -confirm-license -opensource \
psychomaniak@17055 35 -sysconfdir /etc/xdg \
psychomaniak@17055 36 -plugindir /usr/lib/qt/plugins \
psychomaniak@17055 37 -importdir /usr/lib/qt/imports \
psychomaniak@17055 38 -translationdir /usr/share/qt/translations \
psychomaniak@17055 39 -datadir /usr/share/qt \
psychomaniak@17055 40 -docdir /usr/share/doc/qt \
psychomaniak@17055 41 -examplesdir /usr/share/doc/qt/examples \
psychomaniak@17055 42 -demosdir /usr/share/doc/qt/demos \
psychomaniak@17055 43 -release \
psychomaniak@17055 44 -nomake demos \
psychomaniak@17055 45 -nomake examples \
psychomaniak@17055 46 -nomake docs \
psychomaniak@17055 47 -system-zlib \
psychomaniak@17055 48 -system-libtiff \
psychomaniak@17055 49 -system-libpng \
psychomaniak@17055 50 -system-libmng \
psychomaniak@17055 51 -system-libjpeg \
psychomaniak@17055 52 -system-sqlite \
psychomaniak@17055 53 -scripttools \
psychomaniak@17055 54 -glib \
psychomaniak@17055 55 -optimized-qmake \
psychomaniak@17055 56 -gtkstyle \
psychomaniak@17055 57 -no-opengl -no-openvg \
psychomaniak@17055 58 -reduce-relocations \
psychomaniak@17055 59 -no-gstreamer -no-phonon \
psychomaniak@17055 60 -no-declarative -no-phonon-backend \
psychomaniak@17055 61 -graphicssystem raster \
psychomaniak@17055 62 -continue \
psychomaniak@17055 63 2>&1 | sed 's/such file or directory/file/' &&
psychomaniak@17055 64 make $MAKEFLAGS &&
psychomaniak@17055 65 make INSTALL_ROOT=$DESTDIR install
psychomaniak@17055 66 }
psychomaniak@17055 67
al@20534 68 genpkg_rules() {
pascal@19974 69 case $PACKAGE in
pascal@19974 70 qt4-base)
pascal@19974 71 # PROVIDE="qt-x11-opensource-src Qt4"
pascal@19974 72 TAGS="qt"
pascal@19974 73 DEPENDS="libQtWebkit qtconfig"
pascal@19974 74 mkdir -p $fs/etc/xdg
pascal@19974 75 ;;
pascal@19974 76 libQtWebkit)
al@20534 77 copy libQtWebKit.so*
pascal@19974 78 CAT="network|Web browser engine for Qt"
al@20454 79 DEPENDS="libQtCore libQtGui libQtNetwork libpng16"
pascal@19974 80 ;;
pascal@19974 81 qtconfig)
pascal@19974 82 CAT="x-window|Qtconfig is a tool that allows users to customize the default settings for Qt applications"
pascal@19974 83 DEPENDS="libQt3Support libQtNetwork libQtDBus"
pascal@19974 84 mkdir -p $fs/usr/bin $fs/usr/share/qt/translations $fs/usr/share/icons/hicolor/22x22/apps
pascal@19974 85 cp -a $install/usr/bin/qtconfig $fs/usr/bin
pascal@19974 86 cp -a $install/usr/share/qt/translations/qtconfig*.qm $fs/usr/share/qt/translations
pascal@19974 87 cp -a $WOK/qt4/source/qt4-4.8.6/tools/designer/src/components/formeditor/images/qtlogo.png \
pascal@19974 88 $fs/usr/share/icons/hicolor/22x22/apps/qtlogo.png
pascal@19974 89 ;;
pascal@19974 90 esac
psychomaniak@17055 91 }