1 | # $Id: Portfile 63704 2010-02-12 21:38:34Z macsforever2000@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name root |
---|
6 | version 5.26.00 |
---|
7 | categories science |
---|
8 | maintainers gmail.com:mattiafrancescomoro |
---|
9 | license LGPLv2.1 |
---|
10 | description Root cern data analysis framework |
---|
11 | long_description The ROOT system provides a set of frameworks with all \ |
---|
12 | the functionality needed to handle and analyze large amounts \ |
---|
13 | of data in a very efficient way |
---|
14 | homepage http://root.cern.ch/ |
---|
15 | platforms darwin |
---|
16 | distname ${name}_v${version}.source |
---|
17 | master_sites ftp://root.cern.ch/root/ |
---|
18 | |
---|
19 | checksums md5 0665462b9c9a153e20d2efcde6cf427c \ |
---|
20 | sha1 318c5adf7f54f8206d9173d2fb0dc196a0e87192 \ |
---|
21 | rmd160 bf7f91abd76ec86f69eb80506291cb8d4f87614e |
---|
22 | |
---|
23 | worksrcdir root |
---|
24 | |
---|
25 | depends_lib port:freetype \ |
---|
26 | port:pcre \ |
---|
27 | port:xpm |
---|
28 | |
---|
29 | |
---|
30 | pre-configure { |
---|
31 | build.args CC=${configure.cc} \ |
---|
32 | CXX=${configure.cxx} \ |
---|
33 | F77=${configure.f77} |
---|
34 | } |
---|
35 | |
---|
36 | configure.args --with-cc=${configure.cc} \ |
---|
37 | --with-f77="${configure.f77}" \ |
---|
38 | --with-cxx="${configure.cxx}" \ |
---|
39 | --etcdir="${prefix}/etc/root" \ |
---|
40 | --docdir="${prefix}/share/doc/${name}-${version}"\ |
---|
41 | --libdir="${prefix}/lib/root" \ |
---|
42 | --testdir="${prefix}/share/root/test" \ |
---|
43 | --tutdir="${prefix}/share/root/tutorials" \ |
---|
44 | --disable-qt \ |
---|
45 | --etcdir=${prefix}/etc/root \ |
---|
46 | --disable-builtin-afterimage \ |
---|
47 | --disable-builtin-freetype \ |
---|
48 | --disable-builtin-glew \ |
---|
49 | --disable-opengl \ |
---|
50 | --disable-builtin-ftgl \ |
---|
51 | --disable-builtin-pcre \ |
---|
52 | --disable-builtin-zlib \ |
---|
53 | --disable-fftw3 \ |
---|
54 | --disable-krb5 \ |
---|
55 | --disable-ldap \ |
---|
56 | --disable-odbc \ |
---|
57 | --disable-mysql \ |
---|
58 | --disable-roofit \ |
---|
59 | --disable-ssl \ |
---|
60 | --disable-xml \ |
---|
61 | --with-x11-libdir="${prefix}/lib" \ |
---|
62 | --with-xpm-libdir="${prefix}/lib" \ |
---|
63 | |
---|
64 | default_variants +ssl +builtin_ftgl +roofit +xml +opengl +python |
---|
65 | |
---|
66 | variant fftw3 description {Builds port with fftw3 support} { |
---|
67 | configure.args-delete --disable-fftw3 |
---|
68 | configure.args-append --enable-fftw3 \ |
---|
69 | --with-fftw3-incdir="${prefix}/include/" \ |
---|
70 | --with-fftw3-libdir="${prefix}/lib" \ |
---|
71 | depends_lib-append port:fftw-3 |
---|
72 | } |
---|
73 | |
---|
74 | variant kerberos5 description {Builds port with kerberos5 support} { |
---|
75 | configure.args-delete --disable-krb5 |
---|
76 | configure.args-append --enable-krb5 \ |
---|
77 | --with-krb5-incdir="${prefix}/include/" \ |
---|
78 | --with-krb5-libdir="${prefix}/lib" |
---|
79 | depends_lib-append port:kerberos5 |
---|
80 | } |
---|
81 | |
---|
82 | variant odbc description {Builds port with odbc support} { |
---|
83 | configure.args-delete --disable-odbc |
---|
84 | configure.args-append --enable-odbc\ |
---|
85 | --with-odbc-incdir="${prefix}/include/" \ |
---|
86 | --with-odbc-libdir="${prefix}/lib" |
---|
87 | depends_lib-append port:unixODBC |
---|
88 | } |
---|
89 | |
---|
90 | variant ldap description {Builds port with lpap support} { |
---|
91 | configure.args-delete --disable-ldap |
---|
92 | configure.args-append --enable-ldap\ |
---|
93 | --with-ldap-incdir="${prefix}/include/" \ |
---|
94 | --with-ldap-libdir="${prefix}/lib" |
---|
95 | depends_lib-append port:openldap |
---|
96 | } |
---|
97 | |
---|
98 | variant roofit description { Build the libRooFit advanced fitting package} { |
---|
99 | configure.args-delete --disable-roofit |
---|
100 | configure.args-append --enable-roofit |
---|
101 | } |
---|
102 | |
---|
103 | variant opengl description {Builds port with opengl support} { |
---|
104 | configure.args-delete --disable-opengl |
---|
105 | configure.args-append --enable-opengl \ |
---|
106 | --with-opengl-incdir="${prefix}/include" \ |
---|
107 | --with-opengl-libdir="${prefix}/lib" \ |
---|
108 | --with-glew-incdir="${prefix}/include/" \ |
---|
109 | --with-glew-libdir="${prefix}/lib" |
---|
110 | depends_lib-append port:glew |
---|
111 | } |
---|
112 | |
---|
113 | variant afs description {Builds port with afs support} { |
---|
114 | configure.args-delete --disable-afs |
---|
115 | configure.args-append --enable-afs \ |
---|
116 | --with-afs-incdir="${prefix}/include" \ |
---|
117 | --with-afs-libdir="${prefix}/lib" |
---|
118 | depends_lib-append port:krbafsv |
---|
119 | } |
---|
120 | |
---|
121 | variant python description {Builds port with python support} { |
---|
122 | configure.args-delete --disable-python |
---|
123 | configure.args-append --enable-python \ |
---|
124 | --with-python-libdir=[exec python-config --prefix ]/lib/python2.6/config/ \ |
---|
125 | --with-python-incdir=[ lindex [ split [ exec python-config --includes | sed -e "s/-I//" ] " " ] 0 ] |
---|
126 | |
---|
127 | depends_lib-append port:python26 |
---|
128 | } |
---|
129 | |
---|
130 | variant ssl description {Builds port with ssl support} { |
---|
131 | configure.args-delete --disable-ssl |
---|
132 | configure.args-append --enable-ssl \ |
---|
133 | --with-ssl-shared=yes \ |
---|
134 | --with-ssl-incdir="${prefix}/include" \ |
---|
135 | --with-ssl-libdir="${prefix}/lib" |
---|
136 | } |
---|
137 | |
---|
138 | variant builtin_ftgl description {Builds port with builtin-ftgl support} { |
---|
139 | configure.args-delete --disable-builtin-ftgl |
---|
140 | configure.args-append --enable-builtin-ftgl |
---|
141 | } |
---|
142 | |
---|
143 | variant ftgl description {Builds port with ftgl support} { |
---|
144 | configure.args-append --with-ftgl-incdir="${prefix}/include" \ |
---|
145 | --with-ftgl-libdir="${prefix}/lib" |
---|
146 | depends_lib-append port:ftgl |
---|
147 | } |
---|
148 | |
---|
149 | variant xml description {Builds port with xml support} { |
---|
150 | configure.args-delete --disable-xml |
---|
151 | configure.args-append --enable-xml \ |
---|
152 | --with-xml-incdir="${prefix}/include" \ |
---|
153 | --with-xml-libdir="${prefix}/lib" |
---|
154 | depends_lib-append port:xml2 |
---|
155 | } |
---|
156 | |
---|
157 | variant qt description {Builds port with qt support} { |
---|
158 | configure.args-delete --disable-qt |
---|
159 | configure.args-append --enable-qt \ |
---|
160 | --with-qt-incdir="${prefix}/libexec/qt4-x11/include/" \ |
---|
161 | --with-qt-libdir="${prefix}/libexec/qt4-x11/lib" |
---|
162 | |
---|
163 | depends_lib-append port:qt4-x11 |
---|
164 | } |
---|
165 | |
---|
166 | variant mysql description {Builds port with mysql support} { |
---|
167 | configure.args-delete --disable-mysql |
---|
168 | configure.args-append --enable-mysql \ |
---|
169 | --with-mysql-incdir="${prefix}/include/" \ |
---|
170 | --with-mysql-libdir="${prefix}/lib" |
---|
171 | depends_lib-append port:mysql5 |
---|
172 | } |
---|
173 | |
---|
174 | variant pythia description {Pythia support for root} { |
---|
175 | configure.args-append --enable-pythia8 \ |
---|
176 | --with-pythia8-incdir="${prefix}/include/" \ |
---|
177 | --with-pythia8-libdir="${prefix}/lib/" |
---|
178 | |
---|
179 | depends_lib-append port:pythia |
---|
180 | } |
---|