Ignore:
Timestamp:
Apr 11, 2012, 6:07:19 AM (7 years ago)
Author:
jeremyhu@…
Message:

Fix building perl5 modules as +universal

This is a bit dirty, and I'm sorry for that. If someone with better
tcl-foo (or Makefile.PL-foo) can do a better job of it, please do so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/perl5-1.0.tcl

    r88287 r91807  
    7575default livecheck.version {${perl5.moduleversion}}
    7676
     77# Needed for get_canonical_archflags
     78variant universal {}
    7779default configure.universal_args {}
    7880
     
    146148        configure.args      INSTALLDIRS=vendor
    147149
     150        # CCFLAGS can be passed in to "configure" but it's not necessarilary inherited
     151        # LDFLAGS can't be passed in (or if it can, it's not easy to figure out how)
     152        depends_build port:gsed
     153        post-configure {
     154            system "find ${worksrcpath} -name Makefile | xargs ${prefix}/bin/gsed -i '/^CCFLAGS *=/s/$/ [get_canonical_archflags cc]/' \;"
     155            system "find ${worksrcpath} -name Makefile | xargs ${prefix}/bin/gsed -i '/^OTHERLDFLAGS *=/s/$/ [get_canonical_archflags ld]/'"
     156        }
     157
    148158        test.run            yes
    149159
Note: See TracChangeset for help on using the changeset viewer.