wok-next view uclibc-cross-compiler-x86_64/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | d43bf7aae921 |
children | 9e5dca6702bf |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="uclibc-cross-compiler-x86_64"
4 VERSION="prebuilt"
5 CATEGORY="development"
6 SHORT_DESC="Toolchain for uclibc/x86_64."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="cross-compiler-x86_64"
10 TARBALL="$SOURCE.tar.bz2"
11 WEB_SITE="http://impactlinux.com/aboriginal"
12 WGET_URL="$WEB_SITE/downloads/binaries/cross-compiler/$TARBALL"
13 COOKOPTS="!strip"
14 TAGS="compiler C"
16 SPLIT="uclibc-armv4eb uclibc-armv4l uclibc-armv4tl uclibc-armv5l uclibc-armv6l \
17 uclibc-cross-compiler-armv4eb uclibc-cross-compiler-armv4l \
18 uclibc-cross-compiler-armv4tl uclibc-cross-compiler-armv5l \
19 uclibc-cross-compiler-armv6l uclibc-cross-compiler-i486 \
20 uclibc-cross-compiler-mips uclibc-cross-compiler-mips64 \
21 uclibc-cross-compiler-mipsel uclibc-cross-compiler-powerpc \
22 uclibc-cross-compiler-sh4 uclibc-cross-compiler-sparc \
23 uclibc-cross-compiler-x86_64 uclibc-i486 uclibc-mips uclibc-mips64 \
24 uclibc-mipsel uclibc-powerpc uclibc-sh4 uclibc-sparc uclibc-x86_64"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \
30 -e 's/ uclibc-[^ ]*//g'); do
31 [ -s $SRC/${TARBALL/x86_64/$i} ] ||
32 wget -P $SRC ${WGET_URL/x86_64/$i}
33 busybox tar xf $SRC/${TARBALL/x86_64/$i}
34 done
35 ln -s $src $install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 case $PACKAGE in
42 uclibc-cross-compiler-*)
43 CAT="development|Toolchain for uclibc/${PACKAGE##*-}."
44 SUGGESTED="uclibc-${PACKAGE##*-}"
45 mkdir -p $fs/usr/share/$PACKAGE $fs/usr/bin
46 cp -a $install/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/
47 for i in $(cd $install/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do
48 file=$(basename $i)
49 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
50 done
51 ;;
52 uclibc-*)
53 TAZBB_NO_INSTALL="because this is not the right target !"
54 CAT="base-system|UcLibc ${PACKAGE##*-} libraries."
55 mkdir -p $fs/lib
56 cp -a $install/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib
57 ;;
58 esac
59 }
61 # Pre and post install commands for Tazpkg.
62 post_install_uclibc_i486()
63 {
64 echo chroot "$1/" /usr/bin/uclibc-i486-ldconfig
65 }
67 pre_remove_uclibc_i486()
68 {
69 for i in /lib/ld-uClibc.so*; do
70 case "$(readlink $i)" in
71 *usr/share/uclibc_i486/lib/*) rm -f $i ;;
72 esac
73 done
74 }