1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-28 00:39:30 +00:00

Moved lzlib to the libs directory (cleaner)

This commit is contained in:
Reuh 2015-10-04 12:08:25 +02:00
parent 406e17d321
commit 4aad32d5ab
23 changed files with 2593 additions and 991 deletions

View file

@ -0,0 +1,23 @@
Installation
------------
luarocks build lzlib-git-1.rockspec
Troubleshooting
---------------
* Error: Could not find expected file libz.a, or libz.so, or libz.so.*
for ZLIB -- you may have to install ZLIB in your system and/or pass
ZLIB_DIR or ZLIB_LIBDIR to the luarocks command. Example: luarocks
install lzlib ZLIB_DIR=/usr/local
lzlib has a dependency on zlib, and currently (on Linux) LuaRocks
checks .so file existence by searching for the file in two hardcoded
paths, /usr/lib and /usr/local/lib. (instead of reading
/etc/ld.so.conf)
Try to locate libz.so, libz.a or libz.dll and re-run the command
with ZLIB_LIBDIR=/path/to/libz.so. In my case on Ubuntu 12.04 :
luarocks build --local lzlib-git-1.rockspec ZLIB_LIBDIR=/lib/x86_64-linux-gnu/

View file

@ -0,0 +1,37 @@
package="lzlib"
version="git-1"
source = {
url = "git://github.com/LuaDist/lzlib.git",
branch = "master",
}
description = {
summary = "Lua bindings to the ZLib compression library",
detailed = [[
This package provides a library to access zlib library functions
and also to read/write gzip files using an interface similar
to the base io package.
]],
homepage = "http://luaforge.net/projects/lzlib/",
license = "MIT/X11"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
ZLIB = {
header = "zlib.h",
library = "z",
}
}
build = {
type = "builtin",
modules = {
zlib = {
sources = "lzlib.c",
libdirs = "$(ZLIB_LIBDIR)",
incdirs = "$(ZLIB_INCDIR)",
libraries = "z",
},
gzip = "gzip.lua",
}
}