Files
haikuports/dev-embedded/sdcc/sdcc-3.4.0.recipe
Humdinger a38db25c39 Changes in SUMMARY, DESCRIPTION and whitespace.
Removed the full-stop and repeating package name in SUMMARY.
Removed hard line breaks, broke up some very long paragraphs and
use bullet lists where possible.
All done by browsing through HaikuDepot. There may be (many) more left
in the whole haikuports repo...

Included 10 extended desriptions done by soyoye14 for GCI 2014
(https://www.google-melange.com/gci/task/view/google/gci2014/5240373098053632)

Removed/insert whitespace where it seems to be the custom in recipes.
Sometimes rearranged elements of a recipe (moving license and copyright
up, for example).
2015-01-12 19:23:51 +01:00

99 lines
2.8 KiB
Plaintext

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"
LICENSE="
GNU GPL v2
"
COPYRIGHT="
1999-2013 Sandeep Dutta
"
SRC_URI="http://sourceforge.net/projects/sdcc/files/sdcc/3.4.0/sdcc-src-3.4.0.tar.bz2"
CHECKSUM_SHA256="cf6af862b94d5f259f11afa0a1b86304f3047b3723a9df96f20dba869deb5bf9"
REVISION="1"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
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
lib:libstdc++$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
"
PATCHES="sdcc-$portVersion.patchset"
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
}