head	1.1;
access;
symbols
	pkgsrc-2026Q2:1.1.0.2
	pkgsrc-2026Q2-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2026.04.15.20.46.08;	author wiz;	state Exp;
branches;
next	;
commitid	w7ip4NTkD6Hs56CG;


desc
@@


1.1
log
@devel/lua-cffi: import lua-cffi-0.2.4

Packaged by Yorick Hardy and myself in wip.

This is a portable C FFI for Lua, based on `libffi` and aiming to be mostly
compatible with LuaJIT FFI, but written from scratch. Compatibility is
preserved where reasonable, but not where not easily implementable (e.g.
the parser extensions for 64-bit `cdata` and so on). Thanks to `libffi`,
it works on many operating systems and CPU architectures. The `cffi-lua`
codebase itself does not contain any non-portable code (with the exception
of things such as Windows calling convention handling on x86, and some
adjustments for big endian architectures).
@
text
@# $NetBSD$

DISTNAME=	cffi-lua-0.2.4
PKGNAME=	${DISTNAME:S/cffi-lua/lua-cffi/}
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=q66/}
GITHUB_PROJECT=	cffi-lua
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/q66/cffi-lua/
COMMENT=	Portable C FFI for Lua
LICENSE=	mit

USE_LANGUAGES=		c++
USE_CXX_FEATURES=	c++14
USE_TOOLS+=		pkg-config
WRKSRC=			${WRKDIR}/${DISTNAME}

.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/meson/build.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@
