[106216] trunk/dports/devel/lua-numlua
and.damore at macports.org
and.damore at macports.org
Sun May 19 07:34:30 PDT 2013
Revision: 106216
https://trac.macports.org/changeset/106216
Author: and.damore at macports.org
Date: 2013-05-19 07:34:30 -0700 (Sun, 19 May 2013)
Log Message:
-----------
port lua-numlua: setting destroot path according to installed lua version, see r106215
Revision Links:
--------------
https://trac.macports.org/changeset/106215
Modified Paths:
--------------
trunk/dports/devel/lua-numlua/Portfile
trunk/dports/devel/lua-numlua/files/Makefile
Modified: trunk/dports/devel/lua-numlua/Portfile
===================================================================
--- trunk/dports/devel/lua-numlua/Portfile 2013-05-19 14:33:31 UTC (rev 106215)
+++ trunk/dports/devel/lua-numlua/Portfile 2013-05-19 14:34:30 UTC (rev 106216)
@@ -4,6 +4,7 @@
PortGroup github 1.0
github.setup carvalho numlua 0.3
+revision 1
name lua-numlua
license MIT
categories devel
@@ -48,7 +49,8 @@
LDFLAGS=${configure.ldflags} \
DEPLOYMENT_TARGET=${macosx_deployment_target}
-destroot.args-append PREFIX=$prefix
+destroot.args-append PREFIX=$prefix \
+ LUA_VERSION=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/doc
Modified: trunk/dports/devel/lua-numlua/files/Makefile
===================================================================
--- trunk/dports/devel/lua-numlua/files/Makefile 2013-05-19 14:33:31 UTC (rev 106215)
+++ trunk/dports/devel/lua-numlua/files/Makefile 2013-05-19 14:34:30 UTC (rev 106216)
@@ -8,10 +8,11 @@
DEPLOYMENT_TARGET ?= 10.5
PREFIX ?= /tmp
+LUA_VERSION = 5.1
INSTALL_ROOT = $(DESTDIR)$(PREFIX)
-INSTALL_INC = $(INSTALL_ROOT)/include/lua5.1
-INSTALL_LUA = $(INSTALL_ROOT)/share/lua/5.1/numlua
-INSTALL_LIB = $(INSTALL_ROOT)/lib/lua/5.1
+INSTALL_INC = $(INSTALL_ROOT)/include/lua$(LUA_VERSION)
+INSTALL_LUA = $(INSTALL_ROOT)/share/lua/$(LUA_VERSION)/numlua
+INSTALL_LIB = $(INSTALL_ROOT)/lib/lua/$(LUA_VERSION)
TO_INC = amos.h blas.h cdflib.h lapack.h numlua.h rng.h
TO_LUA = matrix.lua seeall.lua
TO_LIB = numlua.so
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130519/1a312c54/attachment-0001.html>
More information about the macports-changes
mailing list