wok annotate h8300-gcc/receipt @ rev 3996

h8300-gcc: fix FSH (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 30 16:04:45 2009 +0200 (2009-08-30)
parents da36d8ad132e
children 57411a44bf69
rev   line source
rcx@3291 1 # SliTaz package receipt.
rcx@3291 2
rcx@3291 3 PACKAGE="h8300-gcc"
rcx@3291 4 SOURCE="gcc"
rcx@3993 5 VERSION="4.4.1"
rcx@3291 6 CATEGORY="development"
rcx@3291 7 SHORT_DESC="gcc targeting the H8/300"
rcx@3291 8 MAINTAINER="rcx@zoominternet.net"
rcx@3291 9 DEPENDS="h8300-binutils glibc-base gmp mpfr"
rcx@3291 10 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils"
rcx@3291 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
rcx@3291 12 WEB_SITE="http://www.gnu.org/software/gcc/"
rcx@3291 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
rcx@3291 14
rcx@3291 15 # Rules to configure and make the package.
rcx@3291 16 compile_rules()
rcx@3291 17 {
rcx@3291 18 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
rcx@3291 19 mkdir -p $SOURCE-$VERSION-build
rcx@3291 20 cd $SOURCE-$VERSION-build
rcx@3291 21 $src/configure \
rcx@3291 22 --target=h8300-hitachi-hms \
rcx@3294 23 --enable-languages=c,c++ \
rcx@3291 24 --disable-nls \
rcx@3291 25 --enable-target-optspace \
rcx@3291 26 --enable-obsolete \
rcx@3291 27 --prefix=/usr \
pascal@3996 28 --exec-prefix=/usr \
pascal@3996 29 --libexecdir=/usr/lib \
rcx@3291 30 --infodir=/usr/share/info \
rcx@3291 31 --mandir=/usr/share/man \
rcx@3291 32 $CONFIGURE_ARGS &&
rcx@3291 33 make &&
rcx@3291 34 make DESTDIR=$src/_pkg install
rcx@3291 35 }
rcx@3291 36
rcx@3291 37 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3291 38 genpkg_rules()
rcx@3291 39 {
rcx@3291 40 mkdir -p $fs/usr
rcx@3291 41 cp -a $_pkg/usr/bin $fs/usr
rcx@3291 42 cp -a $_pkg/usr/include $fs/usr
rcx@3291 43 # do not need to copy lib/libiberty.a
rcx@3291 44 mkdir -p $fs/usr/lib
rcx@3291 45 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
rcx@3291 46 }
rcx@3291 47
rcx@3291 48 # Rules to clean the package
rcx@3291 49 clean_wok()
rcx@3291 50 {
rcx@3291 51 rm -r $SOURCE-$VERSION-build
rcx@3291 52 }