|
|
|
@ -127,3 +127,18 @@ fi
|
|
|
|
|
if [ "$SDECFG_PKG_NGINX_ADDON_MOD_NDK" == 1 ] ; then |
|
|
|
|
hook_add prepatch 5 "pkg_nginx_add_module ngx_devel_kit" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_NGINX_ADDON_MOD_LUA" == 1 ] ; then |
|
|
|
|
# prefer to use luajit if available |
|
|
|
|
if pkginstalled -f luajit; then |
|
|
|
|
pkgprefix -t luajit |
|
|
|
|
var_append configprefix ' ' "LUAJIT_LIB=$( pkgprefix -r libdir luajit )" |
|
|
|
|
var_append configprefix ' ' "LUAJIT_INC=$( pkgprefix -r includedir luajit )" |
|
|
|
|
else |
|
|
|
|
pkgprefix -t lua |
|
|
|
|
var_append configprefix ' ' "LUA_LIB=$( pkgprefix -r libdir lua )" |
|
|
|
|
var_append configprefix ' ' "LUA_INC=$( pkgprefix -r includedir lua )" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
hook_add prepatch 5 "pkg_nginx_add_module lua-nginx-module" |
|
|
|
|
fi |
|
|
|
|