wok-next 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 | c9ccc46854e4 |
children | 66ba49cddc3a |
files | h8300-gcc/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/h8300-gcc/receipt Wed Jun 03 15:24:25 2009 +0000 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="h8300-gcc" 1.7 +SOURCE="gcc" 1.8 +VERSION="4.4.0" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="gcc targeting the H8/300" 1.11 +MAINTAINER="rcx@zoominternet.net" 1.12 +DEPENDS="h8300-binutils glibc-base gmp mpfr" 1.13 +BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils" 1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +WEB_SITE="http://www.gnu.org/software/gcc/" 1.16 +WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils 1.22 + mkdir -p $SOURCE-$VERSION-build 1.23 + cd $SOURCE-$VERSION-build 1.24 + $src/configure \ 1.25 + --target=h8300-hitachi-hms \ 1.26 + --enable-languages=c,c++,java \ 1.27 + --disable-nls \ 1.28 + --enable-target-optspace \ 1.29 + --enable-obsolete \ 1.30 + --prefix=/usr \ 1.31 + --infodir=/usr/share/info \ 1.32 + --mandir=/usr/share/man \ 1.33 + $CONFIGURE_ARGS && 1.34 + make && 1.35 + make DESTDIR=$src/_pkg install 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + mkdir -p $fs/usr 1.42 + cp -a $_pkg/usr/bin $fs/usr 1.43 + cp -a $_pkg/usr/h8300-hitachi-hms $fs/usr 1.44 + cp -a $_pkg/usr/include $fs/usr 1.45 + # do not need to copy lib/libiberty.a 1.46 + mkdir -p $fs/usr/lib 1.47 + cp -a $_pkg/usr/lib/gcc $fs/usr/lib 1.48 + cp -a $_pkg/usr/libexec $fs/usr 1.49 +} 1.50 + 1.51 +# Rules to clean the package 1.52 +clean_wok() 1.53 +{ 1.54 + rm -r $SOURCE-$VERSION-build 1.55 +}