wok-current annotate h8300-gdb/receipt @ rev 13296

Add dukto
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 28 13:52:43 2012 +0200 (2012-08-28)
parents f71157a571d0
children 7bb096863642
rev   line source
pascal@2176 1 # SliTaz package receipt.
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"
pascal@2176 7 SHORT_DESC="The GNU Project Debugger targeting the H8/300."
pascal@2176 8 MAINTAINER="rcx@zoominternet.net"
pascal@2482 9 DEPENDS="ncurses expat"
rcx@3290 10 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev"
pascal@2176 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2176 12 WEB_SITE="http://www.gnu.org/software/gdb/"
pascal@2176 13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
pascal@2176 14
rcx@4034 15 # Configuration only needs included if we're in the build/wok environment
rcx@4034 16 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
rcx@4034 17 . $WOK/h8300-toolchain/stuff/h8300.conf
rcx@4034 18 fi
rcx@4034 19
pascal@2176 20 # Rules to configure and make the package.
pascal@2176 21 compile_rules()
pascal@2176 22 {
rcx@4034 23 mkdir -p $SOURCE-$VERSION-build
rcx@4034 24 cd $SOURCE-$VERSION-build
pascal@2176 25 $src/configure \
rcx@4034 26 --disable-werror \
rcx@4034 27 --target=$H8300_TARGET \
pascal@2176 28 --prefix=/usr \
pascal@2176 29 --infodir=/usr/share/info \
pascal@2176 30 --mandir=/usr/share/man \
pascal@2176 31 $CONFIGURE_ARGS &&
gokhlayeh@11574 32 make $MAKEFLAGS &&
pascal@2176 33 make DESTDIR=$src/_pkg install
pascal@2176 34 }
pascal@2176 35
pascal@2176 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2176 37 genpkg_rules()
pascal@2176 38 {
pascal@2176 39 mkdir -p $fs/usr
pascal@2176 40 cp -a $_pkg/usr/bin $fs/usr
pascal@2176 41 }
rcx@4034 42
rcx@4034 43 # Rules to clean the package
rcx@4034 44 clean_wok()
rcx@4034 45 {
rcx@4034 46 rm -r -f $SOURCE-$VERSION-build
rcx@4034 47 }