wok-next view uclibc-cross-compiler-i486/receipt @ rev 10293
fontconfig: use --with-arch=ARCH to cross compile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 22 00:39:42 2011 +0200 (2011-05-22) |
parents | 81728dc610ff |
children | 42297ca48dcb |
line source
1 # SliTaz package receipt.
3 PACKAGE="uclibc-cross-compiler-i486"
4 VERSION="prebuilt"
5 CATEGORY="development"
6 SHORT_DESC="Toolchain for uclibc/i486."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="cross-compiler-i486"
9 TARBALL="$SOURCE.tar.bz2"
10 WEB_SITE="http://impactlinux.com/aboriginal"
11 WGET_URL="$WEB_SITE/downloads/binaries/$TARBALL"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/usr/share $fs/usr/bin
17 cp -a $src $fs/usr/share/$PACKAGE
18 for i in $(cd $src ; ls bin/${PACKAGE##*-}-*); do
19 file=$(basename $i)
20 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
21 done
22 }
24 # Pre and post install commands for Tazpkg.
25 post_install()
26 {
27 for i in $(cd $1/ ; ls usr/share/$PACKAGE/lib/ld-uClibc.so*); do
28 [ -e $1/lib/$(basename $i) ] || ln -s /$i $1/lib
29 done
30 cat <<EOT
31 Add /usr/share/$PACKAGE/lib in your LD_LIBRARY_PATH to enable the shared libraries
32 EOT
33 }
35 pre_remove()
36 {
37 for i in /lib/ld-uClibc.so*; do
38 case "$(readlink $i)" in
39 *usr/share/$PACKAGE/lib/*) rm -f $i ;;
40 esac
41 done
42 }