--[[ This is the LuaRocks `rockspec' for the Lua/APR binding. Author: Peter Odding Last Change: September 26, 2010 Homepage: http://peterodding.com/code/lua/apr/ License: MIT --]] package = 'Lua-APR' version = 'scm-1' source = { url = 'git://github.com/xolox/lua-apr.git', branch = 'master' } description = { summary = 'Apache Portable Runtime binding for Lua', detailed = [[ Lua/APR is a binding to the Apache Portable Runtime (APR) library. APR powers software such as the Apache webserver and Subversion and Lua/APR makes the APR operating system interfaces available to Lua. ]], homepage = 'http://peterodding.com/code/lua/apr/', license = 'MIT', } dependencies = { 'lua >= 5.1' } external_dependencies = { platforms = { unix = { APR = { header = 'apr-1.0/apr.h', library = 'apr-1' }, APU = { header = 'apr-1.0/apu.h', library = 'aprutil-1' }, }, macosx = { APR = { header = 'apr-1/apr.h', library = 'apr-1'}, APU = { header = 'apr-1/apu.h', library = 'aprutil-1' }, }, } } build = { type = 'make', variables = { LUA_DIR = '$(PREFIX)', LUA_LIBDIR = '$(LIBDIR)', LUA_SHAREDIR = '$(LUADIR)', CFLAGS = '$(CFLAGS) -I$(LUA_INCDIR) -I$(APR_INCDIR)/apr-1.0 -I$(APU_INCDIR)/apr-1.0', LFLAGS = '$(LFLAGS) -L$(APR_LIBDIR) -L$(APU_LIBDIR) -llua5.1 -lapr-1 -laprutil-1', }, platforms = { linux = { variables = { -- Make sure "apr_off_t" is defined correctly. CFLAGS = '$(CFLAGS) -I$(LUA_INCDIR) -I$(APR_INCDIR)/apr-1.0 -I$(APU_INCDIR)/apr-1.0 -D_GNU_SOURCE', } }, macosx = { variables = { -- Custom location for APR/APU headers on Mac OS X. -- FIXME I'm not sure whether _GNU_SOURCE needs to be defined. CFLAGS = '$(CFLAGS) -I$(LUA_INCDIR) -I$(APR_INCDIR)/apr-1 -I$(APU_INCDIR)/apr-1 -D_GNU_SOURCE', } } } } -- vim: ft=lua ts=2 sw=2 et