summaryrefslogtreecommitdiff
path: root/devel/lua-sdl2/Makefile
blob: dde0eccf398126a068715b59eca9e7fa5312ad9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $NetBSD: Makefile,v 1.7 2022/03/28 10:53:01 tnn Exp $

DISTNAME=	luasdl2-2.0.5.6.0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
PKGREVISION=	5
CATEGORIES=	devel lua
MASTER_SITES=	${MASTER_SITE_GITHUB:=Tangent128/}
GITHUB_PROJECT=	luasdl2
GITHUB_TAG=	v2.0.5-6.0

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://github.com/Tangent128/luasdl2
COMMENT=	Pure C binding of SDL 2.0 for Lua
LICENSE=	isc

USE_CMAKE=	yes
USE_LANGUAGES=	c c++

CMAKE_ARGS+=	-DWITH_DOCSDIR=${LUA_DOCDIR}
CMAKE_ARGS+=	-DWITH_LUAVER="user"
CMAKE_ARGS+=	-DLUA_LIBDIR=${LUA_CDIR}

# build fails on lua52.
LUA_VERSIONS_INCOMPATIBLE=	52

.include "../../devel/SDL2/buildlink3.mk"
.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../fonts/SDL2_ttf/buildlink3.mk"
.include "../../graphics/SDL2_image/buildlink3.mk"
.include "../../net/SDL2_net/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"