File: lua-zlib-scm-0.rockspec

package info (click to toggle)
lua-zlib 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 204 kB
  • sloc: ansic: 905; makefile: 44
file content (55 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package = "lua-zlib"
version = "scm-0"
source = {
   url = "git+https://github.com/brimworks/lua-zlib.git",
   branch = "master",
}
description = {
   summary = "Simple streaming interface to zlib for Lua.",
   detailed = [[
      Simple streaming interface to zlib for Lua.
      Consists of two functions: inflate and deflate.
      Both functions return "stream functions" (takes a buffer of input and returns a buffer of output).
      This project is hosted on github.
   ]],
   homepage = "https://github.com/brimworks/lua-zlib",
   license = "MIT"
}
dependencies = {
   "lua >= 5.1, <= 5.4"
}
external_dependencies = {
    ZLIB = {
       header = "zlib.h"
    }
}

build = {
   type = "builtin",
   modules = {
      zlib = {
         sources = { "lua_zlib.c" },
         libraries = { "z" },
         defines = { "LZLIB_COMPAT" },
         incdirs = { "$(ZLIB_INCDIR)" },
         libdirs = { "$(ZLIB_LIBDIR)" }
      }
   },
   platforms = {
      windows = {
         modules = {
            zlib = {
               libraries = { "zlib" }
            }
         }
      },
      mingw = {
         modules = {
            zlib = {
               libraries = { "zlib1" },
               libdirs = { "$(ZLIB_INCDIR)/../bin" }
            }
         }
      }
   }
}