29 | | configure.pre_args --install-dir ${destroot}${prefix}/bin |
| 30 | configure { |
| 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 | } |