1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name gccas |
---|
6 | version 1.0 |
---|
7 | description a modern wrapper to use the clang assembler instead of GNU/Apple as |
---|
8 | |
---|
9 | set clang "/usr/bin/clang" |
---|
10 | foreach cdv {3.6 3.7 3.8 3.9 4.0} { |
---|
11 | set cv [join [split ${cdv} "."] ""] |
---|
12 | variant clang${cv} description "Use clang-mp-${cv} from port:clang-${cdv} as the default" {} |
---|
13 | if {[variant_isset clang${cv}]} { |
---|
14 | depends_run-append port:clang-${cdv} |
---|
15 | set clang "${prefix}/bin/clang-mp-${cdv}" |
---|
16 | } |
---|
17 | } |
---|
18 | |
---|
19 | long_description This is a wrapper around the clang assembler that allows to call it \ |
---|
20 | in lieu and place of the `as` command (= Apple's version of GNU as, gas). \ |
---|
21 | It's name is taken from the old gccas tool that mimicked gas for use by \ |
---|
22 | the llvm-gcc front-end. The purpose remains the same: being able to \ |
---|
23 | use GCC compilers as a front-end for the LLVM assembler/linker toolchain \ |
---|
24 | with the goal of having access to the full x86_64 instruction set from \ |
---|
25 | those compilers (which include gfortran).\ |
---|
26 | By default the wrapper will invoke ${clang}\; this can be overriden using \ |
---|
27 | the CLANG_ASSEMBLER shell variable. |
---|
28 | |
---|
29 | license Permissive |
---|
30 | maintainers gmail.com:rjvbertin openmaintainer |
---|
31 | categories devel |
---|
32 | platforms darwin linux |
---|
33 | supported_archs noarch |
---|
34 | installs_libs no |
---|
35 | |
---|
36 | homepage {} |
---|
37 | master_sites {} |
---|
38 | distfiles {} |
---|
39 | |
---|
40 | use_configure no |
---|
41 | |
---|
42 | fetch {} |
---|
43 | extract {} |
---|
44 | build {} |
---|
45 | |
---|
46 | destroot { |
---|
47 | xinstall -m 755 ${filespath}/gccas.sh ${destroot}${prefix}/bin/gccas |
---|
48 | reinplace "s|@CLANG@|${clang}|g" ${destroot}${prefix}/bin/gccas |
---|
49 | } |
---|