Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 39644 for trunk

Show
Ignore:
Timestamp:
08/27/08 13:57:01 (3 months ago)
Author:
ryandesign@…
Message:

dcraw: use a Makefile to build the dcraw binary

Location:
trunk/dports/graphics/dcraw
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/dcraw/Portfile

    r39643 r39644  
    1313worksrcdir              $name 
    1414dist_subdir             ${name}/${version}-${distfile_date} 
    15 use_configure           no 
    1615use_parallel_build      yes 
    1716 
     
    3332    port:lcms 
    3433 
    35 variant universal {} 
     34post-extract { 
     35    xinstall -W ${filespath} Makefile.in ${worksrcpath}/Makefile 
     36} 
    3637 
    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 
     39configure.cmd           true 
     40 
     41post-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 
    4347} 
    4448