summaryrefslogtreecommitdiff
path: root/games/astromenace/Makefile
blob: 6aeab19d69e8aed4956cdd9c01d4435e42cc54ad (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
52
53
54
55
56
57
58
59
# Created by: Oleg Alexeenkov
# $FreeBSD$

PORTNAME=	astromenace
PORTVERSION=	1.4.1
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	games

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Hardcore 3D space shooter with spaceship upgrade possibilities

LICENSE=	GPLv3+ CC-BY-SA-4.0 OFL11
LICENSE_COMB=	multi
LICENSE_FILE_GPLv3+ =	${WRKSRC}/licenses/GPL-3.0.txt
LICENSE_FILE_CC-BY-SA-4.0=${WRKSRC}/licenses/CC-BY-SA-4.0.txt
LICENSE_FILE_OFL11=	${WRKSRC}/licenses/OFL-1.1.txt

LIB_DEPENDS=	libogg.so:audio/libogg \
		libvorbis.so:audio/libvorbis \
		libvorbisfile.so:audio/libvorbis \
		libfreetype.so:print/freetype2

USE_GITHUB=	yes
GH_ACCOUNT=	viewizard

USES=		cmake compiler:c++11-lib dos2unix gl openal:al,alut sdl
DOS2UNIX_FILES=	CMakeLists.txt src/config/config.cpp
USE_GL=		gl glu
USE_SDL=	sdl2
CMAKE_ARGS=	-DDATADIR="${DATADIR}"
LLD_UNSAFE=	yes

PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${BUILD_WRKSRC}/gamedata.vfs ${STAGEDIR}${DATADIR}/
.for s in 64 128
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/
	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}_${s}.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/${PORTNAME}.png
.endfor
	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.desktop \
		${STAGEDIR}${PREFIX}/share/applications/
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata/
	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.appdata.xml \
		${STAGEDIR}${PREFIX}/share/appdata/

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${STAGEDIR}${DOCSDIR}/
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>