1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name root |
---|
6 | version 5.25.04 |
---|
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 | distfiles ${name}_v${version}.source.tar.gz |
---|
17 | master_sites ftp://root.cern.ch/root/ |
---|
18 | |
---|
19 | checksums md5 3347d8014f3cbe21eaeb7741b41114cd |
---|
20 | |
---|
21 | worksrcdir root |
---|
22 | |
---|
23 | depends_lib port:freetype \ |
---|
24 | port:pcre \ |
---|
25 | port:xpm |
---|
26 | |
---|
27 | default_variants +ssl +builtin-ftgl +roofit +xml +opengl |
---|
28 | |
---|
29 | configure.args --with-cc=${configure.cc} \ |
---|
30 | --with-f77="${configure.f77}" \ |
---|
31 | --with-cxx="${configure.cxx}" \ |
---|
32 | --etcdir="${prefix}/etc/root" \ |
---|
33 | --docdir="${prefix}/share/doc/${name}-${version}"\ |
---|
34 | --libdir="${prefix}/lib/root" \ |
---|
35 | --testdir="${prefix}/share/root/test" \ |
---|
36 | --tutdir="${prefix}/share/root/tutorials" \ |
---|
37 | --disable-qt \ |
---|
38 | --etcdir=${prefix}/etc/root \ |
---|
39 | --disable-builtin-afterimage \ |
---|
40 | --disable-builtin-freetype \ |
---|
41 | --disable-builtin-glew \ |
---|
42 | --disable-opengl \ |
---|
43 | --disable-builtin-ftgl \ |
---|
44 | --disable-builtin-pcre \ |
---|
45 | --disable-builtin-zlib \ |
---|
46 | --disable-fftw3 \ |
---|
47 | --disable-krb5 \ |
---|
48 | --disable-ldap \ |
---|
49 | --disable-odbc \ |
---|
50 | --disable-mysql \ |
---|
51 | --disable-roofit \ |
---|
52 | --disable-ssl \ |
---|
53 | --disable-xml \ |
---|
54 | --with-x11-libdir="${prefix}/lib" \ |
---|
55 | --with-xpm-libdir="${prefix}/lib" \ |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | variant fftw3 description {Builds port with fftw3 support} { |
---|
60 | configure.args-delete --disable-fftw3 |
---|
61 | configure.args-append --enable-fftw3 \ |
---|
62 | --with-fftw3-incdir="${prefix}/include/" \ |
---|
63 | --with-fftw3-libdir="${prefix}/lib" \ |
---|
64 | depends_lib-append port:fftw-3 |
---|
65 | } |
---|
66 | |
---|
67 | variant kerberos5 description {Builds port with kerberos5 support} { |
---|
68 | configure.args-delete --disable-krb5 |
---|
69 | configure.args-append --enable-krb5 \ |
---|
70 | --with-krb5-incdir="${prefix}/include/" \ |
---|
71 | --with-krb5-libdir="${prefix}/lib" |
---|
72 | depends_lib-append port:kerberos5 |
---|
73 | } |
---|
74 | |
---|
75 | variant odbc description {Builds port with odbc support} { |
---|
76 | configure.args-delete --disable-odbc |
---|
77 | configure.args-append --enable-odbc\ |
---|
78 | --with-odbc-incdir="${prefix}/include/" \ |
---|
79 | --with-odbc-libdir="${prefix}/lib" |
---|
80 | depends_lib-append port:unixODBC |
---|
81 | } |
---|
82 | |
---|
83 | variant ldap description {Builds port with lpap support} { |
---|
84 | configure.args-delete --disable-ldap |
---|
85 | configure.args-append --enable-ldap\ |
---|
86 | --with-ldap-incdir="${prefix}/include/" \ |
---|
87 | --with-ldap-libdir="${prefix}/lib" |
---|
88 | depends_lib-append port:openldap |
---|
89 | } |
---|
90 | |
---|
91 | variant roofit description { Build the libRooFit advanced fitting package} { |
---|
92 | configure.args-delete --disable-roofit |
---|
93 | configure.args-append --enable-roofit |
---|
94 | } |
---|
95 | |
---|
96 | variant opengl description {Builds port with opengl support} { |
---|
97 | configure.args-delete --disable-opengl |
---|
98 | configure.args-append --enable-opengl \ |
---|
99 | --with-opengl-incdir="${prefix}/include" \ |
---|
100 | --with-opengl-libdir="${prefix}/lib" \ |
---|
101 | --with-glew-incdir="${prefix}/include/" \ |
---|
102 | --with-glew-libdir="${prefix}/lib" |
---|
103 | depends_lib-append port:glew |
---|
104 | } |
---|
105 | |
---|
106 | variant afs description {Builds port with afs support} { |
---|
107 | configure.args-delete --disable-afs |
---|
108 | configure.args-append --enable-afs \ |
---|
109 | --with-afs-incdir="${prefix}/include" \ |
---|
110 | --with-afs-libdir="${prefix}/lib" |
---|
111 | depends_lib-append port:krbafsv |
---|
112 | } |
---|
113 | |
---|
114 | variant python description {Builds port with python support} { |
---|
115 | configure.args-delete --disable-python |
---|
116 | configure.args-append --enable-python |
---|
117 | } |
---|
118 | |
---|
119 | variant ssl description {Builds port with ssl support} { |
---|
120 | configure.args-delete --disable-ssl |
---|
121 | configure.args-append --enable-ssl \ |
---|
122 | --with-ssl-shared=yes \ |
---|
123 | --with-ssl-incdir="${prefix}/include/openssl" \ |
---|
124 | --with-ssl-libdir="${prefix}/lib" |
---|
125 | } |
---|
126 | |
---|
127 | variant builtin-ftgl description {Builds port with builtin-ftgl support} { |
---|
128 | configure.args-delete --disable-builtin-ftgl |
---|
129 | configure.args-append --enable-builtin-ftgl |
---|
130 | } |
---|
131 | |
---|
132 | variant ftgl description {Builds port with ftgl support} { |
---|
133 | configure.args-append --with-ftgl-incdir="${prefix}/include" \ |
---|
134 | --with-ftgl-libdir="${prefix}/lib" |
---|
135 | depends_lib-append port:ftgl |
---|
136 | } |
---|
137 | |
---|
138 | variant xml description {Builds port with xml support} { |
---|
139 | configure.args-delete --disable-xml |
---|
140 | configure.args-append --enable-xml \ |
---|
141 | --with-xml-incdir="${prefix}/include" \ |
---|
142 | --with-xml-libdir="${prefix}/lib" |
---|
143 | depends_lib-append port:xml2 |
---|
144 | } |
---|
145 | |
---|
146 | variant qt description {Builds port with qt support} { |
---|
147 | configure.args-delete --disable-qt |
---|
148 | configure.args-append --enable-qt \ |
---|
149 | --with-qt-incdir="${prefix}/libexec/qt4-x11/include/" \ |
---|
150 | --with-qt-libdir="${prefix}/libexec/qt4-x11/lib" |
---|
151 | |
---|
152 | depends_lib-append port:qt4-x11 |
---|
153 | } |
---|
154 | |
---|
155 | variant mysql description {Builds port with mysql support} { |
---|
156 | configure.args-delete --disable-mysql |
---|
157 | configure.args-append --enable-mysql \ |
---|
158 | --with-mysql-incdir="${prefix}/include/" \ |
---|
159 | --with-mysql-libdir="${prefix}/lib" |
---|
160 | depends_lib-append port:mysql5 |
---|
161 | } |
---|
162 | |
---|
163 | pre-configure { |
---|
164 | build.args CC=${configure.cc} \ |
---|
165 | CXX=${configure.cxx} \ |
---|
166 | F77=${configure.f77} |
---|
167 | } |
---|