summaryrefslogtreecommitdiff
path: root/games/dreamchess/Makefile
blob: 5266623c3537f3d4ad3ca795e8b698caf8576025 (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
60

PORTNAME=	dreamchess
DISTVERSION=	0.3.0
CATEGORIES=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	OpenGL chess game

LICENSE=	GPLv3+ BSD2CLAUSE BSD3CLAUSE
LICENSE_COMB=	multi
LICENSE_FILE_GPLv3+ =	${WRKSRC}/LICENSE.txt
LICENSE_DISTFILES_GPLv3+ =		${DISTNAME}
LICENSE_DISTFILES_BSD2CLAUSE=		${DISTNAME}
LICENSE_DISTFILES_BSD3CLAUSE=		${DISTNAME}
LICENSE_DISTFILES_CC-BY-NC-ND-3.0=	${DISTNAME}.tar.gz

BUILD_DEPENDS=	flex:textproc/flex
LIB_DEPENDS=	libexpat.so:textproc/expat2

USES=		bison cmake gl sdl
USE_GITHUB=	yes
USE_GL=		gl glew glu
USE_SDL=	image2 mixer2

PLIST_FILES=	bin/dreamchess \
		bin/dreamer \
		man/man6/dreamchess.6.gz \
		man/man6/dreamer.6.gz \
		share/applications/dreamchess.desktop \
		share/icons/hicolor/256x256/apps/dreamchess.png \
		share/icons/hicolor/48x48/apps/dreamchess.png

PORTDATA=	*
PORTDOCS=	AUTHORS.txt

OPTIONS_DEFINE=		DOCS MUSIC
OPTIONS_DEFAULT=	MUSIC

MUSIC_DESC=		Install DreamChess music
MUSIC_GH_PROJECT=	${PORTNAME}-music:music
MUSIC_GH_TAGNAME=	1.0:music

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMUSIC}
LICENSE+=	CC-BY-NC-ND-3.0
.endif

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${MV} ${STAGEDIR}${PREFIX}/share/doc/DreamChess/AUTHORS.txt ${STAGEDIR}${DOCSDIR}
	${RM} -R ${STAGEDIR}${PREFIX}/share/doc/DreamChess

post-install-DOCS-off:
	${RM} -R ${STAGEDIR}${PREFIX}/share/doc/DreamChess

post-install-MUSIC-on:
	cd ${WRKDIR}/${PORTNAME}-music-${MUSIC_GH_TAGNAME:S/:music//}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>