ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

commit 18c0964970236bb648744b3b857be703e3c4c4fc
parent 9b14d885556e6a9b56c56a3444eca3ce2f407146
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 14 Jun 2014 19:59:10 +0200

add lua

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
lua/checksums | 1+
lua/depsinc.mk | 11+++++++++++
lua/lua.mk | 18++++++++++++++++++
lua/mkfile | 6++++++
lua/v.mk | 1+
5 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/lua/checksums b/lua/checksums @@ -0,0 +1 @@ +7165c7c5cb5606abc6306338fac425604c2d432c9f1c6cef35d0cc353ebd4eb7e6ed7781d58fb1fedc4b9ac43f64055f57506d9b71d999278af9408c1f34f664 lua-5.2.2.tar.gz diff --git a/lua/depsinc.mk b/lua/depsinc.mk @@ -0,0 +1,11 @@ +<$lua_DEPDIR/v.mk + +lua_bindir = ${lua_DEPDIR}/lua-$v/src +lua_libdir = ${lua_DEPDIR}/lua-$v/src +lua_includedir = ${lua_DEPDIR}/lua-$v/src + +lua_CFLAGS = -I${lua_includedir} +lua_LDFLAGS = -L${lua_libdir} -llua + +DEPS_CFLAGS = $DEPS_CFLAGS ${lua_CFLAGS} +DEPS_LDFLAGS = $DEPS_LDFLAGS ${lua_LDFLAGS} diff --git a/lua/lua.mk b/lua/lua.mk @@ -0,0 +1,18 @@ +TARG = lua +DEPS = libedit + +INSTALL_BIN = \ + src/lua \ + src/luac +INSTALL_MAN1 = `{ ls doc/*.1 } + +<$mkbuild/mk.common-noinst + +lua:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + # + make -j$nprocs \ + AR="${AR} rcu" CC="${CC}" RANLIB="${RANLIB}" \ + INSTALL_TOP="`pwd`/lib" \ + MYCFLAGS="-fPIC $CFLAGS" MYLDFLAGS="$LDFLAGS" generic diff --git a/lua/mkfile b/lua/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = lua-$v +url = http://www.lua.org/ftp/lua-$v.tar.gz +mkfile = ../lua.mk diff --git a/lua/v.mk b/lua/v.mk @@ -0,0 +1 @@ +v = 5.2.2