On 24 April 2013 17:31, Thijs Schreijer <th...@thijsschreijer.nl> wrote:
> Currently I have in a rockspec;
>     incdirs = {
>       "lib_src",
>       "dss",
>       "../pupnp/ixml/inc",
>       "../pupnp/upnp/inc",
>       "../pupnp/upnp/src/inc",
>       "../pupnp/threadutil/inc",
>     },
>
> It is a binding for the pupnp library.
>
> Is there a way to make the "../pupnp" part of the paths a variable that can 
> be passed along on the make command line?
> Eg: "luarocks make PUPNPPATH=../pupnp"

Not as 'generically' as one would do with actual 'make', but let's
see... what's the idea? To let the user choose between the bundled
copy or an external one?

If so, define an external_dependencies entry called PUPNP and use
"$(PUPNP_DIR)" or "$(PUPNP_INCDIR)". The problem, however, is that
using an external copy probably means using an installed one, in which
header directories probably don't look like /.../inc, but rather like
/.../include.

-- Hisham

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to