blob: 36c602483d9320dfa1c17cb354e746b26dc97ba4 (
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
34
35
36
37
38
39
|
PORTNAME= devilutionX
PORTVERSION= 1.1.0
PORTREVISION= 2
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 \
-DGIT_TAG=${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>
|