Ticket #11225: graphviz-portfile.diff
File graphviz-portfile.diff, 2.6 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
Portfile
44 44 } 45 45 46 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 47 69 configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 \ 48 70 CC=/usr/bin/gcc-4.0 \ 49 71 CPP=/usr/bin/cpp-4.0 \ … … 72 94 LDFLAGS=-L${prefix}/lib 73 95 74 96 configure.args --mandir=${prefix}/share/man \ 97 --disable-sharp \ 98 --disable-io \ 99 --disable-tcl \ 100 --disable-java \ 75 101 --disable-guile \ 76 102 --disable-lua \ 77 103 --disable-ocaml \ … … 80 106 --disable-python \ 81 107 --disable-ruby 82 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 83 117 variant guile { depends_lib-append port:guile 118 depends_build-append bin:swig:swig 84 119 configure.args-append --enable-guile 85 120 } 86 121 87 122 variant lua { depends_lib-append port:lua 123 depends_build-append bin:swig:swig 88 124 configure.args-append --enable-lua 89 125 } 90 126 91 127 variant ocaml { depends_lib-append port:ocaml 128 depends_build-append bin:swig:swig 92 129 configure.args-append --enable-ocaml 93 130 } 94 131 95 132 variant perl { depends_lib-append port:perl5.8 133 depends_build-append bin:swig:swig 96 134 configure.args-append --enable-perl 97 135 } 98 136 99 137 variant php { depends_lib-append port:php4 138 depends_build-append bin:swig:swig 100 139 configure.args-append --enable-php 101 140 } 102 141 103 variant python { depends_lib-append port:python24 142 variant python { depends_lib-append port:python25 143 depends_build-append bin:swig:swig 104 144 configure.args-append --enable-python 105 145 } 106 146 107 147 variant ruby { depends_lib-append port:ruby 148 depends_build-append bin:swig:swig 108 149 configure.args-append --enable-ruby 109 150 } 110 151 … … 116 157 port:python24 \ 117 158 port:ruby 118 159 160 depends_build-append bin:swig:swig 161 119 162 configure.args-append --enable-guile \ 120 163 --enable-lua \ 121 164 --enable-ocaml \