wok-next view gcc49/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents c3a368c0cddb
children d958fec46c9f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gcc49"
4 VERSION="4.9.2"
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/"
11 TARBALL="gcc-$VERSION.tar.bz2"
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 installs
17 # and uses its own copy.
18 BUILD_DEPENDS="mpc-library-dev mpfr-dev gmp-dev elfutils-dev zlib-dev"
19 SPLIT="gcc49-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
27 pkgversion="SliTaz"
28 languages="c,c++"
30 patch -p1 < $stuff/cfns.gperf.u
32 # Use libiberty.a from binutils.
33 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
35 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
37 mkdir build
38 cd build
40 $src/configure \
41 --libexecdir=/usr/lib \
42 --enable-nls \
43 --enable-languages=${languages} \
44 --enable-shared \
45 --with-system-zlib \
46 --enable-clocale=gnu \
47 --enable-objc-gc \
48 --enable-__cxa_atexit \
49 --enable-lto \
50 --enable-threads=posix \
51 --disable-bootstrap \
52 --program-suffix=-49 \
53 --libdir=/usr/libgcc49 \
54 --with-pkgversion="$pkgversion" \
55 --disable-multilib \
56 $ARCH_ARGS \
57 $CONFIGURE_ARGS &&
58 make && make install
59 }
61 genpkg_rules() {
62 case $PACKAGE in
63 gcc49)
64 mkdir -p $fs/usr/share
65 cp -a $install/usr/bin $fs/usr
67 # Copy all libs. Do not hide gcc-lib-base.
68 cp -a $install/usr/lib* $fs/usr
70 # Include files.
71 cp -a $install/usr/include $fs/usr
72 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
73 ;;
74 gcc49-lib-base)
75 mkdir -p $fs/usr/lib
76 cp -a $install/usr/libgcc49/libgcc_s.so* $fs/usr/lib
77 cp -a $install/usr/libgcc49/libstdc++.so* $fs/usr/lib
78 rm -f $fs/usr/lib/*-gdb.py
79 CAT="development|GCC base libraries, libgcc_s and libstdc++"
80 PROVIDE="gcc-lib-base"
81 ;;
82 esac
83 }
85 post_remove_gcc49_lib_base() {
86 cd "$1/usr/lib"
87 ln -s libstdc++.so.6.*.* libstdc++.so.6
88 ln -s libstdc++.so.6.*.* libstdc++.so
89 cd - >/dev/null
90 }