Ticket #23792: RootPortfile.patch
File RootPortfile.patch, 3.5 KB (added by mattiafrancescomoro@…, 15 years ago) |
---|
-
Sviluppo/ports/science/
old new 4 4 5 5 name root 6 6 version 5.26.00 7 revision 17 revision 2 8 8 categories science 9 9 maintainers gmail.com:mattiafrancescomoro 10 10 license LGPLv2.1 … … 26 26 depends_lib port:freetype \ 27 27 port:pcre \ 28 28 port:xpm \ 29 port:zlib 30 29 port:zlib 30 31 31 32 pre-configure { 32 33 build.args CC=${configure.cc} \ 33 34 CXX=${configure.cxx} \ 34 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 35 43 } 36 44 37 45 configure.args --with-cc=${configure.cc} \ … … 64 72 65 73 universal_variant no 66 74 67 default_variants +ssl +builtin_ftgl +roofit +xml +opengl 75 default_variants +ssl +builtin_ftgl +roofit +xml +opengl +python 68 76 69 77 variant fftw3 description {Builds port with fftw3 support} { 70 78 configure.args-delete --disable-fftw3 71 79 configure.args-append --enable-fftw3 \ 72 80 --with-fftw3-incdir="${prefix}/include/" \ 73 --with-fftw3-libdir="${prefix}/lib" \81 --with-fftw3-libdir="${prefix}/lib" 74 82 depends_lib-append port:fftw-3 75 83 } 76 84 … … 113 121 depends_lib-append port:glew 114 122 } 115 123 116 variant afs description {Builds port with afs support} {117 configure.args-delete --disable-afs118 configure.args-append --enable-afs \119 --with-afs-incdir="${prefix}/include" \120 --with-afs-libdir="${prefix}/lib"121 depends_lib-append port:krbafsv122 }123 124 124 variant python description {Builds port with python support} { 125 125 configure.args-delete --disable-python 126 configure.args-append --enable-python 126 configure.args-append --enable-python \ 127 --with-python-libdir=[exec python-config --prefix ]/lib/python2.6/config/ \ 128 --with-python-incdir=[ lindex [ split [ exec python-config --includes | sed -e "s/-I//" ] " " ] 0 ] 129 depends_lib-append port:python26 127 130 } 128 131 129 132 variant ssl description {Builds port with ssl support} { … … 148 151 variant xml description {Builds port with xml support} { 149 152 configure.args-delete --disable-xml 150 153 configure.args-append --enable-xml \ 151 --with-xml-incdir="${prefix}/include" \152 154 --with-xml-incdir="${prefix}/include/libxml2" \ 155 --with-xml-libdir="${prefix}/lib" 153 156 depends_lib-append port:libxml2 154 157 } 155 158 … … 170 173 depends_lib-append port:mysql5 171 174 } 172 175 176 variant pythia description {Pythia support for root} { 177 configure.args-append --enable-pythia8 \ 178 --with-pythia8-incdir="${prefix}/include/" \ 179 --with-pythia8-libdir="${prefix}/lib/" 180 181 depends_lib-append port:pythia 182 } 183 184 173 185 livecheck.type regex 174 186 livecheck.url [lindex ${master_sites} 0] 175 187 livecheck.regex ${name}_v(\[0-9a-z.\]+)\\.source