]>
Commit | Line | Data |
---|---|---|
1e2fe399 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
1e2fe399 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = lua |
7 | version = 5.1.4 | |
8 | release = 2 | |
1e2fe399 | 9 | |
802ea3af MT |
10 | groups = Development/Languages |
11 | url = http://www.lua.org/ | |
12 | license = MIT | |
13 | summary = Powerful light-weight programming language. | |
1e2fe399 | 14 | |
802ea3af | 15 | description |
1e2fe399 MT |
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. | |
802ea3af | 24 | end |
1e2fe399 | 25 | |
802ea3af | 26 | source_dl = |
1e2fe399 | 27 | |
802ea3af MT |
28 | build |
29 | requires | |
30 | autoconf | |
31 | automake | |
32 | libtool | |
33 | ncurses-devel | |
34 | readline-devel | |
35 | end | |
4a3264ac | 36 | |
802ea3af MT |
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 | |
135f5412 | 42 | |
802ea3af MT |
43 | configure_options += \ |
44 | --mandir=/usr/share/man \ | |
45 | --with-readline | |
1e2fe399 | 46 | |
802ea3af MT |
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" | |
1e2fe399 | 50 | |
802ea3af MT |
51 | # Remove readline from lua.pc |
52 | build_cmds | |
53 | sed -i 's/-lreadline -lncurses //g' etc/lua.pc | |
54 | end | |
55 | end | |
31858f63 | 56 | |
802ea3af MT |
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 |