wok annotate stardict/receipt @ rev 13956

gpm: /usr/lib/*.so must be executable
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 30 12:46:41 2013 +0000 (2013-01-30)
parents 4454b920a23d
children 2b9f96603415
rev   line source
lufeng369@7378 1 # SliTaz package receipt.
lufeng369@7378 2
lufeng369@7378 3 PACKAGE="stardict"
lufeng369@7378 4 VERSION="3.0.1"
lufeng369@7378 5 CATEGORY="utilities"
lufeng369@7378 6 SHORT_DESC="A powerful international dictionary written in Gtk2"
lufeng369@7378 7 MAINTAINER="lufeng369@gmail.com"
lufeng369@7378 8 DEPENDS="enchant libsigc++ gtk+ xorg-libSM"
pascal@11581 9 BUILD_DEPENDS="bzip2 enchant-dev tar intltool popt libsigc++-dev gtk+-dev \
pankso@12481 10 xorg-libSM-dev zlib-dev util-linux-uuid-dev libffi"
lufeng369@7378 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@12620 12 WEB_SITE="http://code.google.com/p/stardict-3/"
pascal@12620 13 WGET_URL="http://stardict-3.googlecode.com/files/$TARBALL"
lufeng369@7378 14
lufeng369@7378 15 # Rules to configure and make the package.
lufeng369@7378 16 compile_rules()
lufeng369@7378 17 {
lufeng369@7379 18 cd $src
pascal@12678 19 sed -i 's/<vector>/&\n#include <stdio.h>/' stardict-plugins/stardict-wordnet-plugin/scene.hpp
pascal@8974 20 patch -p1 < $stuff/sigc++.patch || return 1
pascal@8974 21 patch -p1 < $stuff/stardict_gcc43.patch || return 1
lufeng369@7378 22
lufeng369@7379 23 ./configure \
lufeng369@7379 24 --prefix=/usr \
lufeng369@7379 25 --disable-man \
lufeng369@7379 26 --disable-qqwry \
lufeng369@7379 27 --sysconfdir=/etc \
lufeng369@7379 28 --disable-gnome-support \
lufeng369@7379 29 --disable-schemas-install \
lufeng369@7379 30 --disable-espeak \
lufeng369@7379 31 --disable-gucharmap \
lufeng369@7379 32 --disable-festival \
lufeng369@7379 33 --disable-advertisement \
gokhlayeh@11573 34 --disable-updateinfo \
gokhlayeh@11573 35 $CONFIGURE_ARGS &&
lufeng369@7379 36 make && make DESTDIR=$PWD/_pkg install
lufeng369@7378 37 }
lufeng369@7378 38
lufeng369@7378 39 # Rules to gen a SliTaz package suitable for Tazpkg.
lufeng369@7378 40 genpkg_rules()
lufeng369@7378 41 {
lufeng369@7379 42 mkdir -p $fs/usr
lufeng369@7379 43 cp -a $_pkg/usr $fs/
lufeng369@7378 44 }