wok-next view h8300-gdb/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 | d2950281f122 |
children |
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.gnu.org/software/gdb/"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
15 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev texinfo gcc49"
16 SPLIT="$PACKAGE-dev"
18 # Configuration only needs included if we're in the build/wok environment
19 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ]; then
20 . $WOK/h8300-toolchain/stuff/h8300.conf
21 fi
23 compile_rules() {
24 mkdir -p $SOURCE-$VERSION-build
25 cd $SOURCE-$VERSION-build
27 $src/configure \
28 CC=gcc-49 CXX=g++-49 \
29 --disable-werror \
30 --target=$H8300_TARGET \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make $MAKEFLAGS &&
36 make DESTDIR=$install install
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 h8300-gdb)
42 copy @std
43 DEPENDS="ncurses expat"
44 ;;
45 *-dev)
46 copy @dev
47 ;;
48 esac
49 }