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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup compiler_blacklist_versions 1.0 |
---|
6 | |
---|
7 | name tcc |
---|
8 | version 0.9.26 |
---|
9 | categories lang devel |
---|
10 | platforms darwin |
---|
11 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
12 | license LGPL-2.1+ |
---|
13 | supported_archs i386 |
---|
14 | |
---|
15 | platform darwin > 10 { |
---|
16 | # x86_64 failed for me on darwin 10, but I had included it by default |
---|
17 | # when I wrote this Portfile at school, which had a newer OS, so I |
---|
18 | # assume that x86_64 must have worked on the newer OS... |
---|
19 | supported_archs-append x86_64 |
---|
20 | } |
---|
21 | |
---|
22 | # does NOT accept multiple -arch flags: |
---|
23 | universal_variant no |
---|
24 | |
---|
25 | # it bootstraps itself, so it is necessary to have it built before |
---|
26 | # other steps can continue: |
---|
27 | use_parallel_build no |
---|
28 | |
---|
29 | description ${name} is the Tiny C Compiler. |
---|
30 | |
---|
31 | long_description ${name} is Fabrice Bellard's Tiny C Compiler. It \ |
---|
32 | provides C scripting everywhere and is the smallest \ |
---|
33 | ANSI C compiler. |
---|
34 | |
---|
35 | homepage http://bellard.org/${name}/ |
---|
36 | master_sites http://download.savannah.gnu.org/releases/tinycc |
---|
37 | use_bzip2 yes |
---|
38 | |
---|
39 | checksums md5 5fb28e4abc830c46a7f54c1f637fb25d \ |
---|
40 | sha1 7110354d3637d0e05f43a006364c897248aed5d0 \ |
---|
41 | sha256 521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71 |
---|
42 | |
---|
43 | depends_build-append bin:perl:perl5 \ |
---|
44 | port:texinfo |
---|
45 | |
---|
46 | # It was designed to be built with gcc |
---|
47 | # (not sure which versions specifically though) |
---|
48 | compiler.whitelist-append gcc |
---|
49 | |
---|
50 | # The following is a variant until there is a `depends_test`: https://trac.macports.org/ticket/38208 |
---|
51 | variant tests description {Run the test suite} { |
---|
52 | depends_build-append port:expect |
---|
53 | test.run yes |
---|
54 | test.cmd make |
---|
55 | test.target test |
---|
56 | test.env-append CC=${worksrcpath}/tcc \ |
---|
57 | CPPFLAGS="-I${worksrcpath}/include" \ |
---|
58 | CPATH="-I${worksrcpath}/include" |
---|
59 | pre-test { |
---|
60 | # force use of copy that tcc has, required to pass testsuite: |
---|
61 | reinplace "s|<stdarg.h>|\"stdarg.h\"|g" ${worksrcpath}/include/tcclib.h |
---|
62 | } |
---|
63 | } |
---|
64 | |
---|
65 | # regex is broken, FIXME: |
---|
66 | livecheck.type none |
---|