| 37 | | build { |
| 38 | | if {[variant_isset universal]} { |
| 39 | | system "cd ${worksrcpath} && cc -o dcraw ${configure.cflags} ${configure.universal_cflags} dcraw.c -ljpeg -llcms -lintl -liconv ${configure.cppflags} ${configure.ldflags} -DLOCALEDIR=\\\"${prefix}/share/locale/\\\"" |
| 40 | | } else { |
| 41 | | system "cd ${worksrcpath} && cc -o dcraw ${configure.cflags} dcraw.c -ljpeg -llcms -lintl -liconv ${configure.cppflags} ${configure.ldflags} -DLOCALEDIR=\\\"${prefix}/share/locale/\\\"" |
| 42 | | } |
| | 38 | # configure.cc doesn't get set until the default configure phase runs |
| | 39 | configure.cmd true |
| | 40 | |
| | 41 | post-configure { |
| | 42 | reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile |
| | 43 | reinplace "s|@CFLAGS@|${configure.cflags}|g" ${worksrcpath}/Makefile |
| | 44 | reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile |
| | 45 | reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/Makefile |
| | 46 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile |