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-2016 Sandeep Dutta" LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="http://sourceforge.net/projects/sdcc/files/sdcc/$portVersion/sdcc-src-$portVersion.tar.bz2" CHECKSUM_SHA256="e85dceb11e01ffefb545ec389da91265130c91953589392dddd2e5ec0b7ca374" PATCHES="sdcc-3.6.0.patchset" ARCHITECTURES="!x86_gcc2 x86 !x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" sdcc$secondaryArchSuffix = $portVersion cmd:sdcc = $portVersion cmd:as2gbmap cmd:makebin cmd:packihx cmd:s51 cmd:savr cmd:sdar cmd:sdas390 cmd:sdas6808 cmd:sdas8051 cmd:sdasgb cmd:sdasrab cmd:sdasstm8 cmd:sdastlcs90 cmd:sdasz80 cmd:sdcclib cmd:sdcdb cmd:sdcdb.el cmd:sdcdbsrc.el cmd:sdcpp cmd:sdld cmd:sdld6808 cmd:sdldgb cmd:sdldstm8 cmd:sdldz80 cmd:sdnm cmd:sdobjcopy cmd:sdranlib cmd:shc08 cmd:sst7 cmd:sstm8 cmd:sz80 " 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 cmd:makeinfo " BUILD() { pushd support/cpp autoconf popd mkdir -p build pushd 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 --bindir=$prefix/bin make $jobArgs popd } INSTALL() { pushd build make install popd }