File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22* .so
33* .dll
44.deps
5+ debian_build
6+ * .deb
57
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ Then you can install the module on your system by using:
1919
2020> make install
2121
22+ or, as an alternative, you can build a debian package using
23+
24+ > make debian
25+
26+ The Lua's package will be named "graph" and can be called from luajit using
27+
28+ > require("graph")
29+
2230Windows Installation Instructions
2331---------------------------------
2432
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ endif
116116LUA_PATH = $(DEST_PREFIX ) /share/lua/5.1
117117LUA_DLLPATH = $(DEST_PREFIX ) /lib/lua/5.1
118118SYSTEM_LIBPATH = $(DEST_PREFIX ) /lib
119+ DEBIAN = debian_build/$(PREFIX )
119120
120121ifeq ($(HOST_SYS ) ,Windows)
121122 PLATFORM_NATWIN_SRC_FILES = agg_platform_support_win32.cpp agg_win32_bmp.cpp
@@ -176,6 +177,17 @@ install: $(TARGETS)
176177 ln -s $(LUA_DLLPATH ) /graphcore.so $(SYSTEM_LIBPATH ) /libgraphcore.so
177178 $(CP_REL ) $(GRAPH_LUA_SRC ) $(LUA_PATH )
178179
180+ debian : $(TARGETS )
181+ rm -fr debian_build
182+ rm lua-graph-toolkit* .deb
183+ mkdir -p $(DEBIAN ) /share/lua/5.1
184+ mkdir -p $(DEBIAN ) /lib/lua/5.1
185+ cp $(LIBGRAPH_SO ) $(DEBIAN ) /lib/lua/5.1/graphcore.so
186+ cp $(LIBNATWIN_SO ) $(DEBIAN ) /lib/lua/5.1/natwin.so
187+ ln -s lua/5.1/graphcore.so $(DEBIAN ) /lib/libgraphcore.so
188+ $(CP_REL ) $(GRAPH_LUA_SRC ) $(DEBIAN ) /share/lua/5.1
189+ fakeroot bash debian/build.sh $(VERSION )
190+
179191clean :
180192 $(HOST_RM ) * .o * .so * .dll $(TARGETS )
181193
@@ -197,6 +209,6 @@ clean:
197209 >> .deps/$(*F).P; \
198210 rm .deps/$(*F).pp
199211
200- .PHONY : clean all
212+ .PHONY : debian clean all
201213
202214-include $(DEP_FILES )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ LGT_ISIZE_A=(` du -s debian_build` )
4+ LGT_ISIZE=${LGT_ISIZE_A[0]}
5+
6+ VERSION=$1
7+
8+ mkdir debian_build/DEBIAN
9+
10+ cat debian/control | sed " s/LGT_VERSION/$VERSION /;s/LGT_INSTALLED_SIZE/$LGT_ISIZE /" - > debian_build/DEBIAN/control
11+
12+ chown root.root -R debian_build
13+ chmod a-w -R debian_build
14+ chmod 0755 debian_build/DEBIAN
15+
16+ dpkg-deb -b debian_build lua-graph-toolkit_$VERSION -1_i386.deb
Original file line number Diff line number Diff line change 1+ Package: lua-graph-toolkit
2+ Maintainer: Francesco Abbate <francesc.bbt@gmail.com>
3+ Version: LGT_VERSION
4+ Architecture: i386
5+ Installed-Size: LGT_INSTALLED_SIZE
6+ Depends: libc6 (>= 2.7-1), libx11-6, libluajit-5.1-2
7+ Section: x11
8+ Priority: optional
9+ Description: Lua Graphics Toolkit
10+ The Lua Graphics Toolkit is a LuaJIT2 module to create graphical
11+ windows for plots or animations.
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ DISABLE_SUBPIXEL_LCD = no
66
77DEBUG = no
88
9+ VERSION = 1.0
10+
911PREFIX = /usr
1012DEST_DIR =
You can’t perform that action at this time.
0 commit comments