diff options
author | philip <philip@FreeBSD.org> | 2010-09-19 02:29:19 +0800 |
---|---|---|
committer | philip <philip@FreeBSD.org> | 2010-09-19 02:29:19 +0800 |
commit | b045b2c09d70d79b4de9b58739dfd33ebe752393 (patch) | |
tree | 2f6abdba6f280d3ba55d1fee041b331a4e2c4c73 /devel/lua-alien | |
parent | 1ab772c152e102201c93b355c32c9bc02798e5ec (diff) | |
download | freebsd-ports-gnome-b045b2c09d70d79b4de9b58739dfd33ebe752393.tar.gz freebsd-ports-gnome-b045b2c09d70d79b4de9b58739dfd33ebe752393.tar.zst freebsd-ports-gnome-b045b2c09d70d79b4de9b58739dfd33ebe752393.zip |
Add a regression test target. Attempt to fix the build on sparc64.
PR: ports/150632
Submitted by: Anonymous <swell.k -at- gmail.com> (maintainer)
Diffstat (limited to 'devel/lua-alien')
-rw-r--r-- | devel/lua-alien/Makefile | 3 | ||||
-rw-r--r-- | devel/lua-alien/files/patch-src-alien-core.c | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/lua-alien/Makefile b/devel/lua-alien/Makefile index 2c9b9202feba..b2e43ca5dd9a 100644 --- a/devel/lua-alien/Makefile +++ b/devel/lua-alien/Makefile @@ -62,4 +62,7 @@ do-install: ${TAR} cf - -C${WRKSRC}/samples . | ${TAR} xof - -C${EXAMPLESDIR} .endif +regression-test: install + cd ${DATADIR}/tests && ${LUA_CMD} test_alien.lua + .include <bsd.port.mk> diff --git a/devel/lua-alien/files/patch-src-alien-core.c b/devel/lua-alien/files/patch-src-alien-core.c new file mode 100644 index 000000000000..61847640b665 --- /dev/null +++ b/devel/lua-alien/files/patch-src-alien-core.c @@ -0,0 +1,11 @@ +--- src/alien/core.c~ ++++ src/alien/core.c +@@ -301,7 +301,7 @@ static void *alien_loadfunc (lua_State * + #define FFI_STDCALL FFI_DEFAULT_ABI + #endif + +-#ifdef DARWIN ++#if defined(DARWIN) || !defined(FFI_SYSV) + #define FFI_SYSV FFI_DEFAULT_ABI + #endif + |