summaryrefslogtreecommitdiff
path: root/devel/lua-sdl2/Makefile
blob: cf69737684f682a8687394ae9e98a6d844dfbb84 (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.8 2022/08/11 05:08:13 gutteridge Exp $

DISTNAME=	luasdl2-2.0.5.6.0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
PKGREVISION=	6
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"