wok-6.x annotate stardict/receipt @ rev 21206

Add lbzip2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 20:47:35 2019 +0200 (2019-04-07)
parents 6135577f4d08
children ed3f388d2297
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"
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
lufeng369@7378 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20682 10 WEB_SITE="http://stardict-4.sourceforge.net/"
pascal@12620 11 WGET_URL="http://stardict-3.googlecode.com/files/$TARBALL"
lufeng369@7378 12
pascal@14999 13 DEPENDS="enchant libsigc++ gtk+ xorg-libSM"
pascal@14999 14 BUILD_DEPENDS="bzip2 enchant-dev tar intltool popt libsigc++-dev gtk+-dev \
pascal@14999 15 xorg-libSM-dev zlib-dev util-linux-uuid-dev libffi"
pascal@14999 16
lufeng369@7378 17 # Rules to configure and make the package.
lufeng369@7378 18 compile_rules()
lufeng369@7378 19 {
pascal@14999 20 cd $src
pascal@14999 21 sed -i 's/<vector>/&\n#include <stdio.h>/' stardict-plugins/stardict-wordnet-plugin/scene.hpp
pascal@14999 22 patch -p1 < $stuff/sigc++.patch || return 1
pascal@14999 23 patch -p1 < $stuff/stardict_gcc43.patch || return 1
lufeng369@7378 24
pascal@14999 25 ./configure \
pascal@14999 26 --prefix=/usr \
pascal@14999 27 --disable-man \
pascal@14999 28 --disable-qqwry \
pascal@14999 29 --sysconfdir=/etc \
pascal@14999 30 --disable-gnome-support \
pascal@14999 31 --disable-schemas-install \
pascal@14999 32 --disable-espeak \
pascal@14999 33 --disable-gucharmap \
pascal@14999 34 --disable-festival \
pascal@14999 35 --disable-advertisement \
pascal@14999 36 --disable-updateinfo \
pascal@14999 37 $CONFIGURE_ARGS &&
pascal@14999 38 make && make DESTDIR=$DESTDIR install
lufeng369@7378 39 }
lufeng369@7378 40
lufeng369@7378 41 # Rules to gen a SliTaz package suitable for Tazpkg.
lufeng369@7378 42 genpkg_rules()
lufeng369@7378 43 {
pascal@14999 44 mkdir -p $fs/usr
pascal@14999 45 cp -a $install/usr $fs/
lufeng369@7378 46 }