wok annotate ddd/receipt @ rev 25289

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