]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - lua/lua.nm
Move all packages to root.
[people/amarx/ipfire-3.x.git] / lua / lua.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = lua
7 version = 5.1.4
8 release = 2
9
10 groups = Development/Languages
11 url = http://www.lua.org/
12 license = MIT
13 summary = Powerful light-weight programming language.
14
15 description
16 Lua is a powerful light-weight programming language designed for \
17 extending applications. Lua is also frequently used as a \
18 general-purpose, stand-alone language. Lua is free software. \
19 Lua combines simple procedural syntax with powerful data description \
20 constructs based on associative arrays and extensible semantics. Lua \
21 is dynamically typed, interpreted from bytecodes, and has automatic \
22 memory management with garbage collection, making it ideal for \
23 configuration, scripting, and rapid prototyping.
24 end
25
26 source_dl =
27
28 build
29 requires
30 autoconf
31 automake
32 libtool
33 ncurses-devel
34 readline-devel
35 end
36
37 prepare_cmds
38 chmod u+x autogen.sh config.guess config.sub configure \
39 depcomp install-sh missing
40 sh autogen.sh
41 end
42
43 configure_options += \
44 --mandir=/usr/share/man \
45 --with-readline
46
47 # hack so that only /usr/bin/lua gets linked with readline as it is the
48 # only one which needs this and otherwise we get License troubles
49 make_build_targets = LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
50
51 # Remove readline from lua.pc
52 build_cmds
53 sed -i 's/-lreadline -lncurses //g' etc/lua.pc
54 end
55 end
56
57 packages
58 package %{name}
59 end
60
61 package %{name}-devel
62 template DEVEL
63 end
64
65 package %{name}-libs
66 template LIBS
67
68 files += /usr/lib/*/liblua-5.1.so
69 end
70 end