wok view h8300-gdb/receipt @ rev 24749
cairo: modified lookup-symbol.c for binutils-2.37
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 17:06:35 2022 +0100 (2022-03-16) |
parents | 71360a13cd94 |
children | 76aba861a11e |
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gdb"
4 SOURCE="gdb"
5 VERSION="7.1"
6 CATEGORY="development"
7 SHORT_DESC="The GNU Project Debugger targeting the H8/300."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/gdb/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
14 DEPENDS="ncurses expat"
15 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev"
17 # Configuration only needs included if we're in the build/wok environment
18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
19 . $WOK/h8300-toolchain/stuff/h8300.conf
20 fi
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Configuration only needs included if we're in the build/wok environment
33 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
34 . $WOK/h8300-toolchain/stuff/h8300.conf
35 fi
36 mkdir -p $SOURCE-$VERSION-build
37 cd $SOURCE-$VERSION-build
38 $src/configure \
39 --disable-werror \
40 --target=$H8300_TARGET \
41 --prefix=/usr \
42 --infodir=/usr/share/info \
43 --mandir=/usr/share/man \
44 $CONFIGURE_ARGS &&
45 make $MAKEFLAGS &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr/bin $fs/usr
54 }
56 # Rules to clean the package
57 clean_wok()
58 {
59 rm -r -f $SOURCE-$VERSION-build
60 }