source: trunk/dports/lang/dmd/Portfile

Last change on this file was 148693, checked in by mcalhoun@…, 18 months ago

dmd ecosystem: version update 2.069.2->2.071.0 (fixes #51340)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 148693 2016-05-15 08:39:30Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           muniversal 1.0
7
8github.setup        dlang dmd 2.071.0 v
9categories          lang
10platforms           darwin
11license             {GPL-1 Artistic-1} Boost-1 Restrictive
12maintainers         takeshi openmaintainer
13description         dmd Digital Mars D compiler
14long_description \
15    D is a language with C-like syntax and static typing. \
16    It pragmatically combines efficiency, control, \
17    and modeling power, with safety and programmer productivity.
18homepage            http://dlang.org/
19checksums           rmd160  0a16e840a9184747dc6a9be68693d5ffcea350e9 \
20                    sha256  a2012524d89f8bd2e6b625ee6a85af74ba8d217a3b4220270b4667924b13112f
21post-patch {
22    reinplace "s|/etc|${prefix}/etc/${name}|" ${worksrcpath}/docs/man/man1/${name}.1
23    reinplace "s|/etc|${prefix}/etc/${name}|" ${worksrcpath}/docs/man/man5/${name}.conf.5
24}
25
26use_configure       no
27
28depends_build-append          port:dmd-bootstrap
29depends_skip_archcheck-append dmd-bootstrap
30
31build.dir           ${worksrcpath}/src
32
33post-extract {
34    xinstall -m 0644 ${filespath}/makefile_macports_install ${build.dir}
35}
36
37# Use CFLAGS in the posix.make; some source needs special flags.
38# Command-line arguments wipe the CFLAGS in posix.mak and
39# extra flags cannot be added with +=.
40# Another solution would be the use of override directive in posix.mak.
41build.args          -f posix.mak \
42                    HOST_CXX="${configure.cxx}" \
43                    LDFLAGS="${configure.ldflags} -framework CoreServices" \
44                    ENVP="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}" \
45                    SYSCONFDIR=${prefix}/etc/${name} \
46                    HOST_DMD=${prefix}/libexec/dmd-bootstrap/bin/dmd
47
48if { ![variant_isset universal] } {
49    if { ${build_arch} eq "x86_64" || ${build_arch} eq "ppc64" } {
50        build.args-append MODEL=64
51    } else {
52        build.args-append MODEL=32
53    }
54} else {
55    lappend merger_build_args(x86_64) MODEL=64
56    lappend merger_build_args(i386)   MODEL=32
57    lappend merger_build_args(ppc64)  MODEL=64
58    lappend merger_build_args(ppc)    MODEL=32
59}
60
61destroot.args \
62    -f makefile_macports_install \
63    PREFIX=${prefix}
64
65notes {
66    In order to have a complete dmd runtime environment consider installing the following ports:
67    druntime phobos dmd-tools }
68
69livecheck.regex     archive/[join ${github.tag_prefix} ""](\[^"-\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.