wok-6.x annotate h8300-gcc3/receipt @ rev 13799
Up: xf86-video-intel (2.20.17)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Jan 06 04:31:04 2013 +0300 (2013-01-06) |
parents | 8e4c74abdf74 |
children | 380ffe05937a |
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" |
slaxemulator@9127 | 10 BUILD_DEPENDS="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@13033 | 15 TAGS="compiler C C++ ada" |
pascal@2176 | 16 |
rcx@4034 | 17 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 19 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 20 fi |
rcx@4034 | 21 |
pascal@2176 | 22 # Rules to configure and make the package. |
pascal@2176 | 23 compile_rules() |
pascal@2176 | 24 { |
rcx@3292 | 25 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3292 | 26 mkdir -p $SOURCE-$VERSION-build |
rcx@3292 | 27 cd $SOURCE-$VERSION-build |
pascal@2176 | 28 $src/configure \ |
rcx@4034 | 29 --target=$H8300_TARGET \ |
rcx@3294 | 30 --enable-languages=c,c++,ada \ |
pascal@2176 | 31 --disable-nls \ |
pascal@2176 | 32 --enable-target-optspace \ |
pascal@2176 | 33 --prefix=/usr \ |
pascal@4014 | 34 --libexecdir=/usr/lib \ |
pascal@2176 | 35 --infodir=/usr/share/info \ |
pascal@2176 | 36 --mandir=/usr/share/man \ |
pascal@2176 | 37 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 38 make $MAKEFLAGS && |
pascal@2176 | 39 make DESTDIR=$src/_pkg install |
pascal@2176 | 40 } |
pascal@2176 | 41 |
pascal@2176 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 43 genpkg_rules() |
pascal@2176 | 44 { |
pascal@2176 | 45 mkdir -p $fs/usr |
pascal@2176 | 46 cp -a $_pkg/usr/bin $fs/usr |
pascal@2176 | 47 cp -a $_pkg/usr/include $fs/usr |
rcx@4034 | 48 # Do not need to copy lib/libiberty.a |
pascal@2176 | 49 mkdir -p $fs/usr/lib |
pascal@2176 | 50 cp -a $_pkg/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 51 # Do not include the h8300* variant folders; create separate packages if they are needed |
rcx@4034 | 52 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h |
rcx@4034 | 53 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s |
pascal@2176 | 54 } |
rcx@3292 | 55 |
rcx@3292 | 56 # Rules to clean the package |
rcx@3292 | 57 clean_wok() |
rcx@3292 | 58 { |
rcx@3292 | 59 rm -r $SOURCE-$VERSION-build |
rcx@3292 | 60 } |