summaryrefslogtreecommitdiff
path: root/games/7kaa/Makefile
blob: fd480de6fdea63bb27c25af59a5d1e7bce00b38a (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
39
40
41
42
43
44
45
46
47
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	7kaa
PORTVERSION=	2.14.7
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	SF/skfans/7KAA%20${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Seven Kingdoms: Ancient Adversaries

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libenet.so:net/enet \
		libcurl.so:ftp/curl

BROKEN_aarch64=		fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char'
BROKEN_armv6=		fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char'
BROKEN_armv7=		fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char'

USES=		compiler:c++11-lib gmake localbase openal:al pkgconfig tar:xz
GNU_CONFIGURE=	yes
LLD_UNSAFE=	yes
CONFIGURE_ARGS=	--disable-nls # no translations ATM
USE_SDL=	sdl2

PLIST_FILES=	bin/${PORTNAME} \
		share/pixmaps/${PORTNAME}.ico
PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

DESKTOP_ENTRIES="7KAA" \
		"" \
		"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
		"${PORTNAME}" \
		"Game;StrategyGame;" \
		""

post-install:
	@${RM} ${STAGEDIR}${DOCSDIR}/COPYING
	${INSTALL_DATA} ${WRKSRC}/src/7k.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico

.include <bsd.port.mk>