wok rev 3342

Add: ddd
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 11 09:56:39 2009 +0000 (2009-06-11)
parents cb584f8838ef
children 304cde9af058
files ddd/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ddd/receipt	Thu Jun 11 09:56:39 2009 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ddd"
     1.7 +VERSION="3.3.12"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="GNU Data Display Debugger."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +DEPENDS="lesstif"
    1.12 +BUILD_DEPENDS="slitaz-toolchain gawk lesstif-dev lesstif xorg-dev"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.gnu.org/software/ddd/"
    1.15 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	
    1.22 +	# Need to include an additional header in a file to build with gcc 4.4.0
    1.23 +	DDD_FILE_TO_PATCH="ddd/strclass.C"
    1.24 +	cp -f $DDD_FILE_TO_PATCH $DDD_FILE_TO_PATCH.orig  &&
    1.25 +	echo "#include <stdio.h>" > $DDD_FILE_TO_PATCH  &&
    1.26 +	cat $DDD_FILE_TO_PATCH.orig >> $DDD_FILE_TO_PATCH  &&
    1.27 +	
    1.28 +	./configure \
    1.29 +		--prefix=/usr \
    1.30 +		--infodir=/usr/share/info \
    1.31 +		--mandir=/usr/share/man \
    1.32 +		--includedir=/usr/share/include \
    1.33 +		$CONFIGURE_ARGS  &&
    1.34 +	make  &&
    1.35 +	make DESTDIR=$PWD/_pkg install
    1.36 +}
    1.37 +
    1.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 +genpkg_rules()
    1.40 +{
    1.41 +	mkdir -p $fs/usr/share/$PACKAGE-$VERSION
    1.42 +	cp -a $_pkg/usr/share/$PACKAGE-$VERSION/$PACKAGE $fs/usr/share/$PACKAGE-$VERSION
    1.43 +	cp -a $_pkg/usr/share/$PACKAGE-$VERSION/themes $fs/usr/share/$PACKAGE-$VERSION
    1.44 +	cp -a $_pkg/usr/share/$PACKAGE-$VERSION/vsllib $fs/usr/share/$PACKAGE-$VERSION
    1.45 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.46 +	
    1.47 +	mkdir -p $fs/usr/share/pixmaps
    1.48 +	cp -a $src/icons/ddd.xpm $fs/usr/share/pixmaps
    1.49 +
    1.50 +	cp -a $_pkg/usr/bin $fs/usr
    1.51 +}
    1.52 +