wok annotate h8300-gcc/receipt @ rev 3291

Add: h8300-gcc; Update: h8300-gcc3
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jun 03 15:24:25 2009 +0000 (2009-06-03)
parents
children d7cd7e6a6338
rev   line source
rcx@3291 1 # SliTaz package receipt.
rcx@3291 2
rcx@3291 3 PACKAGE="h8300-gcc"
rcx@3291 4 SOURCE="gcc"
rcx@3291 5 VERSION="4.4.0"
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@3291 23 --enable-languages=c,c++,java \
rcx@3291 24 --disable-nls \
rcx@3291 25 --enable-target-optspace \
rcx@3291 26 --enable-obsolete \
rcx@3291 27 --prefix=/usr \
rcx@3291 28 --infodir=/usr/share/info \
rcx@3291 29 --mandir=/usr/share/man \
rcx@3291 30 $CONFIGURE_ARGS &&
rcx@3291 31 make &&
rcx@3291 32 make DESTDIR=$src/_pkg install
rcx@3291 33 }
rcx@3291 34
rcx@3291 35 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3291 36 genpkg_rules()
rcx@3291 37 {
rcx@3291 38 mkdir -p $fs/usr
rcx@3291 39 cp -a $_pkg/usr/bin $fs/usr
rcx@3291 40 cp -a $_pkg/usr/h8300-hitachi-hms $fs/usr
rcx@3291 41 cp -a $_pkg/usr/include $fs/usr
rcx@3291 42 # do not need to copy lib/libiberty.a
rcx@3291 43 mkdir -p $fs/usr/lib
rcx@3291 44 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
rcx@3291 45 cp -a $_pkg/usr/libexec $fs/usr
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 }