wok-tiny view tcc/receipt @ rev 176

busybox: fix modules order
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 19:16:39 2021 +0000 (2021-07-14)
parents a6d2ddc65590
children 1e55ea7da8de
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.25"
5 CATEGORY="development"
6 SHORT_DESC="Tiny C Compiler (native target)"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 LICENSE="LGPL"
10 WEB_SITE="http://bellard.org/$PACKAGE/"
11 [ -n "$TARGET" ] || TARGET="i486"
12 BUILD_DEPENDS="uclibc-cross-compiler-$TARGET"
13 DEPENDS="tcc-common libtcc libdl libm libgcc_s"
14 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
15 TAGS="compiler C"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 if [ ! -f done.Makefile.u ]; then
21 patch < $stuff/Makefile.u || return 1
22 touch done.Makefile.u
23 fi
24 sed -i 's/cp -u/cp/' tests/Makefile
25 ./configure --prefix=/usr --enable-cross \
26 --cross-prefix=uclibc-$TARGET- &&
27 make && make DESTDIR=$DESTDIR install
28 [ -s $DESTDIR/usr/bin/i386-tcc -a ! -s $DESTDIR/usr/bin/x86_64-tcc ] &&
29 mv $DESTDIR/usr/bin/tcc $DESTDIR/usr/bin/x86_64-tcc &&
30 mv $DESTDIR/usr/bin/i386-tcc $DESTDIR/usr/bin/tcc
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $install/usr/bin/tcc $fs/usr/bin
38 ln -s tcc $fs/usr/bin/cc
39 }