wok-next view gcc49/receipt @ rev 18392
Add: WIP open-vm-tools kernel modules
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Fri Sep 18 23:50:52 2015 +0000 (2015-09-18) |
parents | 7d5789c51e7e |
children | 95758c7d1a56 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc49"
4 SOURCE="gcc"
5 VERSION="4.9.2"
6 CATEGORY="development"
7 SHORT_DESC="The the GNU Compiler Collection."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://gcc.gnu.org/"
12 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
13 TAGS="compiler C C++"
15 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS
16 # for cookutils that are not used by tazwok/cook-toolchain since it install
17 # and use it's own copy.
18 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
19 BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ARCH_ARGS="--with-tune=$ARCH"
25 pkgversion="SliTaz"
26 languages="c,c++"
28 # Use libiberty.a from binutils.
29 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
31 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
33 mkdir -p ../gcc-build && cd ../gcc-build
35 $src/configure \
36 --libexecdir=/usr/lib \
37 --enable-nls \
38 --enable-languages=${languages} \
39 --enable-shared \
40 --with-system-zlib \
41 --enable-clocale=gnu \
42 --enable-objc-gc \
43 --enable-__cxa_atexit \
44 --enable-lto \
45 --enable-threads=posix \
46 --disable-bootstrap \
47 --program-suffix=-49 \
48 --libdir=/usr/libgcc49 \
49 --with-pkgversion="$pkgversion" \
50 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
51 make && make install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
58 cp -a $install/usr/bin $fs/usr
60 # Copy all libs. Do not hide gcc-lib-base.
61 cp -a $install/usr/lib* $fs/usr
63 # Include files.
64 cp -a $install/usr/include $fs/usr
66 # Remove build directory.
67 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
68 rm -rf $WOK/$PACKAGE/$PACKAGE-build
69 }