wok-6.x annotate qt4/receipt @ rev 7058
Up remind (03.01.10)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Nov 01 23:41:51 2010 +0000 (2010-11-01) |
parents | 666fd56c3a0e |
children | 568b7f4604a2 |
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" |
slaxemulator@6976 | 5 VERSION="4.7.0" |
jozee@5369 | 6 CATEGORY="meta" |
jozee@5369 | 7 SHORT_DESC="qt x11 toolkit" |
jozee@5369 | 8 MAINTAINER="allan316@gmail.com" |
pankso@5509 | 9 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \ |
pankso@5509 | 10 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \ |
pankso@5509 | 11 libQtOpenGL libQtSql libQtWebkit gstreamer" |
pankso@5509 | 12 BUILD_DEPENDS="xorg-libX11-dev dbus-dev slitaz-dev-pkgs gstreamer \ |
slaxemulator@6976 | 13 gstreamer-dev gst-python-dev libmng-dev cups-dev mysql-dev unixODBC-dev \ |
slaxemulator@6976 | 14 mesa-dev fontconfig-dev libegl-mesa libglu-mesa libglw-mesa postgresql-dev glibc-locale \ |
slaxemulator@6976 | 15 gtk+-dev gst-plugins-base-dev" |
jozee@5369 | 16 TARBALL="$SOURCE-$VERSION.tar.gz" |
jozee@5369 | 17 WEB_SITE="http://qt.nokia.com/" |
jozee@5369 | 18 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL" |
jozee@5369 | 19 PROVIDE="qt-x11-opensource-src" |
jozee@5369 | 20 TAGS="qt" |
jozee@5369 | 21 |
jozee@5369 | 22 # Rules to configure and make the package. |
jozee@5369 | 23 compile_rules() |
jozee@5369 | 24 { |
jozee@5369 | 25 cd $src |
slaxemulator@6976 | 26 # Already fixed in 4.7.1 |
slaxemulator@6976 | 27 patch -Np1 -i ../stuff/fix-scroll-when-last-item-is-removed.patch |
slaxemulator@6976 | 28 patch -Np1 -i ../stuff/fix-multisampling-with-ati-card.patch |
slaxemulator@6976 | 29 |
pankso@5509 | 30 ./configure -v \ |
pankso@5509 | 31 -prefix /usr \ |
pankso@5509 | 32 -confirm-license -opensource \ |
pankso@5509 | 33 -silent \ |
pankso@5509 | 34 -sysconfdir /etc \ |
pankso@5509 | 35 -plugindir /usr/lib/qt/plugins \ |
pankso@5509 | 36 -translationdir /usr/share/qt/translations \ |
pankso@5509 | 37 -datadir /usr/share/qt \ |
pankso@5509 | 38 -docdir /usr/share/doc/qt \ |
pankso@5509 | 39 -examplesdir /usr/share/doc/qt/examples \ |
pankso@5509 | 40 -demosdir /usr/share/doc/qt/demos \ |
pankso@5509 | 41 -no-separate-debug-info \ |
pankso@5509 | 42 -nomake demos \ |
pankso@5509 | 43 -nomake examples \ |
pankso@5509 | 44 -nomake docs \ |
slaxemulator@6976 | 45 -system-zlib \ |
slaxemulator@6976 | 46 -system-libtiff \ |
slaxemulator@6976 | 47 -system-libpng \ |
slaxemulator@6976 | 48 -system-libmng \ |
slaxemulator@6976 | 49 -system-libjpeg \ |
slaxemulator@6976 | 50 -system-sqlite \ |
slaxemulator@6976 | 51 -glib \ |
pankso@5509 | 52 -phonon \ |
pankso@5509 | 53 -optimized-qmake \ |
pankso@5509 | 54 -opengl \ |
pankso@5509 | 55 -gtkstyle && |
pascal@5777 | 56 make -j 4 && |
jozee@5369 | 57 make INSTALL_ROOT=$PWD/_pkg install |
jozee@5369 | 58 } |
jozee@5369 | 59 |
jozee@5369 | 60 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5369 | 61 genpkg_rules() |
jozee@5369 | 62 { |
jozee@5369 | 63 # dummy tree to avoid 'tazwok cmp --cook' building loop |
jozee@5369 | 64 mkdir $fs/etc |
jozee@5369 | 65 # pkgconfig path fixes |
jozee@5369 | 66 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 67 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 68 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc |
jozee@5369 | 69 } |
jozee@5369 | 70 |