]>
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 | 6 | name = lua |
9ddd3984 MT |
7 | major_version = 5.3 |
8 | version = %{major_version}.5 | |
9 | release = 1 | |
1e2fe399 | 10 | |
802ea3af MT |
11 | groups = Development/Languages |
12 | url = http://www.lua.org/ | |
13 | license = MIT | |
14 | summary = Powerful light-weight programming language. | |
1e2fe399 | 15 | |
802ea3af | 16 | description |
1e2fe399 MT |
17 | Lua is a powerful light-weight programming language designed for \ |
18 | extending applications. Lua is also frequently used as a \ | |
19 | general-purpose, stand-alone language. Lua is free software. \ | |
20 | Lua combines simple procedural syntax with powerful data description \ | |
21 | constructs based on associative arrays and extensible semantics. Lua \ | |
22 | is dynamically typed, interpreted from bytecodes, and has automatic \ | |
23 | memory management with garbage collection, making it ideal for \ | |
24 | configuration, scripting, and rapid prototyping. | |
802ea3af | 25 | end |
1e2fe399 | 26 | |
9ddd3984 | 27 | source_dl = http://www.lua.org/ftp/ |
1e2fe399 | 28 | |
802ea3af MT |
29 | build |
30 | requires | |
802ea3af MT |
31 | readline-devel |
32 | end | |
4a3264ac | 33 | |
802ea3af | 34 | prepare_cmds |
9ddd3984 MT |
35 | # Lua 5.3.4 has wrong release version in its Makefile |
36 | sed "s/^R= \$V.4/R= \$V.5/" -i Makefile | |
802ea3af | 37 | end |
135f5412 | 38 | |
9ddd3984 MT |
39 | make_build_targets += \ |
40 | MYCFLAGS="%{CFLAGS} -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" \ | |
41 | MYLDFLAGS="%{LDFLAGS}" \ | |
42 | linux | |
1e2fe399 | 43 | |
9ddd3984 MT |
44 | test |
45 | make test | |
46 | end | |
47 | ||
48 | make_install_targets += \ | |
49 | TO_LIB="liblua.so.%{version}" \ | |
50 | INSTALL_TOP="%{BUILDROOT}%{prefix}" \ | |
51 | INSTALL_LIB="%{BUILDROOT}%{libdir}" \ | |
52 | INSTALL_MAN="%{BUILDROOT}%{mandir}/man1" | |
53 | ||
54 | install_cmds | |
55 | # Install library links | |
56 | ln -svf liblua.so.%{version} %{BUILDROOT}%{libdir}/liblua.so.%{major_version} | |
57 | ln -svf liblua.so.%{major_version} %{BUILDROOT}%{libdir}/liblua.so | |
1e2fe399 | 58 | |
9ddd3984 MT |
59 | # Install pkgconfig file |
60 | mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig | |
61 | sed "s/%VER%/%{major_version}/g;s/%REL%/%{version}/g" \ | |
62 | < %{DIR_SOURCE}/lua.pc > %{BUILDROOT}%{libdir}/pkgconfig/lua.pc | |
802ea3af MT |
63 | end |
64 | end | |
31858f63 | 65 | |
802ea3af MT |
66 | packages |
67 | package %{name} | |
1f9bc2f0 | 68 | |
802ea3af MT |
69 | package %{name}-devel |
70 | template DEVEL | |
71 | end | |
1f9bc2f0 | 72 | |
802ea3af MT |
73 | package %{name}-libs |
74 | template LIBS | |
802ea3af | 75 | end |
1f9bc2f0 MT |
76 | |
77 | package %{name}-debuginfo | |
78 | template DEBUGINFO | |
79 | end | |
802ea3af | 80 | end |