Files
haikuports/dev-lang/tcc/tcc-0.9.26.recipe
2016-02-28 20:17:42 -05:00

65 lines
1.7 KiB
Bash

SUMMARY="A small and fast C compiler"
DESCRIPTION="* SMALL! You can compile and execute C code everywhere, for \
example on rescue disks (about 100KB for x86 TCC executable, including C \
preprocessor, C compiler, assembler and linker).
* FAST! tcc generates x86 code. No byte code overhead. Compile, assemble and \
link several times faster than GCC.
* UNLIMITED! Any C dynamic library can be used directly. TCC is heading \
torward full ISOC99 compliance. TCC can of course compile itself.
* SAFE! tcc includes an optional memory and bound checker. Bound checked code \
can be mixed freely with standard code.
* Compile and execute C source directly. No linking or assembly necessary. \
Full C preprocessor and GNU-like assembler included.
* C script supported : just add '#!/usr/local/bin/tcc -run' at the first line \
of your C source, and execute it directly from the command line.
* With libtcc, you can use TCC as a backend for dynamic code generation."
HOMEPAGE="http://bellard.org/tcc/"
COPYRIGHT="2001-2014 Fabrice Bellard"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.26.tar.bz2"
CHECKSUM_SHA256="521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71"
PATCHES="tcc-$portVersion.patchset"
ARCHITECTURES="x86_gcc2"
PROVIDES="
tcc = $portVersion
cmd:arm_eabi_tcc
cmd:arm_fpa_ld_tcc
cmd:arm_fpa_tcc
cmd:arm_vfp_tcc
cmd:c67_tcc
cmd:i386_win32_tcc
cmd:tcc
cmd:x86_64_tcc
cmd:x86_64_win32_tcc
"
REQUIRES="
haiku
"
PROVIDES_devel="
devel:libtcc
"
REQUIRES_devel="
"
BUILD_PREREQUIRES="
haiku_devel
cmd:gcc
cmd:make
"
BUILD()
{
runConfigure ./configure --enable-cross
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libtcc
packageEntries devel $developDir
}