wok view h8300-gcc/receipt @ rev 13811

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