# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup D-Programming-Language phobos 2.064 v categories lang platforms darwin license Boost-1 maintainers takeshi openmaintainer description Runtime library for the D programming language long_description \ Phobos is the standard runtime library that comes with the D language compiler. homepage http://dlang.org/ checksums rmd160 f963b11a3cffea073cb1e040381cd0d6338238ff \ sha256 b1f4896d28650f3cce9b60a0b33801fcb6247e72dc9ad80a2e3eb765438c50d2 depends_lib port:druntime post-patch { reinplace "s|-m\$(MODEL)||" ${worksrcpath}/posix.mak reinplace "s|/import||" ${worksrcpath}/posix.mak } use_configure no if {${build_arch} eq "x86_64"} { set model 64 } else { set model 32 } build.args -f posix.mak \ DRUNTIME=${prefix}/lib/libdruntime.a \ CC=${configure.cc} \ CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ DMD=${prefix}/bin/dmd \ DFLAGS="-w -d -m${model} -O -release" \ MODEL=${model} build.target "" destroot { xinstall -m 755 -d ${destroot}${prefix}/lib xinstall -m 644 ${worksrcpath}/generated/osx/release/${model}/lib${name}2.a \ ${destroot}${prefix}/lib xinstall -d -m 755 ${destroot}${prefix}/include xinstall -d -m 755 ${destroot}${prefix}/include/${name} eval xinstall -m 644 [glob ${worksrcpath}/*.d] ${destroot}${prefix}/include/${name} file copy ${worksrcpath}/etc ${destroot}${prefix}/include/${name} file copy ${worksrcpath}/std ${destroot}${prefix}/include/${name} } livecheck.type regex livecheck.url ${homepage}download.html livecheck.regex {\.([0-9]+\.[0-9]+)\.zip}