1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 108726 2013-07-31 19:05:13Z snc@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sdcc |
---|
7 | version 3.3.0 |
---|
8 | categories lang |
---|
9 | platforms darwin |
---|
10 | license GPL-3 |
---|
11 | maintainers snc openmaintainer |
---|
12 | description ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80 |
---|
13 | long_description SDCC is a retargettable, optimizing ANSI - C \ |
---|
14 | compiler suite that targets the Intel MCS51 based \ |
---|
15 | microprocessors (8031, 8032, 8051, 8052, etc.), Maxim \ |
---|
16 | (formerly Dallas) DS80C390 variants, Freescale (formerly \ |
---|
17 | Motorola) HC08 based (hc08, s08) and Zilog Z80 based MCUs \ |
---|
18 | (z80, z180, gbz80, Rabbit 2000/3000, Rabbit 3000A). Work is \ |
---|
19 | in progress on supporting the Microchip PIC16 and PIC18 \ |
---|
20 | targets. It can be retargeted for other microprocessors. |
---|
21 | |
---|
22 | homepage http://sdcc.sourceforge.net/ |
---|
23 | master_sites sourceforge |
---|
24 | |
---|
25 | checksums rmd160 464b5aae6242e0da0181e9050b52949ae176de00 \ |
---|
26 | sha256 873f61f29e829e65ba8afcf992cced8f91b0c4bd52b0be7d5e9b0cbcb58644de |
---|
27 | |
---|
28 | depends_build port:gputils |
---|
29 | depends_lib port:readline port:boost |
---|
30 | depends_run port:gputils |
---|
31 | |
---|
32 | use_bzip2 yes |
---|
33 | distfiles ${name}-src-${version}${extract.suffix} |
---|
34 | patchfiles patch-support-sdbinutils-bfd-opncls.c.diff \ |
---|
35 | patch-support-sdbinutils-bfd-objcopy.c.diff \ |
---|
36 | patch-no_sbrk_1.diff \ |
---|
37 | patch-no_sbrk_2.diff |
---|
38 | |
---|
39 | worksrcdir ${name}-${version} |
---|
40 | |
---|
41 | build.type gnu |
---|
42 | |
---|
43 | destroot.destdir prefix=${destroot}${prefix} \ |
---|
44 | docdir=${destroot}${prefix}/share/doc/${name} |
---|
45 | |
---|
46 | platform darwin 8 { |
---|
47 | depends_build-append port:gmake |
---|
48 | build.cmd ${prefix}/bin/gmake |
---|
49 | } |
---|