summaryrefslogtreecommitdiff
path: root/games/7kaa/Makefile
blob: 273778c0ce18e0520f405b649d28b414ec76ca8c (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
PORTNAME=	7kaa
PORTVERSION=	2.15.4p1
DISTVERSIONPREFIX=	v
CATEGORIES=	games

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

USE_GITHUB=	yes
GH_ACCOUNT=	the3dfxdude

USES=		autoreconf compiler:c++11-lang gettext-tools gmake localbase \
		openal:al pkgconfig sdl iconv
USE_SDL=	sdl2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-multiplayer

CXXFLAGS+=	-fPIC

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes
NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

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>