summaryrefslogtreecommitdiff
path: root/games/barony/Makefile
blob: ceb5957ad9fba25fad41477ac7e5978e147d2c8c (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
40
41
42

PORTNAME=	barony
DISTVERSIONPREFIX=	v
DISTVERSION=	3.3.7
PORTREVISION=	0
CATEGORIES=	games

MAINTAINER=	devnexen@gmail.com
COMMENT=	3D roguelike game

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/GPL.3.0.txt

BUILD_DEPENDS=	rapidjson>=0:devel/rapidjson
LIB_DEPENDS=	libogg.so:audio/libogg \
		libphysfs.so:devel/physfs \
		libpng.so:graphics/png \
		libvorbisfile.so:audio/libvorbis

USES=		cmake:insource compiler:c++11-lib dos2unix gl localbase:ldflags \
		openal pkgconfig sdl
USE_GITHUB=	yes
GH_ACCOUNT=	TurningWheel
GH_PROJECT=	Barony
USE_GL=		gl glu
USE_SDL=	sdl2 image2 net2 ttf2

CMAKE_ON=	OPENAL_ENABLED DATA_DIR
CMAKE_ARGS=	-DEDITOR_EXE_NAME:STRING="barony-editor"
CONFIGURE_ENV=	OPTIMIZATION_LEVEL=""
DOS2UNIX_FILES=	src/menu.cpp
LDFLAGS+=	-Wl,--as-needed
LDFLAGS_i386=	-Wl,-znotext

SUB_FILES=	pkg-message

PLIST_FILES=	bin/barony \
		bin/barony-editor \
		${DATADIR}/lang/en.ttf \
		${DATADIR}/lang/en.txt

.include <bsd.port.mk>