wok-current annotate h8300-gcc/receipt @ rev 14495
kbd-base/stuff/keymaps-path.list: add greek keymaps
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu May 09 20:32:53 2013 +0000 (2013-05-09) |
parents | 8e4c74abdf74 |
children | 380ffe05937a |
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" |
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" |
pascal@13033 | 14 TAGS="compiler C C++" |
rcx@3291 | 15 |
rcx@4034 | 16 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 17 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 18 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 19 fi |
rcx@4034 | 20 |
rcx@3291 | 21 # Rules to configure and make the package. |
rcx@3291 | 22 compile_rules() |
rcx@3291 | 23 { |
rcx@3291 | 24 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3291 | 25 mkdir -p $SOURCE-$VERSION-build |
rcx@3291 | 26 cd $SOURCE-$VERSION-build |
rcx@3291 | 27 $src/configure \ |
rcx@4034 | 28 --target=$H8300_TARGET \ |
rcx@3294 | 29 --enable-languages=c,c++ \ |
rcx@3291 | 30 --disable-nls \ |
rcx@3291 | 31 --enable-target-optspace \ |
rcx@3291 | 32 --enable-obsolete \ |
rcx@3291 | 33 --prefix=/usr \ |
pascal@3996 | 34 --libexecdir=/usr/lib \ |
rcx@3291 | 35 --infodir=/usr/share/info \ |
rcx@3291 | 36 --mandir=/usr/share/man \ |
rcx@3291 | 37 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 38 make $MAKEFLAGS && |
rcx@3291 | 39 make DESTDIR=$src/_pkg install |
rcx@3291 | 40 } |
rcx@3291 | 41 |
rcx@3291 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3291 | 43 genpkg_rules() |
rcx@3291 | 44 { |
rcx@3291 | 45 mkdir -p $fs/usr |
rcx@3291 | 46 cp -a $_pkg/usr/bin $fs/usr |
rcx@3291 | 47 cp -a $_pkg/usr/include $fs/usr |
rcx@3291 | 48 # do not need to copy lib/libiberty.a |
rcx@3291 | 49 mkdir -p $fs/usr/lib |
rcx@3291 | 50 cp -a $_pkg/usr/lib/gcc $fs/usr/lib |
rcx@4034 | 51 # Do not include the h8* 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 |
rcx@4034 | 54 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx |
rcx@3291 | 55 } |
rcx@3291 | 56 |
rcx@3291 | 57 # Rules to clean the package |
rcx@3291 | 58 clean_wok() |
rcx@3291 | 59 { |
rcx@3291 | 60 rm -r $SOURCE-$VERSION-build |
rcx@3291 | 61 } |