Hmmm ok. But then, from the wiki I gather that LUA_LIBDIR should actually be the
path where I find the lua libs, like liblua.a? Like LUA_INCDIR and LUA_BINDIR
are the paths where I find the relevant includes and binaries. Plus, LUA_LIBDIR
does not give me the complete path I need, which should be
/usr/local/lib/lua/5.2, where LUA_LIBDIR is /usr/local/lib. Strangely enough,
this is with both my self built luarocks and also with the one that is provided
by ubuntu.

Then there's the other paths, PREFIX, LIBDIR, LUADIR and CONFIR. These seem to
be more suited for installation, apart from the fact that they all reside inside
the rock dir. So again, the path where my lib should be installed to is not
here.

I find this rather confusing. Plus, luarocks remove still does not remove my
installed so file.

Do you know of an example for a rock that uses the make backend, is created
according to the recommendations and also works properly with luarocks remove?

Gunnar


> Hisham <[email protected]> hat am 27. August 2014 um 22:39 geschrieben:
>
>
> On 27 August 2014 10:22, Gunnar Zötl <[email protected]> wrote:
> > is LUA_LIBDIR set by luarocks? Because if not, SO_INST_ROOT is exactly the
> > same.
> > I can change the name, but does that help with my original problem?
>
> Yes, but it needs to be forwarded to the Makefile. Try adding
> install_variables to the rockspec like this:
>
> build = {
>    type = "make",
>    install_variables = { SO_INST_ROOT="$(LUA_LIBDIR)" },
>    copy_directories = { "doc", "samples" },
> }
>
> -- Hisham
>
> >> Ignacio Burgueño <[email protected]> hat am 27. August 2014 um 15:01
> >> geschrieben:
> >>
> >>
> >> Hi Gunnar. Try this in your install rule.
> >>
> >> install:
> >> mkdir -p $(LUA_LIBDIR)
> >> mv $(TARGET) $(LUA_LIBDIR)
> >>
> >>
> >> That way, I can install lpty to different rock trees without one install
> >> stepping over another.
> >>
> >> There are some tips here:
> >> http://www.luarocks.org/en/Recommended_practices_for_Makefiles
> >
> > ------------------------------------------------------------------------------
> > Slashdot TV.
> > Video for Nerds.  Stuff that matters.
> > http://tv.slashdot.org/
> > _______________________________________________
> > Luarocks-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/luarocks-developers

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to