wok view qt-x11-opensource-src/receipt @ rev 5033

gutenprint: update build_depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 03 11:18:36 2010 +0100 (2010-03-03)
parents 71a234d3060d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="qt-x11-opensource-src"
4 VERSION="4.5.0"
5 CATEGORY="meta"
6 SHORT_DESC="qt x11 toolkit"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="glibc-locale"
9 BUILD_DEPENDS="xorg-libX11-dev dbus-dev slitaz-dev-pkgs"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.trolltech.com"
12 WGET_URL="ftp://get.qtsoftware.com/qt/source/$TARBALL"
13 TAGS="qt"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 -prefix /usr \
21 -confirm-license \
22 -silent \
23 -sysconfdir /etc \
24 -plugindir /usr/lib/qt/plugins \
25 -translationdir /usr/share/qt/translations \
26 -datadir /usr/share/qt \
27 -docdir /usr/share/doc/qt \
28 -examplesdir /usr/share/doc/qt/examples \
29 -demosdir /usr/share/doc/qt/demos \
30 -no-separate-debug-info \
31 -nomake demos \
32 -nomake examples \
33 -nomake docs \
34 -no-phonon \
35 -optimized-qmake &&
36 make &&
37 make INSTALL_ROOT=$PWD/_pkg install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 # dummy tree to avoid 'tazwok cmp --cook' building loop
44 mkdir $fs/etc
45 # pkgconfig path fixes
46 sed -i -e "s|-L$src/_pkg/usr/lib||g" $_pkg/usr/lib/pkgconfig/*.pc
47 sed -i -e "s|$src/_pkg/usr/bin/moc|/usr/bin/moc|g" $_pkg/usr/lib/pkgconfig/*.pc
48 sed -i -e "s|$src/_pkg/usr/bin/uic|/usr/bin/uic|g" $_pkg/usr/lib/pkgconfig/*.pc
49 }