Revision: 140553 https://trac.macports.org/changeset/140553 Author: ionic@macports.org Date: 2015-09-22 11:46:28 -0700 (Tue, 22 Sep 2015) Log 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. Modified Paths: -------------- trunk/dports/devel/lua-lpeg/Portfile Modified: trunk/dports/devel/lua-lpeg/Portfile =================================================================== --- trunk/dports/devel/lua-lpeg/Portfile 2015-09-22 17:24:33 UTC (rev 140552) +++ trunk/dports/devel/lua-lpeg/Portfile 2015-09-22 18:46:28 UTC (rev 140553) @@ -26,7 +26,11 @@ depends_lib port:lua patchfiles patch-makefile.diff -post-patch { + +# This should be done in post-patch, but lua is only available as a dependency +# in configure and later phases. Thus, using pkg-config to get the C and LDFLAGS +# fails miserably in trace mode. +pre-configure { reinplace "s|%%CFLAGS%%|${configure.cflags} [exec ${prefix}/bin/pkg-config lua --cflags]|" ${worksrcpath}/makefile reinplace "s|%%LDFLAGS%%|${configure.ldflags} [exec ${prefix}/bin/pkg-config lua --libs]|" ${worksrcpath}/makefile
participants (1)
-
ionic@macports.org