]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = lua | |
28 | PKG_VER = 5.1.4 | |
29 | PKG_REL = 0 | |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = Development/Languages | |
33 | PKG_URL = http://www.lua.org/ | |
34 | PKG_LICENSE = MIT | |
35 | PKG_SUMMARY = Powerful light-weight programming language. | |
36 | ||
37 | PKG_DEPS += ncurses readline | |
38 | ||
39 | define 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. | |
48 | endef | |
49 | ||
50 | PKG_TARBALL = $(THISAPP).tar.gz | |
51 | ||
52 | define STAGE_PREPARE_CMDS | |
53 | cd $(DIR_APP) && chmod u+x autogen.sh config.guess config.sub configure \ | |
54 | depcomp install-sh missing | |
55 | endef | |
56 | ||
57 | define 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 | |
71 | endef |