ADG Lua 

ADG Lua Commit Details

Date:2013-04-18 10:31:35 (6 years 3 months ago)
Author:Nicola Fontana
Branch:master
Commit:674c63e5bba3feac9f348bd1553781c30621d4c8
Parents: a4dd12cd3462eae34ff45a7ab4e472539f389b08
Message:rockspec: first implementation

Changes:
Arockspec.in (full)
M.gitignore (1 diff)
MMakefile.am (1 diff)
Mconfigure.ac (3 diffs)

File differences

.gitignore
66
77
88
9
910
1011
/config.status
/configure
/INSTALL
/rockspec
Makefile
Makefile.in
Makefile.am
2424
2525
2626
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
echo ' *WARN A git checkout is required to generate $@' ; \
touch $@ ; \
fi
# rockspec handling, based on instruction by Reuben Thomas found at
# http://luarocks.org/en/Creating_LuaRocks_with_GNU_autotools
ROCKSPEC = $(PACKAGE_TARNAME)-$(VERSION)-1.rockspec
rock: $(ROCKSPEC)
$(ROCKSPEC): rockspec dist dist
$(AM_V_GEN)set -- `$(MD5SUM) $(distdir).tar.bz2` ; \
sed -e "s/@MD5@/$$1/" < $< > $@
EXTRA_DIST+=rockspec.in
DISTCLEANFILES=rockspec
.PHONY: rock
configure.ac
88
99
1010
11
11
1212
1313
1414
......
2828
2929
3030
31
3132
3233
3334
......
4445
4546
4647
48
49
50
4751
4852
4953
5054
55
5156
5257
5358
dnl Depends on the same autoconf version of the ADG project
AC_PREREQ([2.62])
AC_INIT([adg-lua],adg_lua_version,[http://dev.entidi.com/p/adg-lua/],[adg-lua],[http://adg.entidi.com/])
AC_INIT([Adg Lua],adg_lua_version,[http://dev.entidi.com/p/adg-lua/],[adg-lua],[http://adg.entidi.com/])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build])
# Check for programs
AX_PROG_LUA(adg_prereq)
AC_PATH_PROG([MD5SUM],[md5sum],[/usr/bin/md5sum])
PKG_PROG_PKG_CONFIG
[AC_MSG_WARN([adg-demo.ui missing in adgdatadir ($with_adgdatadir)])])])
AC_SUBST([ADGDATADIR],${with_adgdatadir})
dnl Actually there is no sane way to get the LGI version,
dnl so use an hardcoded value instead (needed by rockspec.in).
AC_SUBST([LGI_VERSION],[0.7.1])
# Generation
AC_CONFIG_FILES([adg-demo.lua
rockspec
Makefile])
AC_OUTPUT
rockspec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package = '@PACKAGE@'
version = '@VERSION@-1'
source = {
url = 'http://sourceforge.net/projects/adg/files/@PACKAGE_TARNAME@/@PACKAGE_TARNAME@-@VERSION@.tar.bz2',
md5 = '@MD5@',
dir = '@PACKAGE_TARNAME@-@VERSION@'
}
description = {
summary = 'Demo on how to use the ADG canvas with Lua',
detailed = [[
Demo programs and examples on how to use the ADG canvas from
Lua throught LGI (Lua bindings generated dynamically). It is
*not* needed in order to use the ADG canvas from Lua: ADG and
LGI are just enough for that purpose.
]],
homepage = '@PACKAGE_URL@',
license = 'LGPL2.1+'
}
dependencies = {
'lua >= @LUA_VERSION@',
'lgi >= @LGI_VERSION@',
}
build = {
type = 'command',
build_command = [[
LUA=$(LUA) \\
CPPFLAGS=-I$(LUA_INCDIR) \\
./configure \\
--prefix=$(PREFIX) \\
--libdir=$(LIBDIR) \\
--datadir=$(LUADIR) && \\
make clean && \\
make
]],
install_command = [[
make install
]]
}

Archive Download the corresponding diff file

Branches

Tags