wok-4.x annotate 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 |
rev | line source |
---|---|
jozee@5369 | 1 # SliTaz package receipt. |
jozee@5369 | 2 |
jozee@5369 | 3 PACKAGE="qt4" |
jozee@5369 | 4 SOURCE="qt-everywhere-opensource-src" |
jozee@5369 | 5 VERSION="4.6.2" |
jozee@5369 | 6 CATEGORY="meta" |
jozee@5369 | 7 SHORT_DESC="qt x11 toolkit" |
jozee@5369 | 8 MAINTAINER="allan316@gmail.com" |
jozee@5369 | 9 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml libQtDesigner libQtScript \ |
jozee@5369 | 10 libQt3Support libQtClucene libQtDBus libQtHelp libQtOpenGL libQtSql libQtWebkit" |
jozee@5369 | 11 BUILD_DEPENDS="xorg-libX11-dev dbus-dev slitaz-dev-pkgs" |
jozee@5369 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
jozee@5369 | 13 WEB_SITE="http://qt.nokia.com/" |
jozee@5369 | 14 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL" |
jozee@5369 | 15 PROVIDE="qt-x11-opensource-src" |
jozee@5369 | 16 TAGS="qt" |
jozee@5369 | 17 |
jozee@5369 | 18 # Rules to configure and make the package. |
jozee@5369 | 19 compile_rules() |
jozee@5369 | 20 { |
jozee@5369 | 21 cd $src |
jozee@5369 | 22 ./configure \ |
jozee@5369 | 23 -prefix /usr \ |
jozee@5369 | 24 -confirm-license -opensource \ |
jozee@5369 | 25 -silent \ |
jozee@5369 | 26 -sysconfdir /etc \ |
jozee@5369 | 27 -plugindir /usr/lib/qt/plugins \ |
jozee@5369 | 28 -translationdir /usr/share/qt/translations \ |
jozee@5369 | 29 -datadir /usr/share/qt \ |
jozee@5369 | 30 -docdir /usr/share/doc/qt \ |
jozee@5369 | 31 -examplesdir /usr/share/doc/qt/examples \ |
jozee@5369 | 32 -demosdir /usr/share/doc/qt/demos \ |
jozee@5369 | 33 -no-separate-debug-info \ |
jozee@5369 | 34 -nomake demos \ |
jozee@5369 | 35 -nomake examples \ |
jozee@5369 | 36 -nomake docs \ |
jozee@5369 | 37 -no-phonon \ |
jozee@5369 | 38 -optimized-qmake \ |
jozee@5369 | 39 -opengl \ |
jozee@5369 | 40 -gtkstyle && |
jozee@5369 | 41 make && |
jozee@5369 | 42 make INSTALL_ROOT=$PWD/_pkg install |
jozee@5369 | 43 } |
jozee@5369 | 44 |
jozee@5369 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5369 | 46 genpkg_rules() |
jozee@5369 | 47 { |
jozee@5369 | 48 # dummy tree to avoid 'tazwok cmp --cook' building loop |
jozee@5369 | 49 mkdir $fs/etc |
jozee@5369 | 50 # pkgconfig path fixes |
jozee@5369 | 51 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 52 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 53 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 54 } |
jozee@5369 | 55 |