1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 73735 2010-11-23 02:15:23Z michaelld@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sdcc |
---|
7 | version 3.0.0 |
---|
8 | categories lang |
---|
9 | platforms darwin |
---|
10 | #license GPLv3 |
---|
11 | maintainers snc openmaintainer |
---|
12 | description ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80 |
---|
13 | long_description SDCC is a freeware, retargettable, optimizing ANSI C \ |
---|
14 | compiler that targets the Intel 8051, Maxim 80DS390, and \ |
---|
15 | Zilog Z80 based MCUs. Work is in progress on supporting \ |
---|
16 | Motorola 68HC08 as well as Microchip PIC16 and PIC18 series. |
---|
17 | |
---|
18 | homepage http://sdcc.sourceforge.net/ |
---|
19 | master_sites sourceforge |
---|
20 | checksums md5 20fbd49a3421e09fe65577c45524c89e \ |
---|
21 | sha1 5f50f3841d58c10432bc4352e06a3f1b1f339ec1 \ |
---|
22 | |
---|
23 | # Requires the latest gputils, or pic libraries build may fail |
---|
24 | # silently due to lack of support for certain models. This will |
---|
25 | # result in an apparently successful build, but an incomplete installation. |
---|
26 | depends_build port:gputils |
---|
27 | depends_lib port:readline port:gputils |
---|
28 | |
---|
29 | use_bzip2 yes |
---|
30 | distfiles ${name}-src-${version}${extract.suffix} |
---|
31 | |
---|
32 | worksrcdir ${name} |
---|
33 | |
---|
34 | # Setting CPP explicitly is bad, because 'cpp' and 'gcc -E' are not the same. |
---|
35 | configure.cpp {} |
---|
36 | configure.args --enable-avr-port \ |
---|
37 | --enable-xa51-port |
---|
38 | |
---|
39 | build.type gnu |
---|
40 | |
---|
41 | destroot.destdir prefix=${destroot}${prefix} \ |
---|
42 | docdir=${destroot}${prefix}/share/doc/${name} |
---|
43 | |
---|
44 | platform darwin 8 { |
---|
45 | depends_build-append port:gmake |
---|
46 | build.cmd ${prefix}/bin/gmake |
---|
47 | } |
---|