mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
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="5"
|
|
ARCHITECTURES="x86 x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
lua${secondaryArchSuffix} = $portVersion compat >= 5.1
|
|
cmd:lua${secondaryArchSuffix} = $portVersion compat >= 5.1
|
|
cmd:luac${secondaryArchSuffix} = $portVersion compat >= 5.1
|
|
lib:liblua${secondaryArchSuffix} = $portVersion compat >= 5.1
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix} >= $haikuVersion
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
cmd:make
|
|
cmd:gcc${secondaryArchSuffix}
|
|
"
|
|
|
|
PATCHES="lua-5.1.4.patchset"
|
|
|
|
BUILD()
|
|
{
|
|
make haiku
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install INSTALL_TOP="$prefix" INSTALL_MAN="$manDir/man1" \
|
|
INSTALL_INC="$includeDir" INSTALL_LMOD="$dataDir/lua/5.1" \
|
|
INSTALL_LIB="$libDir" INSTALL_BIN="$binDir"
|
|
|
|
mkdir -p $libDir/pkgconfig
|
|
cp etc/lua.pc $libDir/pkgconfig/lua.pc
|
|
|
|
ln -s $libDir/liblua.so $libDir/liblua.so.5.1
|
|
|
|
prepareInstalledDevelLib liblua
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
PROVIDES_devel="
|
|
lua${secondaryArchSuffix}_devel = $portVersion compat >= 5.1
|
|
devel:liblua$secondaryArchSuffix = $portVersion compat >= 5.1
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
lua$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
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.
|
|
"
|