]>
Commit | Line | Data |
---|---|---|
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 = 3 | |
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 | perl-Carp | |
31 | autoconf | |
32 | automake | |
33 | libtool | |
34 | ncurses-devel | |
35 | readline-devel | |
36 | end | |
37 | ||
38 | prepare_cmds | |
39 | chmod u+x autogen.sh config.guess config.sub configure \ | |
40 | depcomp install-sh missing | |
41 | sh autogen.sh | |
42 | end | |
43 | ||
44 | configure_options += \ | |
45 | --mandir=/usr/share/man \ | |
46 | --with-readline | |
47 | ||
48 | # hack so that only /usr/bin/lua gets linked with readline as it is the | |
49 | # only one which needs this and otherwise we get License troubles | |
50 | make_build_targets = LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl" | |
51 | ||
52 | # Remove readline from lua.pc | |
53 | build_cmds | |
54 | sed -i 's/-lreadline -lncurses //g' etc/lua.pc | |
55 | end | |
56 | end | |
57 | ||
58 | packages | |
59 | package %{name} | |
60 | end | |
61 | ||
62 | package %{name}-devel | |
63 | template DEVEL | |
64 | end | |
65 | ||
66 | package %{name}-libs | |
67 | template LIBS | |
68 | ||
69 | files += /usr/lib*/liblua-5.1.so | |
70 | end | |
71 | ||
72 | package %{name}-debuginfo | |
73 | template DEBUGINFO | |
74 | end | |
75 | end |