Files
haikuports/dev-embedded/sdcc/sdcc-3.5.0.recipe

86 lines
1.9 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/$portVersion/sdcc-src-$portVersion.tar.bz2"
CHECKSUM_SHA256="f82978d1614244b22e093402c0a4de1f688a07c807b2980126c964eb3df85fa9"
PATCHES="sdcc-3.5.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
"
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
}
INSTALL()
{
make install
}