wok view qt4/receipt @ rev 8995

asterisk: update BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 03 13:09:50 2011 +0100 (2011-03-03)
parents 20c7c65ea549
children 492d81d36df5
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4"
4 SOURCE="qt-everywhere-opensource-src"
5 VERSION="4.7.1"
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 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 atk autoconf automake bash binutils bison bzip2 cairo \
16 coreutils expat flex fontconfig freetype gcc gettext glib jpeg libIDL \
17 libcap libpng libtool libxml2 linux-api-headers m4 make mercurial ncurses openssl \
18 pango patch pcre perl perl-xml-parser perl-xml-simple pixman pkg-config tiff \
19 xorg xorg-dev-proto zip zlib"
20 TARBALL="$SOURCE-$VERSION.tar.gz"
21 WEB_SITE="http://qt.nokia.com/"
22 WGET_URL="ftp://ftp.qt.nokia.com/qt/source/$TARBALL"
23 PROVIDE="qt-x11-opensource-src"
24 TAGS="qt"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
31 # Already fixed upstream
32 patch -Np1 -i $stuff/fix-qtbug-15857.patch
33 patch -Np1 -i $stuff/add-postgresql9.patch
35 ./configure -v \
36 -prefix /usr \
37 -confirm-license -opensource \
38 -silent \
39 -sysconfdir /etc \
40 -plugindir /usr/lib/qt/plugins \
41 -translationdir /usr/share/qt/translations \
42 -datadir /usr/share/qt \
43 -docdir /usr/share/doc/qt \
44 -examplesdir /usr/share/doc/qt/examples \
45 -demosdir /usr/share/doc/qt/demos \
46 -no-separate-debug-info \
47 -nomake demos \
48 -nomake examples \
49 -nomake docs \
50 -system-zlib \
51 -system-libtiff \
52 -system-libpng \
53 -system-libmng \
54 -system-libjpeg \
55 -system-sqlite \
56 -glib \
57 -phonon \
58 -optimized-qmake \
59 -opengl \
60 -gtkstyle &&
61 make -j 4 &&
62 make INSTALL_ROOT=$PWD/_pkg install
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 # dummy tree to avoid 'tazwok cmp --cook' building loop
69 mkdir $fs/etc
70 # pkgconfig path fixes
71 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
72 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
73 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
74 }