wok-next view gcc3/receipt @ rev 20079

Up emacs (2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 25 11:21:45 2017 +0200 (2017-10-25)
parents 95758c7d1a56
children d958fec46c9f
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc3"
4 VERSION="3.4.6"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Compiler Collection."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="gcc"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://gcc.gnu.org/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
13 TAGS="compiler C C++"
15 BUILD_DEPENDS="gawk gcc49"
16 DEPENDS="gcc"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/struct siginfo /siginfo_t /' gcc/config/*/linux*.h
22 mkdir gcc-build
23 cd gcc-build
24 {
25 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
26 export CC=gcc-49
27 export CXX=g++-49
28 $src/configure --prefix=/usr --libexecdir=/usr/lib \
29 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
30 --enable-languages=c,c++ --enable-shared --with-system-zlib \
31 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
32 --enable-threads=posix --with-tune=$ARCH \
33 --program-suffix=-3 $CONFIGURE_ARGS
34 make $MAKEFLAGS bootstrap &&
35 make $MAKEFLAGS install
36 } 2>&1 | sed 's/: No such file/: no such file/'
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr
44 rm $fs/usr/lib/lib*
45 }