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