]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/core/lua/lua.nm
xz: Cleanup makefile.
[people/arne_f/ipfire-3.x.git] / pkgs / core / lua / lua.nm
CommitLineData
1e2fe399
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = lua
28PKG_VER = 5.1.4
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Development/Languages
33PKG_URL = http://www.lua.org/
34PKG_LICENSE = MIT
35PKG_SUMMARY = Powerful light-weight programming language.
36
37PKG_DEPS += ncurses readline
38
39define PKG_DESCRIPTION
40 Lua is a powerful light-weight programming language designed for \
41 extending applications. Lua is also frequently used as a \
42 general-purpose, stand-alone language. Lua is free software. \
43 Lua combines simple procedural syntax with powerful data description \
44 constructs based on associative arrays and extensible semantics. Lua \
45 is dynamically typed, interpreted from bytecodes, and has automatic \
46 memory management with garbage collection, making it ideal for \
47 configuration, scripting, and rapid prototyping.
48endef
49
50PKG_TARBALL = $(THISAPP).tar.gz
51
52define STAGE_PREPARE_CMDS
53 cd $(DIR_APP) && chmod u+x autogen.sh config.guess config.sub configure \
54 depcomp install-sh missing
55endef
56
57define STAGE_BUILD
58 cd $(DIR_APP) && \
59 ./configure \
60 --prefix=/usr \
61 --mandir=/usr/share/man \
62 --with-readline
63
64 cd $(DIR_APP) && sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
65 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' -i libtool
66 # hack so that only /usr/bin/lua gets linked with readline as it is the
67 # only one which needs this and otherwise we get License troubles
68 cd $(DIR_APP) && make $(PARALLELISMFLAGS) LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
69 # also remove readline from lua.pc
70 cd $(DIR_APP) && sed -i 's/-lreadline -lncurses //g' etc/lua.pc
71endef