source: trunk/dports/lang/ispc/Portfile

Last change on this file was 139736, checked in by takeshi@…, 2 years ago

ispc: update to 1.8.2

  • 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 139736 2015-08-25 22:27:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        ispc ispc 1.8.2 v
8categories          lang parallel               
9platforms           darwin
10supported_archs     x86_64
11license             BSD
12maintainers         takeshi openmaintainer
13description         Intel SPMD program compiler
14long_description \
15    ${name} is a compiler for a variant of the C programming language, \
16    with extensions for single program, multiple data programming.
17homepage            http://${name}.github.com
18checksums           rmd160  eedf3c7092f421b7c447ea93e101fdc5f96df417 \
19                    sha256  5484437b1349df9141b0b45ec533264b7dd184ec3a808a5cca3e392eedff9e5a
20
21set llvm_version    3.6
22
23depends_build       port:bison \
24                    port:flex \
25                    port:python27
26depends_lib         port:clang-${llvm_version}
27
28use_configure       no
29
30configure.compiler  macports-clang-${llvm_version}
31patchfiles          patch-Makefile.diff
32post-patch {
33    if {[variant_isset doc]} {
34        reinplace {s|rst2html.py|rst2html-2.7.py|} ${worksrcpath}/docs/build.sh
35    }
36}
37
38build.args          LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
39                    PYTHON=${prefix}/bin/python2.7 \
40                    CLANG=${configure.cc}\
41                    CXX=${configure.cxx} \
42                    OPT="${configure.cxxflags} -fvisibility=hidden" \
43                    LEX=${prefix}/bin/flex \
44                    YACC="${prefix}/bin/bison -d -v -t" \
45                    BUILD_VERSION=${version} \
46                    LDFLAGS=${configure.ldflags}
47build.target        ""
48
49test.run            yes
50test.cmd            {python run_tests.py}
51test.target         ""
52
53destroot {
54    xinstall -m 755 ${worksrcpath}/ispc ${destroot}${prefix}/bin
55    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
56    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
57    if {[variant_isset doc]} {
58        system "cd ${worksrcpath}/docs; ./build.sh"
59        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
60        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
61    }
62}
63
64variant doc description {build and install documentation} {
65    depends_build-append    port:py27-docutils
66}
67
68livecheck.type      regex
69livecheck.url       ${homepage}/downloads.html
70livecheck.regex     {v([0-9]+\.[0-9]+\.[0-9])}
Note: See TracBrowser for help on using the repository browser.