summaryrefslogtreecommitdiffstats
path: root/games/openspades/Makefile
blob: 10718592f710ae8e91fb189db13ce1e6507287d0 (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
43
44
45
46
47
48
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	openspades
PORTVERSION=	0.0.12
DISTVERSIONPREFIX=	v
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://yvt.jp/files/programs/osppaks/:data
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} DevPaks27.zip:data

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Compatible client of Ace of Spades

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	convert:graphics/ImageMagick # for building icons
LIB_DEPENDS=	libcurl.so:ftp/curl

NOT_FOR_ARCHS=		aarch64 powerpc64
NOT_FOR_ARCHS_REASON=	fails to compile: uses x86 assembly

USE_GITHUB=	yes
GH_ACCOUNT=	yvt

USES=		cmake compiler:c++11-lib desktop-file-utils
CMAKE_ARGS=	-DOPENSPADES_RESOURCES=OFF \
		-DOPENSPADES_INSTALL_MAN="man/man6" \
		-DOPENSPADES_INSTALL_BINARY="bin" \
		-DOPENSPADES_INSTALL_RESOURCES="${DATADIR_REL}"
USE_SDL=	sdl2 image2
USE_GL=		gl glew
INSTALLS_ICONS=	yes

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

post-extract:
	@${MKDIR} ${WRKSRC}/Resources/DevPak
	@${MV} ${WRKDIR}/*.pak ${WRKSRC}/Resources/DevPak/

post-patch:
	@${REINPLACE_CMD} -e 's|Xext|${LOCALBASE}/lib/lib&.so|' ${WRKSRC}/Sources/CMakeLists.txt

.include <bsd.port.mk>
OpenPOWER on IntegriCloud