wok-6.x view h8300-gcc3/receipt @ rev 23751
updated xine-lib, xine-lib-dev and xine fonts (1.2.9 -> 1.2.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 01 16:04:39 2020 +0100 (2020-05-01) |
parents | 7196945bca36 |
children | 52649f27a0da |
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc3"
4 SOURCE="gcc"
5 VERSION="3.4.6"
6 CATEGORY="development"
7 SHORT_DESC="gcc targeting the H8/300"
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gnu.org/software/gcc/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
13 PROVIDE="h8300-gcc"
14 TAGS="compiler C C++ ada"
16 DEPENDS="h8300-binutils"
17 BUILD_DEPENDS="bison flex h8300-binutils"
19 # Configuration only needs included if we're in the build/wok environment
20 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
21 . $WOK/h8300-toolchain/stuff/h8300.conf
22 fi
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
28 mkdir -p $SOURCE-$VERSION-build \
29 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man7
30 cd $SOURCE-$VERSION-build
31 $src/configure \
32 --target=$H8300_TARGET \
33 --enable-languages=c,c++,ada \
34 --disable-nls \
35 --enable-target-optspace \
36 --prefix=/usr \
37 --libexecdir=/usr/lib \
38 --infodir=/usr/share/info \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/include $fs/usr
51 # Do not need to copy lib/libiberty.a
52 mkdir -p $fs/usr/lib
53 cp -a $install/usr/lib/gcc $fs/usr/lib
54 # Do not include the h8300* variant folders; create separate packages if they are needed
55 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
56 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
57 }
59 # Rules to clean the package
60 clean_wok()
61 {
62 rm -r $SOURCE-$VERSION-build
63 }