# -*- 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

name              astyle-dev
version           2.03b
revision          2
categories        devel
platforms         darwin
maintainers       phw openmaintainer

description       source code beautifier for the C, C++, C# and Java programming languages (beta version)
long_description  Artistic Style is a source code indenter, source code formatter, \
                  and source code beautifier for the C, C++, C# and Java \
                  programming languages.

homepage          http://astyle.sourceforge.net
master_sites      sourceforge::macosx

fetch.type        svn
svn.revision      361
svn.url           https://svn.code.sf.net/p/astyle/code/trunk/AStyle/

conflicts         astyle

worksrcdir        AStyle/build/mac
patchfiles        patch-Makefile.diff
use_configure     no

variant universal {}

build.target      release
build.args-append   prefix=${prefix} \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]"

destroot.args-append \
                    prefix=${prefix} \
                    CXX="${configure.cxx} [get_canonical_archflags cxx]"

variant lib description {Build and install the libraries} {
    build.target-append shared static
    destroot.target-append install-lib
}

variant java description {Build and install the JNI library} {
    build.target-append java
    destroot.target-append install-jnilib
}
