wok-next view gcc54/receipt @ rev 20963
Add hackdorte-artwork and remove appropriate old packages with dead homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 08 15:02:14 2018 +0300 (2018-09-08) |
parents | 3e3205b3b68f |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gcc54"
4 VERSION="5.4.0"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Compiler Collection"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://gcc.gnu.org/"
10 REPOLOGY="gcc"
12 TARBALL="gcc-$VERSION.tar.bz2"
13 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
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 installs
17 # and uses its own copy.
18 BUILD_DEPENDS="mpc-library-dev mpfr-dev gmp-dev elfutils-dev zlib-dev"
19 SPLIT="gcc54-lib-base"
21 compile_rules() {
22 case $ARCH in
23 arm*) ARCH_ARGS="--with-tune=armv6";;
24 i?86) ARCH_ARGS="--with-tune=$ARCH";;
25 x86_64) ARCH_ARGS="--with-tune=nocona";;
26 esac
28 pkgversion="SliTaz"
29 languages="c,c++"
31 # Use libiberty.a from binutils.
32 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
34 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
36 mkdir -p ../gcc-build && cd ../gcc-build
38 $src/configure \
39 --libexecdir=/usr/lib \
40 --enable-nls \
41 --enable-languages=${languages} \
42 --enable-shared \
43 --with-system-zlib \
44 --enable-clocale=gnu \
45 --enable-objc-gc \
46 --enable-__cxa_atexit \
47 --enable-lto \
48 --enable-threads=posix \
49 --disable-bootstrap \
50 --program-suffix=-54 \
51 --libdir=/usr/libgcc54 \
52 --with-pkgversion="$pkgversion" \
53 --disable-multilib \
54 $ARCH_ARGS \
55 $CONFIGURE_ARGS &&
56 make && make install
57 }
59 genpkg_rules() {
60 case $PACKAGE in
61 gcc54)
62 mkdir -p $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
65 # Copy all libs. Do not hide gcc-lib-base.
66 cp -a $install/usr/lib* $fs/usr
68 # Include files.
69 cp -a $install/usr/include $fs/usr
71 # Remove build directory.
72 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
73 rm -rf $WOK/$PACKAGE/$PACKAGE-build
74 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
75 TAGS="compiler C C++"
76 ;;
77 gcc54-lib-base)
78 mkdir -p $fs/usr/lib
79 cp -a $install/usr/libgcc54/libgcc_s.so* $fs/usr/lib
80 cp -a $install/usr/libgcc54/libstdc++.so* $fs/usr/lib
81 rm -f $fs/usr/lib/*-gdb.py
82 CAT="development|base libraries, libgcc_s and libstdc++"
83 PROVIDE="gcc-lib-base"
84 ;;
85 esac
86 }
88 post_remove_gcc54_lib_base() {
89 cd "$1/usr/lib"
90 ln -s libstdc++.so.6.*.* libstdc++.so.6
91 ln -s libstdc++.so.6.*.* libstdc++.so
92 cd - >/dev/null
93 }