Fix issues with lua-5.2.1

Created a devel portion to the recipe
Fixed lookup of directories for lua root/modules
Fixed soname not being set in the lib
This commit is contained in:
Chris Roberts
2013-10-22 02:49:53 -06:00
parent 7d72477e7b
commit 6eea71fd10
3 changed files with 62 additions and 112 deletions

View File

@@ -21,18 +21,29 @@ BUILD_PREREQUIRES="
cmd:gcc
"
PROVIDES_devel="
lua_devel = $portVersion
devel:liblua = $portVersion compat = 5.2
"
REQUIRES_devel="
lua == $portVersion
"
PATCHES="lua-$portVersion.patchset"
BUILD()
{
make haiku
make haiku MYCFLAGS="-DLUA_ROOT='\"$prefix/\"' -DLUA_LDIR='\"$dataDir/lua/5.2/\"'"
}
INSTALL()
{
make install INSTALL_TOP="$prefix" INSTALL_MAN="$manDir" \
INSTALL_INC="$includeDir" INSTALL_LMOD="$dataDir/lua/$V"
INSTALL_INC="$includeDir" INSTALL_LMOD="$dataDir/lua/5.2"
prepareInstalledDevelLib liblua
packageEntries devel $developDir
}
LICENSE="MIT"
COPYRIGHT="1994-2012, Lua.org, PUC-Rio"