Ticket #2951: mpfr.diff

File mpfr.diff, 1.1 KB (added by mww@…, 19 years ago)

diff for devel/mpfr/Portfile

  • Portfile

    old new  
    44
    55name            mpfr
    66version         2.1.1
     7revision        1
    78categories      devel math
    89platforms       darwin
    910maintainers     leimy@opendarwin.org
     
    1819homepage        http://www.mpfr.org
    1920master_sites    http://www.mpfr.org/mpfr-current
    2021checksums       md5 b7eb5932ab86c78d13ed0569ad26af38
     22patchfiles      patch-Makefile.in
    2123
    2224depends_lib     lib:libgmp.3:gmp
    2325
    2426configure.args  --infodir=\\\${prefix}/share/info --with-gmp=${prefix}
     27configure.env   CFLAGS="-fno-common" LDFLAGS="-L${prefix}/lib"
     28
     29build.args      all libmpfr.${version}.dylib
    2530
    2631post-destroot   {
    2732                xinstall -d -m 755 ${destroot}${prefix}/share/${name}
    2833                xinstall -m 644 -v -W ${worksrcpath} mpfr.texi texinfo.tex \
    2934                ${destroot}${prefix}/share/${name}
    3035                system "ranlib ${destroot}${prefix}/lib/libmpfr.a"
     36                xinstall -m 644 ${worksrcpath}/libmpfr.${version}.dylib \
     37                ${destroot}${prefix}/lib
     38                set ln "ln -s libmpfr.${version}.dylib"
     39                system "cd ${destroot}${prefix}/lib && ${ln} libmpfr.2.1.dylib && ${ln} libmpfr.2.dylib && ${ln} libmpfr.dylib"
    3140}
    3241
    3342variant darwin x86      {