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