Revision
112720
Author
and.damore@macports.org
Date
2013-10-29 15:51:20 -0700 (Tue, 29 Oct 2013)

Log Message

port lua-luafilesystem: passing correct build settings as arguments, adding copmatibility define flag

Modified Paths

Diff

Modified: trunk/dports/devel/lua-luafilesystem/Portfile (112719 => 112720)


--- trunk/dports/devel/lua-luafilesystem/Portfile	2013-10-29 22:41:46 UTC (rev 112719)
+++ trunk/dports/devel/lua-luafilesystem/Portfile	2013-10-29 22:51:20 UTC (rev 112720)
@@ -3,7 +3,7 @@
 
 name                lua-luafilesystem
 version             1.5.0
-revision            4
+revision            5
 license             MIT
 categories          devel
 platforms           darwin
@@ -33,10 +33,11 @@
 
 variant universal {}
 
-build.args          CC="${configure.cc}"
+build.args          CC="${configure.cc}" \
+                    CFLAGS="${configure.cflags} -I${prefix}/include [get_canonical_archflags cc] -DLUA_COMPAT_MODULE" \
+                    LDFLAGS="${configure.ldflags} -llua -lm [get_canonical_archflags ld]"
+
 build.target        lib
-build.env-append    CFLAGS=" ${configure.cflags}  [get_canonical_archflags cc]" \
-                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
 
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}