Changeset 140553


Ignore:
Timestamp:
Sep 22, 2015, 6:46:28 PM (2 years ago)
Author:
ionic@…
Message:

lua-lpeg: fix trace mode builds: exchange post-patch phase with pre-configure. lib dependencies are available in configure and later only, but we're querying pkg-config directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/lua-lpeg/Portfile

    r140257 r140553  
    2727
    2828patchfiles          patch-makefile.diff
    29 post-patch {
     29
     30# This should be done in post-patch, but lua is only available as a dependency
     31# in configure and later phases. Thus, using pkg-config to get the C and LDFLAGS
     32# fails miserably in trace mode.
     33pre-configure {
    3034    reinplace  "s|%%CFLAGS%%|${configure.cflags}  [exec ${prefix}/bin/pkg-config lua --cflags]|" ${worksrcpath}/makefile
    3135    reinplace "s|%%LDFLAGS%%|${configure.ldflags} [exec ${prefix}/bin/pkg-config lua --libs]|"   ${worksrcpath}/makefile
Note: See TracChangeset for help on using the changeset viewer.