summaryrefslogtreecommitdiff
path: root/games/openxcom/Makefile
blob: 365259615255cc426ef8c741db23574b93922aa0 (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
49
50
51
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	openxcom
PORTVERSION=	1.0
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	games

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Open-source reimplementation of the original X-Com

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

LIB_DEPENDS=	libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp

USE_GITHUB=	yes
GH_ACCOUNT=	SupSuper
GH_PROJECT=	OpenXcom

USES=		compiler:c++11-lang gmake pkgconfig
USE_SDL=	sdl mixer image gfx
USE_GL=		gl

BUILD_WRKSRC=	${WRKSRC}/src
MAKEFILE=	Makefile.simple

SUB_FILES=	pkg-message

PLIST_FILES=	bin/openxcom share/applications/${PORTNAME}.desktop \
		share/pixmaps/${PORTNAME}.svg

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/README.txt \
		${WRKSRC}/src/Engine/CrossPlatform.cpp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_DATA} ${WRKSRC}/res/linux/openxcom.desktop ${STAGEDIR}${PREFIX}/share/applications/
	${INSTALL_DATA} ${WRKSRC}/res/linux/icons/openxcom.svg ${STAGEDIR}${PREFIX}/share/pixmaps/
	cd ${WRKSRC}/bin && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}/
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/CHANGELOG.txt ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>