Ticket #27942: Portfile

File Portfile, 1.8 KB (added by jwbacon@…, 13 years ago)
Line 
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
4PortSystem 1.0
5
6name                sdcc
7version             3.0.0
8categories          lang
9platforms           darwin
10#license             GPLv3
11maintainers         snc openmaintainer
12description         ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80
13long_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
18homepage            http://sdcc.sourceforge.net/
19master_sites        sourceforge
20checksums           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.
26depends_build       port:gputils
27depends_lib         port:readline port:gputils
28
29use_bzip2           yes
30distfiles           ${name}-src-${version}${extract.suffix}
31
32worksrcdir          ${name}
33
34# Setting CPP explicitly is bad, because 'cpp' and 'gcc -E' are not the same.
35configure.cpp       {}
36configure.args      --enable-avr-port \
37                    --enable-xa51-port
38
39build.type          gnu
40
41destroot.destdir    prefix=${destroot}${prefix} \
42                    docdir=${destroot}${prefix}/share/doc/${name}
43
44platform darwin 8 {
45    depends_build-append    port:gmake
46    build.cmd               ${prefix}/bin/gmake
47}