diff options
author | alepulver <alepulver@FreeBSD.org> | 2007-04-10 01:23:20 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2007-04-10 01:23:20 +0800 |
commit | bdcfd0e12b97431b78133ae74693cccb100c8968 (patch) | |
tree | 1f1d881a407c72d62d3b84cc20f5c211cf447d74 /Mk | |
parent | 27fbfe5a3627b98bbdb13aeed1c8119fa0ab3329 (diff) | |
download | freebsd-ports-gnome-bdcfd0e12b97431b78133ae74693cccb100c8968.tar.gz freebsd-ports-gnome-bdcfd0e12b97431b78133ae74693cccb100c8968.tar.zst freebsd-ports-gnome-bdcfd0e12b97431b78133ae74693cccb100c8968.zip |
- Make autodetection work properly.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.lua.mk | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Mk/bsd.lua.mk b/Mk/bsd.lua.mk index 2f8daf3bc802..1a20fffa06d7 100644 --- a/Mk/bsd.lua.mk +++ b/Mk/bsd.lua.mk @@ -172,22 +172,22 @@ _LUA_PORT_pty_5.1= devel/lua-pty . for comp in ${_LUA_COMPS_ALL} _LUA_COMP= ${comp} . for ver in ${_LUA_VERS_ALL} +# XXX The hardcoded values here have to match LUA_* variables (later), and +# are here only to allow autodetection of installed versions. . if ${_LUA_COMP} == "lua" -_LUA_LIB_${comp}_${ver}= lua-${LUA_VER}.${LUA_VER_SH} -_LUA_SHVER_${comp}_${ver}= ${LUA_VER_SH} -_LUA_FILE_${comp}_${ver}= ${LUA_LIBDIR}/liblua.a +_LUA_LIB_${comp}_${ver}= lua-${ver}.${_LUA_SHVER_${comp}_${ver}} +_LUA_SHVER_${comp}_${ver}= ${ver:C/[[:digit:]]\.([[:digit:]])/\1/} +_LUA_FILE_${comp}_${ver}= ${LOCALBASE}/lib/lua${ver:S/.//g}/liblua.a . elif ${_LUA_COMP} == "tolua" -_LUA_FILE_${comp}_${ver}= ${LUA_LIBDIR}/libtolua.a +_LUA_FILE_${comp}_${ver}= ${LOCALBASE}/lib/lua${ver:S/.//g}/libtolua.a _LUA_DEPTYPE_${comp}_${ver}=build . elif ${_LUA_COMP} == "ruby" -_LUA_FILE_${comp}_${ver}= ${RUBY_SITEARCHLIBDIR}/lua-${LUA_VER}.so +_LUA_FILE_${comp}_${ver}= ${RUBY_SITEARCHLIBDIR}/lua-${ver}.so _LUA_DEPTYPE_${comp}_${ver}=lib -. else -. if !defined(_LUA_FILE_${comp}_${ver}) -_LUA_FILE_${comp}_${ver}= ${LUA_MODSHAREDIR}/${comp}.lua -. endif -_LUA_DEPTYPE_${comp}_${ver}=run +. elif !defined(_LUA_FILE_${comp}_${ver}) +_LUA_FILE_${comp}_${ver}= ${LOCALBASE}/share/lua/${ver}/${comp}.lua . endif +_LUA_DEPTYPE_${comp}_${ver}=run . endfor . endfor .endif @@ -257,7 +257,7 @@ HAVE_LUA:= ${_HAVE_LUA} # Used for autodetection of installed versions. -.if defined(_WX_Need_Version) +.if defined(_LUA_Need_Version) _LUA_VER_INSTALLED:= ${_HAVE_LUA:Mlua-*:S/lua-//} .endif @@ -390,7 +390,7 @@ IGNORE?= selected Lua versions (${_LUA_WRONG_VERS}) which do not have the sel # 4) _LUA_VER_FINAL - Available versions. # -.for list in _LUA_VER_FINAL ${_LUA_LISTS_ORDER} +.for list in _LUA_VER_FINAL ${_LUA_VERS_LISTS} . if defined(${list}) . for ver in ${${list}} . if ${_LUA_VER_FINAL:M${ver}} != "" |