Changeset 80812 for trunk/dports/tex


Ignore:
Timestamp:
Jul 18, 2011, 9:52:23 AM (8 years ago)
Author:
dports@…
Message:

bibutils: set compiler and cflags to ensure that we are
UsingTheRightCompiler and building for the right architecture (the
port previously only built i386+ppc universal; see #29960)

By the time we've fixed that, we've replaced most of the functionality
of the port's simple configure script, so it's easiest just to skip it
and produce the Makefile ourselves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/bibutils/Portfile

    r79903 r80812  
    66name                bibutils
    77version             4.12
     8revision            1
    89categories          tex
    910maintainers         openmaintainer jochen
     
    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}
Note: See TracChangeset for help on using the changeset viewer.