wok-6.x view Qt4-dev/receipt @ rev 20183

Add parallel
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 29 19:08:54 2018 +0100 (2018-01-29)
parents 9cb6a23202c2
children cb67b4f8be05
line source
1 # SliTaz package receipt.
3 PACKAGE="Qt4-dev"
4 VERSION="4.8.7"
5 CATEGORY="development"
6 SHORT_DESC="qt x11 toolkit"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL3 LGPL2.1"
9 SUGGESTED="libmng nvidia"
10 WEB_SITE="http://qt-project.org/"
11 WANTED="qt4"
13 DEPENDS="QtDesigner jpeg tiff libpng mesa libglu-mesa \
14 freetds libmysqlclient libpostgresqlclient libunixODBC xcb-util \
15 libQt3Support libQtClucene libQtPlugins libQtDBus libQtHelp libQtOpenGL \
16 libQtScript libQtSql libQtScriptTools libQtWebkit libQtTest \
17 qtconfig gcc-lib-base pkg-config"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/lib $fs/usr/include/private
23 cp -a $install/usr/include $fs/usr
24 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
25 cp -a $install/usr/lib/*.*a $fs/usr/lib/
26 cp -a $install/usr/lib/*.prl $fs/usr/lib/
27 cp -a $install/usr/share $fs/usr
28 cp -a $install/usr/lib/qt $fs/usr/lib
30 #private qt includes
31 for i in $src/include/*/private/*; do cp $src/$(cat $i | sed 's/^#include "[./]*\([a-z].*\)"$/\1/') $fs/usr/include/private; done
33 # all qt plugins are in libQtPlugins
34 rm -rf $fs/usr/lib/qt/plugins
35 # all bin and remove QT applications designer, qmake, assistant, linguist: provide seperate packages
36 cp -a $install/usr/bin $fs/usr
37 rm $fs/usr/bin/qmake
38 rm $fs/usr/bin/designer
39 # Linguist and assistant are now part of QTDesigner packages
40 rm $fs/usr/bin/linguist
41 rm $fs/usr/bin/assistant
42 # qtconfig packaged now in separate package
43 rm $fs/usr/bin/qtconfig
44 rm $fs/usr/share/qt/translations/qtconfig*.qm
45 }