wok annotate ddd/receipt @ rev 3342

Add: ddd
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 11 09:56:39 2009 +0000 (2009-06-11)
parents
children 304cde9af058
rev   line source
rcx@3342 1 # SliTaz package receipt.
rcx@3342 2
rcx@3342 3 PACKAGE="ddd"
rcx@3342 4 VERSION="3.3.12"
rcx@3342 5 CATEGORY="development"
rcx@3342 6 SHORT_DESC="GNU Data Display Debugger."
rcx@3342 7 MAINTAINER="rcx@zoominternet.net"
rcx@3342 8 DEPENDS="lesstif"
rcx@3342 9 BUILD_DEPENDS="slitaz-toolchain gawk lesstif-dev lesstif xorg-dev"
rcx@3342 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
rcx@3342 11 WEB_SITE="http://www.gnu.org/software/ddd/"
rcx@3342 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
rcx@3342 13
rcx@3342 14 # Rules to configure and make the package.
rcx@3342 15 compile_rules()
rcx@3342 16 {
rcx@3342 17 cd $src
rcx@3342 18
rcx@3342 19 # Need to include an additional header in a file to build with gcc 4.4.0
rcx@3342 20 DDD_FILE_TO_PATCH="ddd/strclass.C"
rcx@3342 21 cp -f $DDD_FILE_TO_PATCH $DDD_FILE_TO_PATCH.orig &&
rcx@3342 22 echo "#include <stdio.h>" > $DDD_FILE_TO_PATCH &&
rcx@3342 23 cat $DDD_FILE_TO_PATCH.orig >> $DDD_FILE_TO_PATCH &&
rcx@3342 24
rcx@3342 25 ./configure \
rcx@3342 26 --prefix=/usr \
rcx@3342 27 --infodir=/usr/share/info \
rcx@3342 28 --mandir=/usr/share/man \
rcx@3342 29 --includedir=/usr/share/include \
rcx@3342 30 $CONFIGURE_ARGS &&
rcx@3342 31 make &&
rcx@3342 32 make DESTDIR=$PWD/_pkg install
rcx@3342 33 }
rcx@3342 34
rcx@3342 35 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3342 36 genpkg_rules()
rcx@3342 37 {
rcx@3342 38 mkdir -p $fs/usr/share/$PACKAGE-$VERSION
rcx@3342 39 cp -a $_pkg/usr/share/$PACKAGE-$VERSION/$PACKAGE $fs/usr/share/$PACKAGE-$VERSION
rcx@3342 40 cp -a $_pkg/usr/share/$PACKAGE-$VERSION/themes $fs/usr/share/$PACKAGE-$VERSION
rcx@3342 41 cp -a $_pkg/usr/share/$PACKAGE-$VERSION/vsllib $fs/usr/share/$PACKAGE-$VERSION
rcx@3342 42 cp -a $_pkg/usr/share/applications $fs/usr/share
rcx@3342 43
rcx@3342 44 mkdir -p $fs/usr/share/pixmaps
rcx@3342 45 cp -a $src/icons/ddd.xpm $fs/usr/share/pixmaps
rcx@3342 46
rcx@3342 47 cp -a $_pkg/usr/bin $fs/usr
rcx@3342 48 }
rcx@3342 49