wok annotate qt4/receipt @ rev 9088

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