Files
haikuports/dev-embedded/sdcc/sdcc-3.4.0.recipe
2016-02-26 10:33:51 -05:00

93 lines
2.6 KiB
Bash

SUMMARY="A retargettable, optimizing ANSI - C compiler suite"
DESCRIPTION="
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets the \
Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim \
(formerly Dallas) DS80C390 variants, Freescale (formerly Motorola) HC08 based \
(hc08, s08), Zilog Z80 based MCUs (z80, z180, gbz80, Rabbit 2000/3000, Rabbit \
3000A, TLCS-90) and STMicroelectronics STM8. Work is in progress on supporting \
the Microchip PIC16 and PIC18 targets. It can be retargeted for other \
microprocessors."
HOMEPAGE="http://sdcc.sourceforge.net"
COPYRIGHT="
1999-2013 Sandeep Dutta
"
LICENSE="
GNU GPL v2
"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/sdcc/files/sdcc/3.4.0/sdcc-src-3.4.0.tar.bz2"
CHECKSUM_SHA256="cf6af862b94d5f259f11afa0a1b86304f3047b3723a9df96f20dba869deb5bf9"
PATCHES="sdcc-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sdcc$secondaryArchSuffix = $portVersion
cmd:sdcc$secondaryArchSuffix = $portVersion
cmd:as2gbmap$secondaryArchSuffix
cmd:makebin$secondaryArchSuffix
cmd:packihx$secondaryArchSuffix
cmd:s51$secondaryArchSuffix
cmd:savr$secondaryArchSuffix
cmd:sdar$secondaryArchSuffix
cmd:sdas390$secondaryArchSuffix
cmd:sdas6808$secondaryArchSuffix
cmd:sdas8051$secondaryArchSuffix
cmd:sdasgb$secondaryArchSuffix
cmd:sdasrab$secondaryArchSuffix
cmd:sdasstm8$secondaryArchSuffix
cmd:sdastlcs90$secondaryArchSuffix
cmd:sdasz80$secondaryArchSuffix
cmd:sdcclib$secondaryArchSuffix
cmd:sdcdb$secondaryArchSuffix
cmd:sdcdb.el$secondaryArchSuffix
cmd:sdcdbsrc.el$secondaryArchSuffix
cmd:sdcpp$secondaryArchSuffix
cmd:sdld$secondaryArchSuffix
cmd:sdld6808$secondaryArchSuffix
cmd:sdldgb$secondaryArchSuffix
cmd:sdldz80$secondaryArchSuffix
cmd:sdnm$secondaryArchSuffix
cmd:sdobjcopy$secondaryArchSuffix
cmd:sdranlib$secondaryArchSuffix
cmd:shc08$secondaryArchSuffix
cmd:sst7$secondaryArchSuffix
cmd:sstm8$secondaryArchSuffix
cmd:sz80$secondaryArchSuffix
devel:libiberty$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libboost_graph$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:automake
cmd:autoconf
cmd:bison
cmd:flex
cmd:make
"
BUILD()
{
# The PIC14/16 ports need gputils. Enable them when we have a recipe for it.
CFLAGS="-DO_ASYNC=0" \
runConfigure ./configure --disable-pic14-port --disable-pic16-port
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libiberty
}