wok view qt4/receipt @ rev 5487

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