summaryrefslogtreecommitdiff
path: root/games/marblemarcher/Makefile
blob: 3b985133098498c19ab29b3dbfb05517e45076dc (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
33
PORTNAME=	marblemarcher
DISTVERSION=	1.4.5
PORTREVISION=	2
CATEGORIES=	games

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Marble Marcher: Community Edition
WWW=		https://github.com/WAUthethird/Marble-Marcher-Community-Edition

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	glm>0:math/glm
LIB_DEPENDS=	libAntTweakBar.so:graphics/anttweakbar \
		libsfml-system.so:devel/sfml

USES=		cmake compiler:c++17-lang eigen:3 gl localbase:ldflags
USE_GL=		gl glew glu

USE_GITHUB=	yes
GH_ACCOUNT=	WAUthethird
GH_PROJECT=	Marble-Marcher-Community-Edition

CMAKE_ARGS=	-DFREEBSD_DATADIR=${DATADIR}

post-install:
	@(echo "#!/bin/sh"; \
	  echo ""; \
	  echo "cd ${DATADIR} && ./MarbleMarcher \"$$"@"\"" \
	) > ${STAGEDIR}${PREFIX}/bin/MarbleMarcher
	@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/MarbleMarcher

.include <bsd.port.mk>