# -*- 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 66402 2010-04-11 14:04:39Z wyuenho@macports.org $

PortSystem        1.0

name              astyle
version           1.24
categories        devel
platforms         darwin
maintainers       wyuenho openmaintainer

description       source code beautifier for the C, C++, C# and Java programming
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
distfiles         ${name}_${version}_macosx.tar.gz:macosx
checksums         md5 9b63dadac58e867f14b3894befbdc9b3 \
                  sha1 6f5d727fb19e716223e14cd2b94d2c1d7fdab13f

worksrcdir        ${name}/build/mac
patchfiles        patch-Makefile.diff
use_configure     no
universal_variant no
build.target      release
destroot.destdir  DESTDIR=${destroot}${prefix}

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
}
