Changeset 73041


Ignore:
Timestamp:
Nov 1, 2010, 11:34:21 PM (10 years ago)
Author:
ryandesign@…
Message:

convertlit: add universal variant

Location:
trunk/dports/textproc/convertlit
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/convertlit/Portfile

    r73040 r73041  
    3535   
    3636    # DOS to UNIX line endings so we can patch
    37     reinplace "s|\r||g" ${worksrcpath}/clit/Makefile
     37    reinplace "s|\r||g" ${worksrcpath}/clit/Makefile \
     38                        ${worksrcpath}/lib/Makefile
    3839}
    3940
    4041patchfiles              patch-clit-Makefile.diff \
    41                         patch-clit-hexdump.c.diff
     42                        patch-clit-hexdump.c.diff \
     43                        patch-lib-Makefile.diff
    4244
    4345use_configure           no
     
    4547configure.cppflags-append -I${prefix}/include/libtommath
    4648
    47 build.args              CC="${configure.cc} ${configure.cc_archflags}" \
     49variant universal {}
     50if {[variant_isset universal]} {
     51    set archflags ${configure.universal_cflags}
     52} else {
     53    set archflags ${configure.cc_archflags}
     54}
     55
     56build.args              CC="${configure.cc} ${archflags}" \
    4857                        CPPFLAGS="${configure.cppflags}" \
    49                         LDFLAGS="${configure.ldflags}" \
    50                         PREFIX="${prefix}"
     58                        LDFLAGS="${configure.ldflags}"
    5159
    5260destroot {
Note: See TracChangeset for help on using the changeset viewer.