| 1 | # $Id: Portfile 212 2007-01-05 20:58:27Z darrell.schiebel $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name graphviz |
|---|
| 5 | version 2.12 |
|---|
| 6 | categories graphics |
|---|
| 7 | maintainers gwright@opendarwin.org |
|---|
| 8 | description Graph visualization software from AT&T and Bell Labs |
|---|
| 9 | long_description \ |
|---|
| 10 | Graph Visualization Software from AT&T Laboratories and \ |
|---|
| 11 | Bell Laboratories (Lucent Technologies). \ |
|---|
| 12 | \ |
|---|
| 13 | The package contains: \ |
|---|
| 14 | dot - batch program for drawing directed graphs as \ |
|---|
| 15 | hierarchies \ |
|---|
| 16 | neato - batch program for drawing undirected graphs \ |
|---|
| 17 | using Kamada-Kawai spring models. \ |
|---|
| 18 | \ |
|---|
| 19 | Users wishing to have only the graph layout \ |
|---|
| 20 | programs (for non-interactive use) can use the +no_x11 \ |
|---|
| 21 | variant to build graphviz without its display routines. |
|---|
| 22 | |
|---|
| 23 | platforms darwin |
|---|
| 24 | |
|---|
| 25 | homepage http://www.graphviz.org/ |
|---|
| 26 | master_sites http://www.graphviz.org/pub/graphviz/ARCHIVE/ |
|---|
| 27 | |
|---|
| 28 | checksums md5 e5547bc0ec47943c72f5c3e2b5dff58f |
|---|
| 29 | |
|---|
| 30 | platform darwin 6 { |
|---|
| 31 | patchfiles-append patch-Makefile.in |
|---|
| 32 | ui_msg "Note: dot2gxl and gxl2dot dot not build on OS X 10.2 (Jaguar). Sorry." |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | platform darwin 7 { |
|---|
| 36 | configure.env-append MACOSX_DEPLOYMENT_TARGET=10.3 |
|---|
| 37 | build.env-append MACOSX_DEPLOYMENT_TARGET=10.3 |
|---|
| 38 | |
|---|
| 39 | depends_lib-append port:gnuregex |
|---|
| 40 | |
|---|
| 41 | post-extract { |
|---|
| 42 | reinplace "s|regex.h|gnuregex.h|g" ${worksrcpath}/lib/gvc/gvconfig.c |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | platform darwin 8 { |
|---|
| 47 | set cppflags { } |
|---|
| 48 | set ldflags { } |
|---|
| 49 | |
|---|
| 50 | if { [variant_isset java] } { |
|---|
| 51 | lappend cppflags -I/System/Library/Frameworks/JavaVM.framework/Headers |
|---|
| 52 | lappend ldflags "-framework JavaVM" |
|---|
| 53 | } |
|---|
| 54 | |
|---|
| 55 | if { [variant_isset ocaml] } { |
|---|
| 56 | lappend cppflags -I${prefix}/lib/ocaml |
|---|
| 57 | lappend ldflags -L${prefix}/lib/ocaml |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | if { [variant_isset python] } { |
|---|
| 61 | lappend cppflags -I/Library/Frameworks/Python.framework/Headers |
|---|
| 62 | } |
|---|
| 63 | |
|---|
| 64 | if { [llength ${cppflags}] > 0 } { |
|---|
| 65 | configure.env-append CPPFLAGS="-I${prefix}/include [join ${cppflags} " "]" \ |
|---|
| 66 | LDFLAGS="-L${prefix}/lib [join ${ldflags} " "]" |
|---|
| 67 | } |
|---|
| 68 | |
|---|
| 69 | configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 \ |
|---|
| 70 | CC=/usr/bin/gcc-4.0 \ |
|---|
| 71 | CPP=/usr/bin/cpp-4.0 \ |
|---|
| 72 | CXX=/usr/bin/g++-4.0 |
|---|
| 73 | |
|---|
| 74 | build.env-append MACOSX_DEPLOYMENT_TARGET=10.4 |
|---|
| 75 | } |
|---|
| 76 | |
|---|
| 77 | depends_lib lib:libX11.6:XFree86 \ |
|---|
| 78 | port:cairo \ |
|---|
| 79 | port:jpeg \ |
|---|
| 80 | port:libpng \ |
|---|
| 81 | port:freetype \ |
|---|
| 82 | port:expat \ |
|---|
| 83 | port:gd2 \ |
|---|
| 84 | port:zlib \ |
|---|
| 85 | port:gettext |
|---|
| 86 | |
|---|
| 87 | depends_run port:urw-fonts |
|---|
| 88 | |
|---|
| 89 | # All of the language bindings except tcl are disabled by default. |
|---|
| 90 | # (If you're running DP, you have a good enough tcl to get the languange |
|---|
| 91 | # binding. If this is a problem for anyone it is easily remedied.) |
|---|
| 92 | # |
|---|
| 93 | configure.env CPPFLAGS=-I${prefix}/include \ |
|---|
| 94 | LDFLAGS=-L${prefix}/lib |
|---|
| 95 | |
|---|
| 96 | configure.args --mandir=${prefix}/share/man \ |
|---|
| 97 | --disable-sharp \ |
|---|
| 98 | --disable-io \ |
|---|
| 99 | --disable-tcl \ |
|---|
| 100 | --disable-java \ |
|---|
| 101 | --disable-guile \ |
|---|
| 102 | --disable-lua \ |
|---|
| 103 | --disable-ocaml \ |
|---|
| 104 | --disable-perl \ |
|---|
| 105 | --disable-php \ |
|---|
| 106 | --disable-python \ |
|---|
| 107 | --disable-ruby |
|---|
| 108 | |
|---|
| 109 | variant tcl { depends_build-append bin:swig:swig |
|---|
| 110 | configure.args-append --enable-tcl |
|---|
| 111 | } |
|---|
| 112 | |
|---|
| 113 | variant java { depends_build-append bin:swig:swig |
|---|
| 114 | configure.args-append --enable-java |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | variant guile { depends_lib-append port:guile |
|---|
| 118 | depends_build-append bin:swig:swig |
|---|
| 119 | configure.args-append --enable-guile |
|---|
| 120 | } |
|---|
| 121 | |
|---|
| 122 | variant lua { depends_lib-append port:lua |
|---|
| 123 | depends_build-append bin:swig:swig |
|---|
| 124 | configure.args-append --enable-lua |
|---|
| 125 | } |
|---|
| 126 | |
|---|
| 127 | variant ocaml { depends_lib-append port:ocaml |
|---|
| 128 | depends_build-append bin:swig:swig |
|---|
| 129 | configure.args-append --enable-ocaml |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | variant perl { depends_lib-append port:perl5.8 |
|---|
| 133 | depends_build-append bin:swig:swig |
|---|
| 134 | configure.args-append --enable-perl |
|---|
| 135 | } |
|---|
| 136 | |
|---|
| 137 | variant php { depends_lib-append port:php4 |
|---|
| 138 | depends_build-append bin:swig:swig |
|---|
| 139 | configure.args-append --enable-php |
|---|
| 140 | } |
|---|
| 141 | |
|---|
| 142 | variant python { depends_lib-append port:python25 |
|---|
| 143 | depends_build-append bin:swig:swig |
|---|
| 144 | configure.args-append --enable-python |
|---|
| 145 | } |
|---|
| 146 | |
|---|
| 147 | variant ruby { depends_lib-append port:ruby |
|---|
| 148 | depends_build-append bin:swig:swig |
|---|
| 149 | configure.args-append --enable-ruby |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | variant all_lang { depends_lib-append port:guile \ |
|---|
| 153 | port:lua \ |
|---|
| 154 | port:ocaml \ |
|---|
| 155 | port:perl5.8 \ |
|---|
| 156 | port:php4 \ |
|---|
| 157 | port:python24 \ |
|---|
| 158 | port:ruby |
|---|
| 159 | |
|---|
| 160 | depends_build-append bin:swig:swig |
|---|
| 161 | |
|---|
| 162 | configure.args-append --enable-guile \ |
|---|
| 163 | --enable-lua \ |
|---|
| 164 | --enable-ocaml \ |
|---|
| 165 | --enable-perl \ |
|---|
| 166 | --enable-php \ |
|---|
| 167 | --enable-python \ |
|---|
| 168 | --enable-ruby |
|---|
| 169 | } |
|---|
| 170 | |
|---|
| 171 | variant no_x11 { depends_lib-delete lib:libX11.6:XFree86 \ |
|---|
| 172 | port:gd2 |
|---|
| 173 | depends_lib-append port:gd2-nox11 |
|---|
| 174 | |
|---|
| 175 | configure.args-append --without-x |
|---|
| 176 | } |
|---|
| 177 | |
|---|
| 178 | |
|---|
| 179 | # Make the configuration file that makes the plugins work: |
|---|
| 180 | |
|---|
| 181 | post-activate { |
|---|
| 182 | system "dot -c" |
|---|
| 183 | } |
|---|