wok view stardict/receipt @ rev 24768

libwebkit: bison 3 fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 12:46:44 2022 +0000 (2022-03-19)
parents ed3f388d2297
children d765616e1f3d
line source
1 # SliTaz package receipt.
3 PACKAGE="stardict"
4 VERSION="3.0.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A powerful international dictionary written in Gtk2."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://stardict-4.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://stardict-3.googlecode.com/files/$TARBALL"
14 DEPENDS="enchant gtk+ libsigc++ xorg-libSM"
15 BUILD_DEPENDS="bzip2 enchant-dev gtk+-dev intltool libffi libsigc++-dev \
16 popt util-linux-uuid-dev xorg-libSM-dev zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - http://stardict-4.sourceforge.net/index_en.php 2>/dev/null | \
22 sed '/StarDict [0-9]/!d;s|.*StarDict ||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/<vector>/&\n#include <stdio.h>/' \
29 stardict-plugins/stardict-wordnet-plugin/scene.hpp
30 patch -p1 < $stuff/sigc++.patch || return 1
31 patch -p1 < $stuff/stardict_gcc43.patch || return 1
33 ./configure \
34 --prefix=/usr \
35 --disable-man \
36 --disable-qqwry \
37 --sysconfdir=/etc \
38 --disable-gnome-support \
39 --disable-schemas-install \
40 --disable-espeak \
41 --disable-gucharmap \
42 --disable-festival \
43 --disable-advertisement \
44 --disable-updateinfo \
45 $CONFIGURE_ARGS &&
46 make &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
54 cp -a $install/usr $fs
55 }