wok annotate Qt4-dev/receipt @ rev 15213

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