Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= dreamchess |
4 |
DISTVERSION= 0.3.0 |
5 |
CATEGORIES= games |
6 |
|
7 |
MAINTAINER= phascolarctos@protonmail.ch |
8 |
COMMENT= OpenGL chess game |
9 |
|
10 |
LICENSE= GPLv3+ BSD2CLAUSE BSD3CLAUSE |
11 |
LICENSE_COMB= multi |
12 |
LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSE.txt |
13 |
LICENSE_DISTFILES_GPLv3+ = ${DISTNAME} |
14 |
LICENSE_DISTFILES_BSD2CLAUSE= ${DISTNAME} |
15 |
LICENSE_DISTFILES_BSD3CLAUSE= ${DISTNAME} |
16 |
LICENSE_DISTFILES_CC-BY-NC-ND-3.0= dreamchess-dreamchess-music-0.3.0_GH0.tar.gz |
17 |
|
18 |
BUILD_DEPENDS= flex:textproc/flex |
19 |
LIB_DEPENDS= libexpat.so:textproc/expat2 |
20 |
|
21 |
USES= bison cmake gl sdl |
22 |
USE_GITHUB= yes |
23 |
USE_GL= gl glew glu |
24 |
USE_SDL= image2 mixer2 |
25 |
|
26 |
PLIST_FILES= bin/dreamchess \ |
27 |
bin/dreamer \ |
28 |
man/man6/dreamchess.6.gz \ |
29 |
man/man6/dreamer.6.gz \ |
30 |
share/applications/dreamchess.desktop \ |
31 |
share/icons/hicolor/256x256/apps/dreamchess.png \ |
32 |
share/icons/hicolor/48x48/apps/dreamchess.png |
33 |
|
34 |
PORTDATA= * |
35 |
|
36 |
OPTIONS_DEFINE= DOCS MUSIC |
37 |
OPTIONS_DEFAULT= MUSIC |
38 |
|
39 |
MUSIC_DESC= Install DreamChess music |
40 |
MUSIC_GH_PROJECT= ${PORTNAME}-music:music |
41 |
MUSIC_GH_TAGNAME= 1.0:music |
42 |
|
43 |
PORTDOCS= AUTHORS.txt |
44 |
|
45 |
.include <bsd.port.options.mk> |
46 |
|
47 |
.if ${PORT_OPTIONS:MMUSIC} |
48 |
LICENSE+= CC-BY-NC-ND-3.0 |
49 |
.endif |
50 |
|
51 |
post-install-DOCS-on: |
52 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
53 |
${MV} ${STAGEDIR}${PREFIX}/share/doc/DreamChess/AUTHORS.txt ${STAGEDIR}${DOCSDIR} |
54 |
${RM} -R ${STAGEDIR}${PREFIX}/share/doc/DreamChess |
55 |
|
56 |
post-install-DOCS-off: |
57 |
${RM} -R ${STAGEDIR}${PREFIX}/share/doc/DreamChess |
58 |
|
59 |
post-install-MUSIC-on: |
60 |
cd ${WRKDIR}/${PORTNAME}-music-${MUSIC_GH_TAGNAME:S/:music//}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
61 |
|
62 |
.include <bsd.port.mk> |