Ticket #51340: patch-dmd-Portfile.diff

File patch-dmd-Portfile.diff, 1.9 KB (added by tenomoto (Takeshi Enomoto), 8 years ago)
  • Portfile

     
    55PortGroup           github 1.0
    66PortGroup           muniversal 1.0
    77
    8 github.setup        D-Programming-Language dmd 2.069.2 v
    9 revision            1
     8github.setup        dlang dmd 2.071.0 v
    109categories          lang
    1110platforms           darwin
    1211license             {GPL-1 Artistic-1} Boost-1 Restrictive
     
    1716    It pragmatically combines efficiency, control, \
    1817    and modeling power, with safety and programmer productivity.
    1918homepage            http://dlang.org/
    20 checksums           rmd160  f152dfa335702cb991753b29a1372671e65e39b4 \
    21                     sha256  cab69dd7d0ed84f8e2c72667a9e97cb6b9f233fd647a9cd8811591c24f183317
     19checksums           rmd160  0a16e840a9184747dc6a9be68693d5ffcea350e9 \
     20                    sha256  a2012524d89f8bd2e6b625ee6a85af74ba8d217a3b4220270b4667924b13112f
    2221post-patch {
    23     reinplace "s|gcc|${configure.cc}|" ${worksrcpath}/src/link.d
    24     reinplace "s|/etc|${prefix}/etc/${name}|" ${worksrcpath}/src/posix.mak
    2522    reinplace "s|/etc|${prefix}/etc/${name}|" ${worksrcpath}/docs/man/man1/${name}.1
    2623    reinplace "s|/etc|${prefix}/etc/${name}|" ${worksrcpath}/docs/man/man5/${name}.conf.5
    2724}
     
    4239# extra flags cannot be added with +=.
    4340# Another solution would be the use of override directive in posix.mak.
    4441build.args          -f posix.mak \
    45                     HOST_CC="${configure.cxx}" \
     42                    HOST_CXX="${configure.cxx}" \
    4643                    LDFLAGS="${configure.ldflags} -framework CoreServices" \
    4744                    ENVP="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}" \
     45                    SYSCONFDIR=${prefix}/etc/${name} \
    4846                    HOST_DMD=${prefix}/libexec/dmd-bootstrap/bin/dmd
    4947
    5048if { ![variant_isset universal] } {