wok annotate ddd/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (9 days ago) |
parents | d79ed38ace18 |
children |
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@25569 | 11 #WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@25637 | 12 WGET_URL="https://web.archive.org/web/20230113073930/https://ftp.gnu.org/gnu/ddd/$TARBALL" |
pascal@14999 | 13 TAGS="debugger" |
pascal@14999 | 14 |
pankso@12481 | 15 DEPENDS="glibc-base gcc-lib-base ncurses freetype zlib util-linux-uuid \ |
rcx@3343 | 16 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXaw \ |
slaxemulator@8137 | 17 xorg-libXdmcp xorg-libXext xorg-libXmu xorg-libXpm xorg-libXt lesstif elfutils" |
slaxemulator@8960 | 18 BUILD_DEPENDS="gawk lesstif-dev" |
rcx@3342 | 19 |
pascal@24336 | 20 # What is the latest version available today? |
pascal@24336 | 21 current_version() |
pascal@24336 | 22 { |
pascal@25609 | 23 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \ |
pascal@24336 | 24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 25 } |
pascal@24336 | 26 |
rcx@3342 | 27 # Rules to configure and make the package. |
rcx@3342 | 28 compile_rules() |
rcx@3342 | 29 { |
pascal@17749 | 30 export LDFLAGS="$LDFLAGS -ltinfo" |
rcx@3342 | 31 |
rcx@3342 | 32 # Need to include an additional header in a file to build with gcc 4.4.0 |
rcx@3342 | 33 DDD_FILE_TO_PATCH="ddd/strclass.C" |
rcx@3342 | 34 cp -f $DDD_FILE_TO_PATCH $DDD_FILE_TO_PATCH.orig && |
rcx@3342 | 35 echo "#include <stdio.h>" > $DDD_FILE_TO_PATCH && |
rcx@3342 | 36 cat $DDD_FILE_TO_PATCH.orig >> $DDD_FILE_TO_PATCH && |
rcx@3342 | 37 |
rcx@3342 | 38 ./configure \ |
rcx@3342 | 39 --prefix=/usr \ |
rcx@3342 | 40 --infodir=/usr/share/info \ |
rcx@3342 | 41 --mandir=/usr/share/man \ |
rcx@3342 | 42 --includedir=/usr/share/include \ |
rcx@3342 | 43 $CONFIGURE_ARGS && |
rcx@3342 | 44 make && |
pascal@14999 | 45 make DESTDIR=$DESTDIR install |
rcx@3342 | 46 } |
rcx@3342 | 47 |
rcx@3342 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3342 | 49 genpkg_rules() |
rcx@3342 | 50 { |
rcx@3342 | 51 mkdir -p $fs/usr/share/$PACKAGE-$VERSION |
pascal@14999 | 52 cp -a $install/usr/share/$PACKAGE-$VERSION/$PACKAGE $fs/usr/share/$PACKAGE-$VERSION |
pascal@14999 | 53 cp -a $install/usr/share/$PACKAGE-$VERSION/themes $fs/usr/share/$PACKAGE-$VERSION |
pascal@14999 | 54 cp -a $install/usr/share/$PACKAGE-$VERSION/vsllib $fs/usr/share/$PACKAGE-$VERSION |
pascal@14999 | 55 cp -a $install/usr/share/applications $fs/usr/share |
rcx@3342 | 56 |
rcx@3342 | 57 mkdir -p $fs/usr/share/pixmaps |
rcx@3342 | 58 cp -a $src/icons/ddd.xpm $fs/usr/share/pixmaps |
rcx@3342 | 59 |
pascal@14999 | 60 cp -a $install/usr/bin $fs/usr |
rcx@3342 | 61 } |