source: trunk/dports/devel/cableswig/Portfile

Last change on this file was 136885, checked in by ryandesign@…, 2 years ago

cableswig: increase epoch for update in r136208

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 136885 2015-05-29 05:18:47Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                cableswig
8epoch               1
9version             4.0
10categories          devel
11platforms           darwin
12maintainers         nomaintainer
13
14description         Create wrappers to interpreted languages
15long_description    CableSwig is used to create interfaces (i.e. \
16                    'wrappers') to interpreted languages such as Tcl \
17                    and Python. It was created to produce wrappers for \
18                    ITK because the toolkit uses C++ structures that \
19                    SWIG cannot parse (deeply nested template \
20                    instantiations). CableSwig is a combination tool \
21                    that uses GCC_XML as the C++ parser. The input \
22                    files are Cable style input files. The XML \
23                    produced from the Cable/GCC_XML input files are \
24                    then parsed and fed into a modified version of \
25                    SWIG. SWIG is a software development tool that \
26                    connects programs written in C and C++ with \
27                    a variety of high-level programming languages. It \
28                    is used to generate the language bindings to the \
29                    target language. Currently, Tcl and Python are \
30                    supported.
31homepage            http://www.itk.org/ITK/resources/CableSwig.html
32
33depends_build-append    port:bison \
34                        port:gawk \
35                        port:gmake
36
37fetch.type              git
38git.url                 git://itk.org/CableSwig.git
39git.branch              ITK-${version}
40
41worksrcdir              CableSwig
42
43patchfiles              no-windows-compilers.patch
44
45cmake.out_of_source     yes
46
47configure.cflags-append -std=c90
48configure.args-append   -DBISON_YACC:FILEPATH=${prefix}/bin/bison \
49                        -DBUILD_TESTING:BOOL=OFF \
50                        -DCMAKE_SKIP_RPATH:BOOL=OFF \
51                        -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
52                        -DSWIG_BUILD_EXAMPLES:BOOL=OFF
53
54build.type              gnu
55
56variant examples description "Provide examples" {
57    configure.args-replace  -DSWIG_BUILD_EXAMPLES:BOOL=OFF \
58                            -DSWIG_BUILD_EXAMPLES:BOOL=ON
59}
60
61variant testing description "Provide testing" {
62    configure.args-replace  -DBUILD_TESTING:BOOL=OFF \
63                            -DBUILD_TESTING:BOOL=ON
64}
65
66variant gccxml description "Use MacPorts' GCC-XML" {
67    depends_lib-append      port:gccxml
68    configure.args-replace  -DCSWIG_USE_SYSTEM_GCCXML:BOOL=OFF \
69                            -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON
70}
Note: See TracBrowser for help on using the repository browser.