aboutsummaryrefslogtreecommitdiff
path: root/games/devilutionX/Makefile
blob: bebbfd6c9757e52eeeb7bbdb71e98fc5365a8068 (plain) (blame)
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
34
35
36
37
38
PORTNAME=	devilutionX
DISTVERSION=	1.2.1
CATEGORIES=	games

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Diablo I engine for modern operating systems

LICENSE=	UNLICENSE
LICENSE_FILE=	${WRKSRC}/LICENSE

_MY_DEPENDS=	${LOCALBASE}/share/fonts/CharisSIL/CharisSIL-B.ttf:x11-fonts/charis
BUILD_DEPENDS=	${_MY_DEPENDS}
LIB_DEPENDS=	libsodium.so:security/libsodium
RUN_DEPENDS=	${_MY_DEPENDS}

USES=		cmake compiler:c++11-lang dos2unix sdl
DOS2UNIX_GLOB=	*.c *.h CMakeLists.txt
USE_GITHUB=	yes
GH_ACCOUNT=	diasurgical
USE_SDL=	mixer2 sdl2 ttf2

CMAKE_ARGS=	-DCMAKE_INSTALL_SHAREDIR:PATH=${PREFIX}/share \
		-DVERSION_NUM=${PORTVERSION}

.if defined(WITH_DEBUG)
CMAKE_ON=	DEBUG
.else
CMAKE_ON=	BINARY_RELEASE
.endif

CXXFLAGS+=	-DTTF_FONT_NAME=\\\"${LOCALBASE}/share/fonts/CharisSIL/CharisSIL-B.ttf\\\"

PLIST_FILES=	bin/devilutionx \
		share/applications/devilutionx.desktop \
		share/icons/hicolor/512x512/apps/devilutionx.png \
		share/icons/hicolor/512x512/apps/devilutionx_solid.png

.include <bsd.port.mk>