wok view pan/receipt @ rev 12876

cairo-dock: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 25 13:09:27 2012 +0200 (2012-05-25)
parents 126dad74a7ba
children e714b10b01c1
line source
1 # SliTaz package receipt.
3 PACKAGE="pan"
4 VERSION="0.134"
5 CATEGORY="network"
6 SHORT_DESC="pan is a usenet newsreader"
7 MAINTAINER="allan316@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://pan.rebelbase.com"
10 WGET_URL="$WEB_SITE/download/releases/$VERSION/source/$TARBALL"
12 DEPENDS="pcre gmime gtkspell gtk+ cairo gcc-lib-base glibc-base"
13 BUILD_DEPENDS="intltool gmime-dev glib-dev gtk+-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i 's|<glib/g.*h>|<glib.h>|' pan/general/file-util.h \
20 pan/general/macros.h pan/usenet-utils/mime-utils.h \
21 pan/general/worker-pool.cc pan/general/worker-pool.h \
22 pan/usenet-utils/text-massager.cc
23 # apply debian fix for gcc 4.4.0
24 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
25 while read file last; do
26 grep -q 'include <cstdio>' pan/$file ||
27 sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
28 done <<EOT
29 general/log.cc cstdarg
30 general/progress.cc cstdarg
31 tasks/nntp.cc cstdarg
32 tasks/nntp-pool.cc config.h
33 usenet-utils/numbers.cc cctype
34 EOT
35 ./configure \
36 --prefix=/usr \
37 $CONFIGURE_ARGS &&
38 make && make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/share/applications $fs/usr/share
47 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
48 }