wok annotate h8300-gcc3/receipt @ rev 15029
partclone: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 12 09:47:27 2013 +0000 (2013-08-12) |
parents | 380ffe05937a |
children | 600949c94110 |
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@15000 | 9 LICENSE="GPL2" |
pascal@2176 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 11 WEB_SITE="http://www.gnu.org/software/gcc/" |
pascal@2176 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
rcx@4029 | 13 PROVIDE="h8300-gcc" |
pascal@13033 | 14 TAGS="compiler C C++ ada" |
pascal@2176 | 15 |
pascal@15000 | 16 DEPENDS="h8300-binutils" |
pascal@15000 | 17 BUILD_DEPENDS="bison flex h8300-binutils" |
pascal@15000 | 18 |
rcx@4034 | 19 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 20 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 21 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 22 fi |
rcx@4034 | 23 |
pascal@2176 | 24 # Rules to configure and make the package. |
pascal@2176 | 25 compile_rules() |
pascal@2176 | 26 { |
rcx@3292 | 27 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils |
rcx@3292 | 28 mkdir -p $SOURCE-$VERSION-build |
rcx@3292 | 29 cd $SOURCE-$VERSION-build |
pascal@2176 | 30 $src/configure \ |
rcx@4034 | 31 --target=$H8300_TARGET \ |
rcx@3294 | 32 --enable-languages=c,c++,ada \ |
pascal@2176 | 33 --disable-nls \ |
pascal@2176 | 34 --enable-target-optspace \ |
pascal@2176 | 35 --prefix=/usr \ |
pascal@4014 | 36 --libexecdir=/usr/lib \ |
pascal@2176 | 37 --infodir=/usr/share/info \ |
pascal@2176 | 38 --mandir=/usr/share/man \ |
pascal@2176 | 39 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 40 make $MAKEFLAGS && |
pascal@15019 | 41 make DESTDIR=$DESTDIR install 2>&1 | grep -v man1/h8300-hitachi-hms-g |
pascal@2176 | 42 } |
pascal@2176 | 43 |
pascal@2176 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 45 genpkg_rules() |
pascal@2176 | 46 { |
pascal@2176 | 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@4034 | 50 # Do not need to copy lib/libiberty.a |
pascal@2176 | 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 h8300* 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 |
pascal@2176 | 56 } |
rcx@3292 | 57 |
rcx@3292 | 58 # Rules to clean the package |
rcx@3292 | 59 clean_wok() |
rcx@3292 | 60 { |
rcx@3292 | 61 rm -r $SOURCE-$VERSION-build |
rcx@3292 | 62 } |