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