Ticket #17143: Portfile

File Portfile, 1.6 KB (added by krunk7@…, 16 years ago)

Portfile for xmedcon

Line 
1PortSystem          1.0
2
3name                xmedcon
4version             0.10.4
5categories          science graphics
6maintainers         jameskyle@ucla.edu
7description         an open source toolkit for medical image conversion
8long_description    xmedcon is a framework specifically designed to resolve the complexities involved with conversion of medical image formats. It offers a GUI, a CLI (medcon), and a library for writing custom applications licensed under the (L)GPL.
9
10homepage            http://xmedcon.sourceforge.net/
11platforms           darwin
12master_sites        http://prdownloads.sourceforge.net/xmedcon/
13checksums           md5 45b6a305336b731ad216e09744bc946b \
14                    sha1 d382ce055e1497d3cb66db649adcc107c5802aa3 \
15                    rmd160 f7a691eca3f7c59230488a585e3c0a1e0cdc0567
16use_parallel_build  yes
17
18depends_lib         port:libpng
19                   
20configure.pre_args
21configure.args      --prefix=${prefix} \
22                    --disable-gui \
23                    --with-png-prefix=${prefix}
24               
25
26
27variant gtk2 conflicts gtk1 description {Enable gtk2 gui front end} {
28  configure.args-delete   --disable-gui
29 
30  depends_lib-append      port:gtk2 \
31                          port:glib2
32}
33variant gtk1 conflicts gtk2 description {Enable gtk1 legacy gui} {
34  depends_lib-append    port:gtk1
35
36  configure.args-delete --disable-gui
37  configure.args-append --enable-gtk1
38}
39
40variant fortran description {Enable fortran compiler support} {
41  depends_lib-append port:gcc43
42
43  configure.compiler /opt/local/bin/gcc-mp-4.3
44  configure.f77 ${prefix}/bin/gfortran-mp-4.3
45}
46