[99104] trunk/dports/lang

takeshi at macports.org takeshi at macports.org
Fri Oct 26 05:34:00 PDT 2012


Revision: 99104
          http://trac.macports.org//changeset/99104
Author:   takeshi at macports.org
Date:     2012-10-26 05:34:00 -0700 (Fri, 26 Oct 2012)
Log Message:
-----------
ispc: adding ispc Portfile

Added Paths:
-----------
    trunk/dports/lang/ispc/
    trunk/dports/lang/ispc/Portfile

Added: trunk/dports/lang/ispc/Portfile
===================================================================
--- trunk/dports/lang/ispc/Portfile	                        (rev 0)
+++ trunk/dports/lang/ispc/Portfile	2012-10-26 12:34:00 UTC (rev 99104)
@@ -0,0 +1,67 @@
+# -*- 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: Portfile $
+
+PortSystem          1.0
+PortGroup           github 1.0
+
+github.setup        ispc ispc 1.3.0 v
+categories          lang parallel               
+platforms           darwin
+supported_archs     x86_64
+license             BSD
+maintainers         takeshi openmaintainer
+description         Intel SPMD program compiler
+long_description \
+    ${name} is a compiler for a variant of the C programming language, \
+    with extensions for single program, multiple data programming. 
+homepage            http://${name}.github.com
+checksums           rmd160  a58b51e279a7c57b73373e26cc336225c7ac1671 \
+                    sha256  6a3595450f3d9e9d790930d76d331435ca13e1aa28bc25d765703086b4a961ad
+
+set llvm_version    3.1
+
+depends_build       port:bison \
+                    port:flex \
+                    bin:python:python27
+depends_lib         port:clang-${llvm_version}
+
+use_configure       no
+
+configure.compiler  macports-clang-${llvm_version}
+post-patch {
+    reinplace {s|gcc|$(CXX)|} ${worksrcpath}/Makefile
+    reinplace "s|g++|${configure.cxx}|" ${worksrcpath}/run_tests.py
+    reinplace "s|g++|${configure.cxx}|" ${worksrcpath}/examples/common.mk
+    if {[variant_isset doc]} {
+        reinplace {s|rst2html.py|rst2html-2.7.py|} ${worksrcpath}/docs/build.sh
+    }
+}
+
+build.args          LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
+                    CLANG=${configure.cc}\
+                    CXX=${configure.cxx} \
+                    OPT="${configure.cxxflags} -fvisibility=hidden" \
+                    LEX=${prefix}/bin/flex \
+                    YACC="${prefix}/bin/bison -d -v -t" \
+                    BUILD_VERSION=${version} \
+                    LDFLAGS=${configure.ldflags}
+build.target        ""
+
+test.run            yes
+test.cmd            {python run_tests.py}
+test.target         ""
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/ispc ${destroot}${prefix}/bin
+    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
+    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
+    if {[variant_isset doc]} {
+        system "cd ${worksrcpath}/docs; ./build.sh"
+        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
+    }
+}
+
+variant doc description {build and install documentation} {
+    depends_build-append    port:py27-docutils
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121026/fb720b02/attachment.html>


More information about the macports-changes mailing list