wok-6.x annotate h8300-gcc/receipt @ rev 17161
syslinux/iso2exe: full zImage support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 17 15:21:35 2014 +0200 (2014-09-17) |
parents | 4c16797dce28 |
children | 52649f27a0da |
rev | line source |
---|---|
rcx@3291 | 1 # SliTaz package receipt. |
rcx@3291 | 2 |
rcx@3291 | 3 PACKAGE="h8300-gcc" |
rcx@3291 | 4 SOURCE="gcc" |
rcx@5979 | 5 VERSION="4.4.4" |
rcx@3291 | 6 CATEGORY="development" |
rcx@3291 | 7 SHORT_DESC="gcc targeting the H8/300" |
rcx@3291 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15000 | 9 LICENSE="GPL2" |
rcx@3291 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
rcx@3291 | 11 WEB_SITE="http://www.gnu.org/software/gcc/" |
rcx@3291 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@13033 | 13 TAGS="compiler C C++" |
rcx@3291 | 14 |
pascal@15000 | 15 DEPENDS="h8300-binutils glibc-base gmp mpfr" |
pascal@15000 | 16 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev h8300-binutils" |
pascal@15000 | 17 |
rcx@4034 | 18 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 19 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 20 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 21 fi |
rcx@4034 | 22 |
rcx@3291 | 23 # Rules to configure and make the package. |
rcx@3291 | 24 compile_rules() |
rcx@3291 | 25 { |
rcx@3291 | 26 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3291 | 27 mkdir -p $SOURCE-$VERSION-build |
rcx@3291 | 28 cd $SOURCE-$VERSION-build |
rcx@3291 | 29 $src/configure \ |
rcx@4034 | 30 --target=$H8300_TARGET \ |
rcx@3294 | 31 --enable-languages=c,c++ \ |
rcx@3291 | 32 --disable-nls \ |
rcx@3291 | 33 --enable-target-optspace \ |
rcx@3291 | 34 --enable-obsolete \ |
rcx@3291 | 35 --prefix=/usr \ |
pascal@3996 | 36 --libexecdir=/usr/lib \ |
rcx@3291 | 37 --infodir=/usr/share/info \ |
rcx@3291 | 38 --mandir=/usr/share/man \ |
rcx@3291 | 39 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 40 make $MAKEFLAGS && |
pascal@15000 | 41 make DESTDIR=$DESTDIR install |
rcx@3291 | 42 } |
rcx@3291 | 43 |
rcx@3291 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3291 | 45 genpkg_rules() |
rcx@3291 | 46 { |
rcx@3291 | 47 mkdir -p $fs/usr |
pascal@15000 | 48 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 49 cp -a $install/usr/include $fs/usr |
rcx@3291 | 50 # do not need to copy lib/libiberty.a |
rcx@3291 | 51 mkdir -p $fs/usr/lib |
pascal@15000 | 52 cp -a $install/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 53 # Do not include the h8* variant folders; create separate packages if they are needed |
rcx@4034 | 54 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h |
rcx@4034 | 55 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s |
rcx@4034 | 56 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx |
rcx@3291 | 57 } |
rcx@3291 | 58 |
rcx@3291 | 59 # Rules to clean the package |
rcx@3291 | 60 clean_wok() |
rcx@3291 | 61 { |
rcx@3291 | 62 rm -r $SOURCE-$VERSION-build |
rcx@3291 | 63 } |