diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/lua |
Initial import
Diffstat (limited to 'package/lua')
-rw-r--r-- | package/lua/Config.in | 111 | ||||
-rw-r--r-- | package/lua/Makefile | 62 | ||||
-rw-r--r-- | package/lua/ipkg/liblua.control | 4 | ||||
-rw-r--r-- | package/lua/ipkg/lua-examples.control | 5 | ||||
-rw-r--r-- | package/lua/ipkg/lua.control | 5 | ||||
-rw-r--r-- | package/lua/ipkg/luac.control | 5 | ||||
-rw-r--r-- | package/lua/patches/lua-5.0.2-config.patch | 31 | ||||
-rw-r--r-- | package/lua/patches/lua-5.0.2-soname.patch | 14 |
8 files changed, 237 insertions, 0 deletions
diff --git a/package/lua/Config.in b/package/lua/Config.in new file mode 100644 index 000000000..1fbff9ebe --- /dev/null +++ b/package/lua/Config.in @@ -0,0 +1,111 @@ +#menu "lua............................... LUA programming language" + +config ADK_COMPILE_LUA + tristate + default n + depends ADK_PACKAGE_LIBLUA + +config ADK_PACKAGE_LIBLUA + prompt "liblua............................ LUA programming language shared libraries" + tristate + select ADK_COMPILE_LUA + help + Lua is a powerful light-weight programming language designed for extending + applications. Lua is also frequently used as a general-purpose, stand-alone + language. Lua is free software. + + Lua combines simple procedural syntax with powerful data description + constructs based on associative arrays and extensible semantics. Lua is + dynamically typed, interpreted from bytecodes, and has automatic memory + management with garbage collection, making it ideal for configuration, + scripting, and rapid prototyping. + + Lua is implemented as a small library of C functions, written in ANSI C, and + compiles unmodified in all known platforms. The implementation goals are + simplicity, efficiency, portability, and low embedding cost. The result is a + fast language engine with small footprint, making it ideal in embedded systems + too. + + http://www.lua.org/ + + This package contains the LUA shared libraries, needed by other programs. + +config ADK_PACKAGE_LUA + prompt "lua............................... LUA programming language interpreter" + tristate + default n + select ADK_PACKAGE_LIBLUA + help + Lua is a powerful light-weight programming language designed for extending + applications. Lua is also frequently used as a general-purpose, stand-alone + language. Lua is free software. + + Lua combines simple procedural syntax with powerful data description + constructs based on associative arrays and extensible semantics. Lua is + dynamically typed, interpreted from bytecodes, and has automatic memory + management with garbage collection, making it ideal for configuration, + scripting, and rapid prototyping. + + Lua is implemented as a small library of C functions, written in ANSI C, and + compiles unmodified in all known platforms. The implementation goals are + simplicity, efficiency, portability, and low embedding cost. The result is a + fast language engine with small footprint, making it ideal in embedded systems + too. + + http://www.lua.org/ + + This package contains the LUA language interpreter. + +config ADK_PACKAGE_LUAC + prompt "luac.............................. LUA programming language compiler" + tristate + default n + select ADK_PACKAGE_LIBLUA + help + Lua is a powerful light-weight programming language designed for extending + applications. Lua is also frequently used as a general-purpose, stand-alone + language. Lua is free software. + + Lua combines simple procedural syntax with powerful data description + constructs based on associative arrays and extensible semantics. Lua is + dynamically typed, interpreted from bytecodes, and has automatic memory + management with garbage collection, making it ideal for configuration, + scripting, and rapid prototyping. + + Lua is implemented as a small library of C functions, written in ANSI C, and + compiles unmodified in all known platforms. The implementation goals are + simplicity, efficiency, portability, and low embedding cost. The result is a + fast language engine with small footprint, making it ideal in embedded systems + too. + + http://www.lua.org/ + + This package contains the LUA language compiler. + +config ADK_PACKAGE_LUA_EXAMPLES + prompt "lua-examples...................... LUA programming language examples" + tristate + default n + select ADK_PACKAGE_LUA + help + Lua is a powerful light-weight programming language designed for extending + applications. Lua is also frequently used as a general-purpose, stand-alone + language. Lua is free software. + + Lua combines simple procedural syntax with powerful data description + constructs based on associative arrays and extensible semantics. Lua is + dynamically typed, interpreted from bytecodes, and has automatic memory + management with garbage collection, making it ideal for configuration, + scripting, and rapid prototyping. + + Lua is implemented as a small library of C functions, written in ANSI C, and + compiles unmodified in all known platforms. The implementation goals are + simplicity, efficiency, portability, and low embedding cost. The result is a + fast language engine with small footprint, making it ideal in embedded systems + too. + + http://www.lua.org/ + + This package contains LUA language examples. + +#endmenu diff --git a/package/lua/Makefile b/package/lua/Makefile new file mode 100644 index 000000000..45973bcab --- /dev/null +++ b/package/lua/Makefile @@ -0,0 +1,62 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= lua +PKG_VERSION:= 5.0.2 +PKG_RELEASE:= 1 +PKG_MD5SUM:= dea74646b7e5c621fef7174df83c34b1 +MASTER_SITES:= http://www.lua.org/ftp/ \ + http://ftp.gwdg.de/pub/languages/lua/ \ + http://mirrors.dotsrc.org/lua/ \ + http://www.tecgraf.puc-rio.br/lua/ftp/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBLUA,liblua,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +$(eval $(call PKG_template,LUA,lua,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +$(eval $(call PKG_template,LUAC,luac,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +$(eval $(call PKG_template,LUA_EXAMPLES,lua-examples,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +do-build: + ${MAKE} -C ${WRKBUILD} \ + CC="${TARGET_CC}" \ + LD="${TARGET_CROSS}ld" \ + AR="${TARGET_CROSS}ar rcu" \ + RANLIB="${TARGET_CROSS}ranlib" \ + INSTALL_ROOT=/usr \ + MYCFLAGS="${TCFLAGS} ${TCPPFLAGS}" \ + MYLDFLAGS="${TLDFLAGS}" \ + all so + # remove statically linked binaries, so that they will get linked against shlib this time + rm -f ${WRKBUILD}/bin/lua{,c} + ${MAKE} -C ${WRKBUILD} \ + CC="${TARGET_CC}" \ + LD="${TARGET_CROSS}ld" \ + AR="${TARGET_CROSS}ar rcu" \ + RANLIB="${TARGET_CROSS}ranlib" \ + INSTALL_ROOT=/usr \ + MYCFLAGS="${TCFLAGS} ${TCPPFLAGS}" \ + MYLDFLAGS="${TLDFLAGS}" \ + all + rm -rf ${WRKINST} + mkdir -p ${WRKINST} + ${MAKE} -C ${WRKBUILD} \ + INSTALL_ROOT="${WRKINST}/usr" \ + install soinstall + +do-install: + ${INSTALL_DIR} ${IDIR_LIBLUA}/usr/lib + ${CP} ${WRKINST}/usr/lib/liblua{,lib}.so.* ${IDIR_LIBLUA}/usr/lib/ + ${INSTALL_DIR} ${IDIR_LUA}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/lua ${IDIR_LUA}/usr/bin/ + ${INSTALL_DIR} ${IDIR_LUAC}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/luac ${IDIR_LUAC}/usr/bin/ + ${INSTALL_DIR} ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples + ${INSTALL_DATA} ${WRKBUILD}/test/*.lua \ + ${IDIR_LUA_EXAMPLES}/usr/share/lua/examples/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/lua/ipkg/liblua.control b/package/lua/ipkg/liblua.control new file mode 100644 index 000000000..502523a53 --- /dev/null +++ b/package/lua/ipkg/liblua.control @@ -0,0 +1,4 @@ +Package: liblua +Priority: optional +Section: libs +Description: LUA programming language shared libraries diff --git a/package/lua/ipkg/lua-examples.control b/package/lua/ipkg/lua-examples.control new file mode 100644 index 000000000..fc0e46e07 --- /dev/null +++ b/package/lua/ipkg/lua-examples.control @@ -0,0 +1,5 @@ +Package: lua-examples +Priority: optional +Section: devel +Description: LUA programming language examples +Depends: lua diff --git a/package/lua/ipkg/lua.control b/package/lua/ipkg/lua.control new file mode 100644 index 000000000..a938103ee --- /dev/null +++ b/package/lua/ipkg/lua.control @@ -0,0 +1,5 @@ +Package: lua +Priority: optional +Section: admin +Description: LUA programming language interpreter +Depends: liblua diff --git a/package/lua/ipkg/luac.control b/package/lua/ipkg/luac.control new file mode 100644 index 000000000..f379f9e45 --- /dev/null +++ b/package/lua/ipkg/luac.control @@ -0,0 +1,5 @@ +Package: luac +Priority: optional +Section: devel +Description: LUA programming language compiler +Depends: liblua diff --git a/package/lua/patches/lua-5.0.2-config.patch b/package/lua/patches/lua-5.0.2-config.patch new file mode 100644 index 000000000..fa5b0e765 --- /dev/null +++ b/package/lua/patches/lua-5.0.2-config.patch @@ -0,0 +1,31 @@ +diff -ruN lua-5.0.2-orig/config lua-5.0.2-1/config +--- lua-5.0.2-orig/config 2003-04-11 16:00:41.000000000 +0200 ++++ lua-5.0.2-1/config 2005-05-25 11:23:35.000000000 +0200 +@@ -25,15 +25,15 @@ + # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others), + # uncomment the next two lines. + # +-#LOADLIB= -DUSE_DLOPEN=1 +-#DLLIB= -ldl ++LOADLIB= -DUSE_DLOPEN=1 ++DLLIB= -ldl + # + # In Linux with gcc, you should also uncomment the next definition for + # MYLDFLAGS, which passes -E (= -export-dynamic) to the linker. This option + # allows dynamic libraries to link back to the `lua' program, so that they do + # not need the Lua libraries. (Other systems may have an equivalent facility.) + # +-#MYLDFLAGS= -Wl,-E ++MYLDFLAGS= -Wl,-E + # + # On Windows systems. support for dynamic loading is enabled by default. + # To disable this support, uncomment the next line. +@@ -142,7 +142,7 @@ + + # This should work in all Unix systems, but you may want to add options. + # +-STRIP= strip ++STRIP= /bin/true + + # ------------------------------------------------------------------ install + diff --git a/package/lua/patches/lua-5.0.2-soname.patch b/package/lua/patches/lua-5.0.2-soname.patch new file mode 100644 index 000000000..3364ff6ad --- /dev/null +++ b/package/lua/patches/lua-5.0.2-soname.patch @@ -0,0 +1,14 @@ +diff -ruN lua-5.0.2-orig/Makefile lua-5.0.2-1/Makefile +--- lua-5.0.2-orig/Makefile 2004-03-12 02:50:55.000000000 +0100 ++++ lua-5.0.2-1/Makefile 2005-05-25 11:41:44.000000000 +0200 +@@ -38,8 +38,8 @@ + + # shared libraries (for Linux) + so: +- ld -o lib/liblua.so.$V -shared src/*.o +- ld -o lib/liblualib.so.$V -shared src/lib/*.o ++ $(LD) -o lib/liblua.so.$V -shared -soname="liblua.so.$V" src/*.o ++ $(LD) -o lib/liblualib.so.$V -shared -soname="liblualib.so.$V" src/lib/*.o + cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so + + # binaries using shared libraries |