| 34 | | configure { |
| 35 | | xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile |
| 36 | | reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile |
| 37 | | reinplace "s|@CFLAGS@|${configure.cflags}|g" ${worksrcpath}/Makefile |
| 38 | | reinplace "s|@CPPFLAGS@|${configure.cppflags}|g" ${worksrcpath}/Makefile |
| 39 | | reinplace "s|@LDFLAGS@|${configure.ldflags}|g" ${worksrcpath}/Makefile |
| | 35 | variant universal {} |
| | 36 | |
| | 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 | } |