]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/lua/lua.nm
lua: Move liblua-5.1.so to libs package.
[ipfire-3.x.git] / pkgs / lua / lua.nm
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 = 2
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Development/Languages
33 PKG_URL = http://www.lua.org/
34 PKG_LICENSE = MIT
35 PKG_SUMMARY = Powerful light-weight programming language.
36
37 PKG_BUILD_DEPS+= autoconf automake libtool ncurses-devel readline-devel
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 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
53
54 PKG_FILES-$(PKG_NAME)-libs = \
55 /usr/lib/liblua-5.1.so
56
57 define STAGE_PREPARE_CMDS
58 cd $(DIR_APP) && chmod u+x autogen.sh config.guess config.sub configure \
59 depcomp install-sh missing
60 cd $(DIR_APP) && sh autogen.sh
61 endef
62
63 CONFIGURE_OPTIONS += \
64 --mandir=/usr/share/man \
65 --with-readline
66
67 # hack so that only /usr/bin/lua gets linked with readline as it is the
68 # only one which needs this and otherwise we get License troubles
69 STAGE_BUILD_TARGETS = LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
70
71 # Remove readline from lua.pc
72 define STAGE_BUILD_CMDS
73 cd $(DIR_APP) && sed -i 's/-lreadline -lncurses //g' etc/lua.pc
74 endef