mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Recipe for Lua.
* It's failing to do prepareInstalledDevelLib, I don't know why.
This commit is contained in:
@@ -1,23 +1,51 @@
|
||||
DESCRIPTION="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
SUMMARY="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
SRC_URI="http://www.lua.org/ftp/lua-5.1.4.tar.gz"
|
||||
CHECKSUM_MD5="d0870f2de55d59c1c8419f36e8fac150"
|
||||
REVISION="3"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="pkgconfig >= 0.25"
|
||||
ARCHITECTURES="!x86 !x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
lua = $portVersion compat = 5.1
|
||||
cmd:lua = $portVersion compat = 5.1
|
||||
cmd:luac = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
cmd:pkg_config
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
PATCHES="lua-5.1.4.patchset"
|
||||
BUILD()
|
||||
{
|
||||
cd lua-5.1.4
|
||||
make haiku
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd lua-5.1.4
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man"
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig
|
||||
cp etc/lua.pc ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig/lua.pc
|
||||
make install INSTALL_TOP="$prefix" INSTALL_MAN="$manDir" \
|
||||
INSTALL_INC="$includeDir" INSTALL_LMOD="$dataDir/lua/$V"
|
||||
mkdir -p $libDir/pkgconfig
|
||||
cp etc/lua.pc $libDir/pkgconfig/lua.pc
|
||||
|
||||
prepareInstalledDevelLib liblua
|
||||
fixPkgconfig
|
||||
}
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1994-2009, Lua.org, PUC-Rio"
|
||||
DESCRIPTION="
|
||||
Lua combines simple procedural syntax with powerful data description
|
||||
constructs based on associative arrays and extensible semantics. Lua is
|
||||
dynamically typed, runs by interpreting bytecode for a register-based
|
||||
virtual machine, and has automatic memory management with incremental
|
||||
garbage collection, making it ideal for configuration, scripting, and rapid
|
||||
prototyping.
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user