wok-6.x annotate h8300-gcc3/receipt @ rev 4029
Update: h8300-gcc3 (add PROVIDE)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Sep 05 15:03:56 2009 +0000 (2009-09-05) |
parents | 3ecbb6f5aa64 |
children | 57411a44bf69 |
rev | line source |
---|---|
pascal@2176 | 1 # SliTaz package receipt. |
pascal@2176 | 2 |
pascal@2176 | 3 PACKAGE="h8300-gcc3" |
pascal@2176 | 4 SOURCE="gcc" |
pascal@2176 | 5 VERSION="3.4.6" |
pascal@2176 | 6 CATEGORY="development" |
pascal@2176 | 7 SHORT_DESC="gcc targeting the H8/300" |
pascal@2176 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@2176 | 9 DEPENDS="h8300-binutils" |
rcx@3290 | 10 BUILD_DEPENDS="slitaz-toolchain bison flex h8300-binutils" |
pascal@2176 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 12 WEB_SITE="http://www.gnu.org/software/gcc/" |
pascal@2176 | 13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
rcx@4029 | 14 PROVIDE="h8300-gcc" |
pascal@2176 | 15 |
pascal@2176 | 16 # Rules to configure and make the package. |
pascal@2176 | 17 compile_rules() |
pascal@2176 | 18 { |
rcx@3292 | 19 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3292 | 20 mkdir -p $SOURCE-$VERSION-build |
rcx@3292 | 21 cd $SOURCE-$VERSION-build |
pascal@2176 | 22 $src/configure \ |
pascal@2176 | 23 --target=h8300-hitachi-hms \ |
rcx@3294 | 24 --enable-languages=c,c++,ada \ |
pascal@2176 | 25 --disable-nls \ |
pascal@2176 | 26 --enable-target-optspace \ |
pascal@2176 | 27 --prefix=/usr \ |
pascal@4014 | 28 --exec-prefix=/usr \ |
pascal@4014 | 29 --libexecdir=/usr/lib \ |
pascal@2176 | 30 --infodir=/usr/share/info \ |
pascal@2176 | 31 --mandir=/usr/share/man \ |
pascal@2176 | 32 $CONFIGURE_ARGS && |
pascal@2176 | 33 make && |
pascal@2176 | 34 make DESTDIR=$src/_pkg install |
pascal@2176 | 35 } |
pascal@2176 | 36 |
pascal@2176 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 38 genpkg_rules() |
pascal@2176 | 39 { |
pascal@2176 | 40 mkdir -p $fs/usr |
pascal@2176 | 41 cp -a $_pkg/usr/bin $fs/usr |
pascal@2176 | 42 cp -a $_pkg/usr/include $fs/usr |
pascal@2176 | 43 # do not need to copy lib/libiberty.a |
pascal@2176 | 44 mkdir -p $fs/usr/lib |
pascal@2176 | 45 cp -a $_pkg/usr/lib/gcc $fs/usr/lib |
pascal@2176 | 46 } |
rcx@3292 | 47 |
rcx@3292 | 48 # Rules to clean the package |
rcx@3292 | 49 clean_wok() |
rcx@3292 | 50 { |
rcx@3292 | 51 rm -r $SOURCE-$VERSION-build |
rcx@3292 | 52 } |