source: trunk/dports/lang/chicken/Portfile

Last change on this file was 134048, checked in by mf2k@…, 3 years ago

chicken gforth litmus redland-bindings: Ports abandoned by gmail.com:arto.bendiken. (#46393)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 134048 2015-03-17 19:24:57Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    chicken
7version                 4.8.0.2
8categories              lang scheme
9license                 BSD public-domain
10maintainers             gmail.com:ivan.g.raikov
11description             Compiler for the Scheme programming language
12long_description        Chicken produces portable, efficient C, supports \
13                        almost all of the current Scheme language standard, \
14                        the Revised5 Report on the Algorithmic Language \
15                        Scheme (R5RS), and includes many enhancements and \
16                        extensions.
17homepage                http://www.call-with-current-continuation.org/
18platforms               darwin
19
20# Source contains some assembly files for PPC, i386, and x86_64. Not
21# sure if the PPC one can be assembled with "-arch ppc64".
22supported_archs         ppc i386 x86_64
23
24set branch [join [lrange [split ${version} .] 0 2] .]
25master_sites            http://code.call-cc.org/releases/${branch}
26
27checksums               rmd160  7d92c10315f3f9c14003d6789a6ebdc4c0f78b25 \
28                        sha256  bf933f8cc4586b8b468c9abb8ec079a9f109ea20b5f12a1af2776f694e14791d
29
30# Allow build to pass in flags; enable universal builds with x86_64.
31patchfiles              patch-Makefile.macosx.diff \
32                        patch-rules.make.diff
33
34use_configure           no
35
36# Upstream explicitly requires GNU make.
37build.type              gnu
38build.args              C_COMPILER=${configure.cc} \
39                        CXX_COMPILER=${configure.cxx} \
40                        PLATFORM=macosx \
41                        PREFIX=${prefix}
42# Upstream does not support parallel builds.
43use_parallel_build      no
44
45variant universal {}
46
47# Correctly identify selected arch(s) to build system.
48array set archs {ppc ppc.darwin i386 x86 x86_64 x86-64}
49if {[variant_isset universal]} {
50    build.args-append   ARCH=universal \
51                        UNIVERSAL_ARCHS="[string map [array get archs] \
52                                            ${configure.universal_archs}]"
53} elseif {[info exists archs(${configure.build_arch})]} {
54    build.args-append   ARCH=$archs(${configure.build_arch})
55}
56
57# Pass in correct arch and SDK flags.
58set cflags "[get_canonical_archflags cc]"
59set ldflags "[get_canonical_archflags ld]"
60if {${configure.sdkroot} != ""} {
61    set cflags "${cflags} -isysroot ${configure.sdkroot}"
62    set ldflags "${ldflags} -Wl,-syslibroot,${configure.sdkroot}"
63}
64build.args-append       CFLAGS="${cflags}" \
65                        LDFLAGS="${ldflags}"
66
67destroot.args           ${build.args}
68
69livecheck.type          regex
70livecheck.url           http://code.call-cc.org/releases/current/
71livecheck.regex         {chicken-([0-9.]+)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.