source: trunk/dports/lang/sdcc29/Portfile

Last change on this file was 138639, checked in by michaelld@…, 2 years ago

sdcc29: drop maintainership.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
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 138639 2015-07-14 13:28:47Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                sdcc29
7version             2.9.0
8categories          lang
9platforms           darwin
10license             GPL-3+
11maintainers         nomaintainer
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     a6151ed328fd3bc48305ffbc628dc122 \
21                    sha1    03308a233a67e7fdce3f7e4972acb8731ae42666 \
22                    rmd160  38f23365b676132651f0322779bff498eb7e2b8d
23
24dist_subdir                 sdcc
25
26depends_build       port:gputils
27depends_lib         port:readline
28depends_run         port:gputils
29
30use_bzip2           yes
31distfiles           sdcc-src-${version}${extract.suffix}
32
33worksrcdir          sdcc
34
35# requires "sizeof (long)" to be the a single value, so no universal;
36# universal isn't really required anyway.
37universal_variant   no
38
39# Setting CPP explicitly is bad, because 'cpp' and
40# 'gcc -E' are not the same.
41configure.cpp       {}
42
43# make sure to not use any already installed headers and libraries;
44# these are set in CPATH and LIBRARY_PATH anyway.
45configure.args-append --prefix=${prefix}/libexec/${name}
46configure.ldflags-delete "-L${prefix}/lib"
47configure.cppflags-delete "-I${prefix}/include"
48
49platform darwin 8 {
50    depends_build-append    port:gmake
51    build.cmd               ${prefix}/bin/gmake
52    build.type              gnu
53}
54
55platform darwin {
56    if {${os.major} >= 11} {
57        post-patch {
58            # 10.7 provides 'getline()' already, but it is not
59            # interchangeable with that provided by SDCC. change SDCC's
60            # internal to "sdcc_getline", but not the #includes
61            reinplace "/getline/s@getline @sdcc_getline @g" \
62                ${worksrcpath}/as/link/getline.h \
63                ${worksrcpath}/as/link/getline.c \
64                ${worksrcpath}/as/link/lklib.c \
65                ${worksrcpath}/as/link/lkrel.c \
66                ${worksrcpath}/as/link/lksdcclib.c
67        }
68    }
69}
Note: See TracBrowser for help on using the repository browser.