wok-next annotate h8300-gdb/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d2950281f122
children
rev   line source
pascal@20377 1 # SliTaz package receipt v2.
pascal@2176 2
pascal@2176 3 PACKAGE="h8300-gdb"
pascal@2176 4 SOURCE="gdb"
rcx@5986 5 VERSION="7.1"
pascal@2176 6 CATEGORY="development"
al@20956 7 SHORT_DESC="The GNU Project Debugger targeting the H8/300"
al@21020 8 MAINTAINER="devel@slitaz.org"
pascal@15215 9 LICENSE="GPL2"
al@20956 10 WEB_SITE="http://www.gnu.org/software/gdb/"
al@20956 11
pascal@2176 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2176 13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
pascal@2176 14
pascal@20377 15 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev texinfo gcc49"
al@21020 16 SPLIT="$PACKAGE-dev"
pascal@15215 17
rcx@4034 18 # Configuration only needs included if we're in the build/wok environment
al@21020 19 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ]; then
rcx@4034 20 . $WOK/h8300-toolchain/stuff/h8300.conf
rcx@4034 21 fi
rcx@4034 22
al@20956 23 compile_rules() {
rcx@4034 24 mkdir -p $SOURCE-$VERSION-build
rcx@4034 25 cd $SOURCE-$VERSION-build
al@20956 26
pascal@2176 27 $src/configure \
pascal@20377 28 CC=gcc-49 CXX=g++-49 \
rcx@4034 29 --disable-werror \
rcx@4034 30 --target=$H8300_TARGET \
pascal@2176 31 --prefix=/usr \
pascal@2176 32 --infodir=/usr/share/info \
pascal@2176 33 --mandir=/usr/share/man \
pascal@2176 34 $CONFIGURE_ARGS &&
pascal@15265 35 make $MAKEFLAGS &&
al@21020 36 make DESTDIR=$install install
pascal@2176 37 }
pascal@2176 38
al@20956 39 genpkg_rules() {
pascal@20377 40 case $PACKAGE in
al@20956 41 h8300-gdb)
al@20956 42 copy @std
al@20956 43 DEPENDS="ncurses expat"
al@20956 44 ;;
al@21020 45 *-dev)
al@20956 46 copy @dev
al@20956 47 ;;
pascal@20377 48 esac
pascal@2176 49 }