Ticket #29960: Portfile.patch

File Portfile.patch, 1.7 KB (added by drkp (Dan Ports), 13 years ago)
  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/tex/bibutils/Portfile

     
    55
    66name                bibutils
    77version             4.12
     8revision            1
    89categories          tex
    910maintainers         openmaintainer jochen
    1011description         bibliography conversion utilities
     
    2627                    sha1    027be11cbad8261d0a6fc1056010480b23385ba2 \
    2728                    rmd160  fdd162cdea2f6ea88f317dd246208e8e770f13f2
    2829
    29 configure.pre_args  --install-dir ${destroot}${prefix}/bin
     30configure {
     31    file delete ${worksrcpath}/Makefile ${worksrcpath}/lib/Makefile ${worksrcpath}/bin/Makefile
     32    file copy ${worksrcpath}/bin/Makefile.static ${worksrcpath}/bin/Makefile
     33    file copy ${worksrcpath}/lib/Makefile.static ${worksrcpath}/lib/Makefile
     34    file copy ${worksrcpath}/Makefile_start ${worksrcpath}/Makefile
     35    if {[variant_isset "universal"]} {
     36        set CFLAGS "${configure.cflags} ${configure.universal_cflags}"
     37    } else {
     38        set CFLAGS "${configure.cflags} ${configure.cc_archflags}"
     39    }
     40    reinplace "s|REPLACE_CC|CC=\"${configure.cc} ${CFLAGS}\"|" ${worksrcpath}/Makefile
     41    reinplace "s|REPLACE_RANLIB|RANLIB=\"ranlib -s\"|" ${worksrcpath}/Makefile
     42    reinplace "s|REPLACE_INSTALLDIR|${destroot}${prefix}/bin|" ${worksrcpath}/Makefile
     43    reinplace "s|REPLACE_LIBINSTALLDIR|${destroot}${prefix}/lib|" ${worksrcpath}/Makefile
     44    reinplace "s|REPLACE_POSTFIX|_osx|" ${worksrcpath}/Makefile
     45}