wok view ddd/receipt @ rev 25039
Up aspell-pl (6.0_20210731-0), icmptx (20190501)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 14:53:15 2022 +0000 (2022-05-26) |
parents | e84c7a387287 |
children | 64471e67874e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ddd"
4 VERSION="3.3.12"
5 CATEGORY="development"
6 SHORT_DESC="GNU Data Display Debugger, a graphical front-end for command-line debuggers."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/ddd/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="debugger"
14 DEPENDS="glibc-base gcc-lib-base ncurses freetype zlib util-linux-uuid \
15 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXaw \
16 xorg-libXdmcp xorg-libXext xorg-libXmu xorg-libXpm xorg-libXt lesstif elfutils"
17 BUILD_DEPENDS="gawk lesstif-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -ltinfo"
31 # Need to include an additional header in a file to build with gcc 4.4.0
32 DDD_FILE_TO_PATCH="ddd/strclass.C"
33 cp -f $DDD_FILE_TO_PATCH $DDD_FILE_TO_PATCH.orig &&
34 echo "#include <stdio.h>" > $DDD_FILE_TO_PATCH &&
35 cat $DDD_FILE_TO_PATCH.orig >> $DDD_FILE_TO_PATCH &&
37 ./configure \
38 --prefix=/usr \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --includedir=/usr/share/include \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/$PACKAGE-$VERSION
51 cp -a $install/usr/share/$PACKAGE-$VERSION/$PACKAGE $fs/usr/share/$PACKAGE-$VERSION
52 cp -a $install/usr/share/$PACKAGE-$VERSION/themes $fs/usr/share/$PACKAGE-$VERSION
53 cp -a $install/usr/share/$PACKAGE-$VERSION/vsllib $fs/usr/share/$PACKAGE-$VERSION
54 cp -a $install/usr/share/applications $fs/usr/share
56 mkdir -p $fs/usr/share/pixmaps
57 cp -a $src/icons/ddd.xpm $fs/usr/share/pixmaps
59 cp -a $install/usr/bin $fs/usr
60 }