wok-next annotate ddd/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 8bc836234d57
children 5669e8b3be70
rev   line source
al@20569 1 # SliTaz package receipt v2.
rcx@3342 2
rcx@3342 3 PACKAGE="ddd"
rcx@3342 4 VERSION="3.3.12"
rcx@3342 5 CATEGORY="development"
al@20569 6 SHORT_DESC="GNU Data Display Debugger, a graphical front-end for command-line \
al@20569 7 debuggers"
al@21020 8 MAINTAINER="devel@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
al@20569 10 WEB_SITE="http://www.gnu.org/software/ddd/"
al@20569 11
pascal@14999 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14999 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pascal@14999 14
pascal@19962 15 BUILD_DEPENDS="gawk lesstif-dev xorg-libXt-dev"
rcx@3342 16
al@20569 17 compile_rules() {
rcx@3342 18 # Need to include an additional header in a file to build with gcc 4.4.0
rcx@3342 19 DDD_FILE_TO_PATCH="ddd/strclass.C"
al@20569 20 cp -f $DDD_FILE_TO_PATCH $DDD_FILE_TO_PATCH.orig
al@20569 21 echo "#include <stdio.h>" > $DDD_FILE_TO_PATCH
al@20569 22 cat $DDD_FILE_TO_PATCH.orig >> $DDD_FILE_TO_PATCH
al@20569 23
rcx@3342 24 ./configure \
rcx@3342 25 --includedir=/usr/share/include \
al@20569 26 $CONFIGURE_ARGS &&
al@20569 27 fix libtool &&
al@20569 28 make &&
al@21020 29 make DESTDIR=$install install || return 1
al@20569 30
al@20569 31 install -Dm644 $src/icons/ddd.xpm $install/usr/share/pixmaps/ddd.xpm
al@20569 32
al@20569 33 docdir=$install/usr/share/doc/$PACKAGE-$VERSION
pascal@20571 34 mkdir -p $docdir
al@20569 35 mv $install/usr/share/$PACKAGE-$VERSION/COPYING $docdir
al@20569 36 mv $install/usr/share/$PACKAGE-$VERSION/NEWS $docdir
rcx@3342 37 }
rcx@3342 38
al@20569 39 genpkg_rules() {
al@20569 40 copy @std
al@20569 41 DEPENDS="glibc-base gcc-lib-base ncurses freetype zlib util-linux-uuid \
al@20569 42 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXaw \
al@20569 43 xorg-libXdmcp xorg-libXext xorg-libXmu xorg-libXpm xorg-libXt lesstif elfutils"
al@20569 44 TAGS="debugger"
rcx@3342 45 }