[MacPorts] #38570: lua-lpeg @0.11: portfile parse error if lua is not installed
MacPorts
noreply at macports.org
Fri Mar 29 01:34:01 PDT 2013
#38570: lua-lpeg @0.11: portfile parse error if lua is not installed
-----------------------+--------------------------
Reporter: egall@… | Owner: and.damore@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: fixed | Keywords:
Port: lua-lpeg |
-----------------------+--------------------------
Comment (by larryv@…):
Replying to [comment:3 and.damore@…]:
> That's not possible AFAIK, even if you set a variable in an augmented
> phase it would not be available at portfile's main level. A correct
> approach is patching the makefile rather than passing the values on
> build args.
Sorry, I wasn’t clear. You’d use a block like this:
{{{
pre-build {
build.args-append LDFLAGS="${configure.ldflags} [exec ${prefix}/bin
/pkg-config lua --libs]"
}
}}}
Or set `build.args` all at once, if you’d like:
{{{
pre-build {
build.args CC="${configure.cc} [get_canonical_archflags]" \
LUADIR=${prefix}/include \
CFLAGS="${configure.cflags}" \
LDFLAGS="${configure.ldflags} [exec ${prefix}/bin/pkg-
config lua --libs]"
}
}}}
These idioms obviate the need for unnecessary patching.
--
Ticket URL: <https://trac.macports.org/ticket/38570#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list