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:ncurses \ |
---|
28 | port:libxml2 \ |
---|
29 | port:xpm |
---|
30 | |
---|
31 | |
---|
32 | pre-configure { |
---|
33 | build.args CC=${configure.cc} \ |
---|
34 | CXX=${configure.cxx} \ |
---|
35 | F77=${configure.f77} |
---|
36 | |
---|
37 | reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in |
---|
38 | reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure |
---|
39 | reinplace "s|/usr/lib |${prefix}/lib /usr/lib |g" ${worksrcpath}/configure |
---|
40 | reinplace "s|/usr/include |${prefix}/include /usr/include |g" ${worksrcpath}/configure |
---|
41 | reinplace "s|\"/usr/lib\"|\"${prefix}/lib/\" \"/usr/lib\"g|" ${worksrcpath}/configure |
---|
42 | |
---|
43 | } |
---|
44 | |
---|
45 | configure.args --with-cc=${configure.cc} \ |
---|
46 | --with-f77="${configure.f77}" \ |
---|
47 | --with-cxx="${configure.cxx}" \ |
---|
48 | --etcdir="${prefix}/etc/root" \ |
---|
49 | --docdir="${prefix}/share/doc/${name}-${version}"\ |
---|
50 | --libdir="${prefix}/lib/root" \ |
---|
51 | --testdir="${prefix}/share/root/test" \ |
---|
52 | --tutdir="${prefix}/share/root/tutorials" \ |
---|
53 | --disable-qt \ |
---|
54 | --etcdir=${prefix}/etc/root \ |
---|
55 | --disable-builtin-afterimage \ |
---|
56 | --disable-builtin-freetype \ |
---|
57 | --disable-builtin-glew \ |
---|
58 | --disable-opengl \ |
---|
59 | --disable-builtin-ftgl \ |
---|
60 | --disable-builtin-pcre \ |
---|
61 | --disable-builtin-zlib \ |
---|
62 | --disable-fftw3 \ |
---|
63 | --disable-krb5 \ |
---|
64 | --disable-ldap \ |
---|
65 | --disable-odbc \ |
---|
66 | --disable-mysql \ |
---|
67 | --disable-roofit \ |
---|
68 | --disable-ssl \ |
---|
69 | --disable-xml \ |
---|
70 | --with-curses-incdir="${prefix}/include/ncurses/" \ |
---|
71 | --with-curses-libdir="${prefix}/lib/" \ |
---|
72 | --with-xml-incdir="${prefix}/include/libxml2" \ |
---|
73 | --with-xml-libdir="${prefix}/lib" \ |
---|
74 | --with-x11-libdir="${prefix}/lib" \ |
---|
75 | --with-xpm-libdir="${prefix}/lib" \ |
---|
76 | |
---|
77 | default_variants +ssl +builtin_ftgl +roofit +xml +opengl +python |
---|
78 | |
---|
79 | variant fftw3 description {Builds port with fftw3 support} { |
---|
80 | configure.args-delete --disable-fftw3 |
---|
81 | configure.args-append --enable-fftw3 \ |
---|
82 | --with-fftw3-incdir="${prefix}/include/" \ |
---|
83 | --with-fftw3-libdir="${prefix}/lib" \ |
---|
84 | depends_lib-append port:fftw-3 |
---|
85 | } |
---|
86 | |
---|
87 | variant kerberos5 description {Builds port with kerberos5 support} { |
---|
88 | configure.args-delete --disable-krb5 |
---|
89 | configure.args-append --enable-krb5 \ |
---|
90 | --with-krb5-incdir="${prefix}/include/" \ |
---|
91 | --with-krb5-libdir="${prefix}/lib" |
---|
92 | depends_lib-append port:kerberos5 |
---|
93 | } |
---|
94 | |
---|
95 | variant odbc description {Builds port with odbc support} { |
---|
96 | configure.args-delete --disable-odbc |
---|
97 | configure.args-append --enable-odbc\ |
---|
98 | --with-odbc-incdir="${prefix}/include/" \ |
---|
99 | --with-odbc-libdir="${prefix}/lib" |
---|
100 | depends_lib-append port:unixODBC |
---|
101 | } |
---|
102 | |
---|
103 | variant ldap description {Builds port with lpap support} { |
---|
104 | configure.args-delete --disable-ldap |
---|
105 | configure.args-append --enable-ldap\ |
---|
106 | --with-ldap-incdir="${prefix}/include/" \ |
---|
107 | --with-ldap-libdir="${prefix}/lib" |
---|
108 | depends_lib-append port:openldap |
---|
109 | } |
---|
110 | |
---|
111 | variant roofit description { Build the libRooFit advanced fitting package} { |
---|
112 | configure.args-delete --disable-roofit |
---|
113 | configure.args-append --enable-roofit |
---|
114 | } |
---|
115 | |
---|
116 | variant opengl description {Builds port with opengl support} { |
---|
117 | configure.args-delete --disable-opengl |
---|
118 | configure.args-append --enable-opengl \ |
---|
119 | --with-opengl-incdir="${prefix}/include" \ |
---|
120 | --with-opengl-libdir="${prefix}/lib" \ |
---|
121 | --with-glew-incdir="${prefix}/include/" \ |
---|
122 | --with-glew-libdir="${prefix}/lib" |
---|
123 | depends_lib-append port:glew |
---|
124 | } |
---|
125 | |
---|
126 | variant python description {Builds port with python support} { |
---|
127 | configure.args-delete --disable-python |
---|
128 | configure.args-append --enable-python \ |
---|
129 | --with-python-libdir=[exec python-config --prefix ]/lib/python2.6/config/ \ |
---|
130 | --with-python-incdir=[ lindex [ split [ exec python-config --includes | sed -e "s/-I//" ] " " ] 0 ] |
---|
131 | depends_lib-append port:python26 |
---|
132 | } |
---|
133 | |
---|
134 | variant ssl description {Builds port with ssl support} { |
---|
135 | configure.args-delete --disable-ssl |
---|
136 | configure.args-append --enable-ssl \ |
---|
137 | --with-ssl-shared=yes \ |
---|
138 | --with-ssl-incdir="${prefix}/include" \ |
---|
139 | --with-ssl-libdir="${prefix}/lib" |
---|
140 | } |
---|
141 | |
---|
142 | variant builtin_ftgl description {Builds port with builtin-ftgl support} { |
---|
143 | configure.args-delete --disable-builtin-ftgl |
---|
144 | configure.args-append --enable-builtin-ftgl |
---|
145 | } |
---|
146 | |
---|
147 | variant ftgl description {Builds port with ftgl support} { |
---|
148 | configure.args-append --with-ftgl-incdir="${prefix}/include" \ |
---|
149 | --with-ftgl-libdir="${prefix}/lib" |
---|
150 | depends_lib-append port:ftgl |
---|
151 | } |
---|
152 | |
---|
153 | variant xml description {Builds port with xml support} { |
---|
154 | configure.args-delete --disable-xml |
---|
155 | configure.args-append --enable-xml \ |
---|
156 | --with-xml-incdir="${prefix}/include" \ |
---|
157 | --with-xml-libdir="${prefix}/lib" |
---|
158 | depends_lib-append port:xml2 |
---|
159 | } |
---|
160 | |
---|
161 | variant qt description {Builds port with qt support} { |
---|
162 | configure.args-delete --disable-qt |
---|
163 | configure.args-append --enable-qt \ |
---|
164 | --with-qt-incdir="${prefix}/libexec/qt4-x11/include/" \ |
---|
165 | --with-qt-libdir="${prefix}/libexec/qt4-x11/lib" |
---|
166 | |
---|
167 | depends_lib-append port:qt4-x11 |
---|
168 | } |
---|
169 | |
---|
170 | variant mysql description {Builds port with mysql support} { |
---|
171 | configure.args-delete --disable-mysql |
---|
172 | configure.args-append --enable-mysql \ |
---|
173 | --with-mysql-incdir="${prefix}/include/" \ |
---|
174 | --with-mysql-libdir="${prefix}/lib" |
---|
175 | depends_lib-append port:mysql5 |
---|
176 | } |
---|
177 | |
---|
178 | variant pythia description {Pythia support for root} { |
---|
179 | configure.args-append --enable-pythia8 \ |
---|
180 | --with-pythia8-incdir="${prefix}/include/" \ |
---|
181 | --with-pythia8-libdir="${prefix}/lib/" |
---|
182 | |
---|
183 | depends_lib-append port:pythia |
---|
184 | } |
---|