Ticket #24680: Portfile-root.diff

File Portfile-root.diff, 1.2 KB (added by mattiafrancescomoro@…, 15 years ago)

I'm sorry, this is the correct file

  • Portfile

    old new  
    3232    build.args      CC=${configure.cc} \
    3333                    CXX=${configure.cxx} \
    3434                    F77=${configure.f77}
     35
     36                    reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
     37                    reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure
     38                    reinplace "s|/usr/lib |${prefix}/lib /usr/lib |g" ${worksrcpath}/configure
     39                    reinplace "s|/usr/include |${prefix}/include /usr/include |g" ${worksrcpath}/configure
     40                    reinplace "s|\"/usr/lib\"|\"${prefix}/lib/\" \"/usr/lib\"g|" ${worksrcpath}/configure
     41
    3542}
    3643
    3744configure.args      --with-cc=${configure.cc} \
     
    141148variant xml description {Builds port with xml support} {
    142149    configure.args-delete   --disable-xml
    143150    configure.args-append   --enable-xml \
    144                             --with-xml-incdir="${prefix}/include" \
     151                            --with-xml-incdir="${prefix}/include/libxml2" \
    145152                            --with-xml-libdir="${prefix}/lib"
    146153    depends_lib-append      port:libxml2
    147154}