wok-current diff qt4/receipt @ rev 5369
rename qt-everywhere* to simple qt4; improve all receipts; tazwok need to work with SOURCE and WANTED (feature not patched for quite long now); improve compile options and add libQtOpenGL back
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Apr 29 14:42:30 2010 -0400 (2010-04-29) |
parents | |
children | 80e64bc2e98a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/qt4/receipt Thu Apr 29 14:42:30 2010 -0400 1.3 @@ -0,0 +1,55 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="qt4" 1.7 +SOURCE="qt-everywhere-opensource-src" 1.8 +VERSION="4.6.2" 1.9 +CATEGORY="meta" 1.10 +SHORT_DESC="qt x11 toolkit" 1.11 +MAINTAINER="allan316@gmail.com" 1.12 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml libQtDesigner libQtScript \ 1.13 +libQt3Support libQtClucene libQtDBus libQtHelp libQtOpenGL libQtSql libQtWebkit" 1.14 +BUILD_DEPENDS="xorg-libX11-dev dbus-dev slitaz-dev-pkgs" 1.15 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.16 +WEB_SITE="http://qt.nokia.com/" 1.17 +WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL" 1.18 +PROVIDE="qt-x11-opensource-src" 1.19 +TAGS="qt" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src 1.25 + ./configure \ 1.26 + -prefix /usr \ 1.27 + -confirm-license -opensource \ 1.28 + -silent \ 1.29 + -sysconfdir /etc \ 1.30 + -plugindir /usr/lib/qt/plugins \ 1.31 + -translationdir /usr/share/qt/translations \ 1.32 + -datadir /usr/share/qt \ 1.33 + -docdir /usr/share/doc/qt \ 1.34 + -examplesdir /usr/share/doc/qt/examples \ 1.35 + -demosdir /usr/share/doc/qt/demos \ 1.36 + -no-separate-debug-info \ 1.37 + -nomake demos \ 1.38 + -nomake examples \ 1.39 + -nomake docs \ 1.40 + -no-phonon \ 1.41 + -optimized-qmake \ 1.42 + -opengl \ 1.43 + -gtkstyle && 1.44 + make && 1.45 + make INSTALL_ROOT=$PWD/_pkg install 1.46 +} 1.47 + 1.48 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 +genpkg_rules() 1.50 +{ 1.51 + # dummy tree to avoid 'tazwok cmp --cook' building loop 1.52 + mkdir $fs/etc 1.53 + # pkgconfig path fixes 1.54 + sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc 1.55 + sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc 1.56 + sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc 1.57 +} 1.58 +