Lines 4-18
Link Here
|
4 |
PORTNAME= pioneer |
4 |
PORTNAME= pioneer |
5 |
PORTVERSION= 20140910 |
5 |
PORTVERSION= 20140910 |
6 |
CATEGORIES= games |
6 |
CATEGORIES= games |
7 |
MASTER_SITES= http://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/${GH_TAGNAME}.tar.gz?dummy=/ |
|
|
8 |
|
7 |
|
9 |
MAINTAINER= lightside@gmx.com |
8 |
MAINTAINER= lightside@gmx.com |
10 |
COMMENT= Space adventure game set in the Milky Way galaxy |
9 |
COMMENT= Space adventure game set in the Milky Way galaxy |
11 |
|
10 |
|
12 |
LICENSE= APACHE20 GPLv3 MIT ZLIB CCBYSAv3 DejaVu GLEW SIL |
11 |
LICENSE= APACHE20 GPLv3 MIT ZLIB CCBYSAv3 DejaVu GLEW SIL |
13 |
LICENSE_COMB= multi |
12 |
LICENSE_COMB= multi |
14 |
LICENSE_NAME_CCBYSAv3= Creative Commons Attribution-ShareAlike 3.0\ |
13 |
LICENSE_NAME_CCBYSAv3= Creative Commons Attribution-ShareAlike 3.0 Unported license |
15 |
Unported license |
|
|
16 |
LICENSE_NAME_DejaVu= Bitstream Vera and Arev fonts license |
14 |
LICENSE_NAME_DejaVu= Bitstream Vera and Arev fonts license |
17 |
LICENSE_NAME_GLEW= The OpenGL Extension Wrangler Library license |
15 |
LICENSE_NAME_GLEW= The OpenGL Extension Wrangler Library license |
18 |
LICENSE_NAME_SIL= SIL open font license version 1.1 |
16 |
LICENSE_NAME_SIL= SIL open font license version 1.1 |
Lines 25-45
Link Here
|
25 |
LICENSE_PERMS_GLEW= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
23 |
LICENSE_PERMS_GLEW= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
26 |
LICENSE_PERMS_SIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
24 |
LICENSE_PERMS_SIL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
27 |
|
25 |
|
|
|
26 |
USE_GITHUB= yes |
28 |
GH_ACCOUNT= pioneerspacesim |
27 |
GH_ACCOUNT= pioneerspacesim |
29 |
GH_PROJECT= ${PORTNAME} |
28 |
GH_COMMIT= 86db984 |
30 |
GH_TAGNAME= ${PORTVERSION} |
|
|
31 |
|
29 |
|
32 |
BUILD_DEPENDS+= ${LOCALBASE}/include/GL/glu.h:${PORTSDIR}/graphics/libGLU |
30 |
LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \ |
33 |
|
31 |
libfreetype.so:${PORTSDIR}/print/freetype2 \ |
34 |
LIB_DEPENDS+= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \ |
32 |
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ |
35 |
libfreetype.so:${PORTSDIR}/print/freetype2 \ |
33 |
libpng15.so:${PORTSDIR}/graphics/png \ |
36 |
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ |
34 |
libassimp.so:${PORTSDIR}/multimedia/assimp |
37 |
libpng15.so:${PORTSDIR}/graphics/png \ |
35 |
|
38 |
libassimp.so:${PORTSDIR}/multimedia/assimp |
36 |
USES= compiler:c++11-lang gmake pkgconfig |
39 |
|
37 |
USE_AUTOTOOLS= aclocal autoconf autoheader automake |
40 |
USES= compiler:c++11-lang gmake pkgconfig |
38 |
AUTOMAKE_ARGS= --add-missing |
41 |
USE_AUTOTOOLS= aclocal:env autoconf:env autoheader:env automake:env |
39 |
USE_GL= gl glu |
42 |
USE_GL= gl |
|
|
43 |
USE_SDL= image2 sdl2 |
40 |
USE_SDL= image2 sdl2 |
44 |
|
41 |
|
45 |
GNU_CONFIGURE= yes |
42 |
GNU_CONFIGURE= yes |
Lines 53-63
Link Here
|
53 |
PORTDOCS= AUTHORS.txt Changelog.txt Modelviewer.txt Quickstart.txt README.txt |
50 |
PORTDOCS= AUTHORS.txt Changelog.txt Modelviewer.txt Quickstart.txt README.txt |
54 |
|
51 |
|
55 |
PLIST_FILES= bin/${PORTNAME} \ |
52 |
PLIST_FILES= bin/${PORTNAME} \ |
56 |
share/pixmaps/${PORTNAME}.png |
53 |
share/pixmaps/${PORTNAME}.png |
57 |
|
54 |
|
58 |
DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \ |
55 |
DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \ |
59 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ |
56 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ |
60 |
"Game;Simulation;" false |
57 |
"Game;Simulation;" false |
61 |
|
58 |
|
62 |
SUB_FILES= pkg-message |
59 |
SUB_FILES= pkg-message |
63 |
SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" |
60 |
SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" |
Lines 65-70
Link Here
|
65 |
OPTIONS_DEFINE= DOCS MODELCOMPILER |
62 |
OPTIONS_DEFINE= DOCS MODELCOMPILER |
66 |
OPTIONS_DEFAULT= MODELCOMPILER |
63 |
OPTIONS_DEFAULT= MODELCOMPILER |
67 |
MODELCOMPILER_DESC= Build/install modelcompiler tool |
64 |
MODELCOMPILER_DESC= Build/install modelcompiler tool |
|
|
65 |
MODELCOMPILER_PLIST_FILES=bin/${PORTNAME}-modelcompiler |
68 |
|
66 |
|
69 |
.include <bsd.port.options.mk> |
67 |
.include <bsd.port.options.mk> |
70 |
|
68 |
|
Lines 75-84
Link Here
|
75 |
https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME} |
73 |
https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME} |
76 |
.endif |
74 |
.endif |
77 |
|
75 |
|
78 |
.if ${PORT_OPTIONS:MMODELCOMPILER} |
|
|
79 |
PLIST_FILES+= bin/${PORTNAME}-modelcompiler |
80 |
.endif |
81 |
|
82 |
post-patch: |
76 |
post-patch: |
83 |
@${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
77 |
@${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
84 |
${WRKSRC}/configure.ac |
78 |
${WRKSRC}/configure.ac |
Lines 89-108
Link Here
|
89 |
${WRKSRC}/src/Makefile.am |
83 |
${WRKSRC}/src/Makefile.am |
90 |
.endif |
84 |
.endif |
91 |
|
85 |
|
92 |
pre-configure: |
86 |
post-install: |
93 |
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${AUTORECONF} -fi |
|
|
94 |
|
95 |
pre-install: |
96 |
@cd ${WRKSRC}/data && ${RM} -f Makefile* |
97 |
.if ${PORT_OPTIONS:MMODELCOMPILER} |
87 |
.if ${PORT_OPTIONS:MMODELCOMPILER} |
98 |
@cd ${WRKSRC}/src && ${CP} -f modelcompiler ${PORTNAME}-modelcompiler |
88 |
@${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler |
99 |
.endif |
89 |
.endif |
100 |
|
|
|
101 |
do-install: |
102 |
.for b in ${PLIST_FILES:Mbin/*:T} |
103 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${b} ${STAGEDIR}${PREFIX}/bin/${b} |
104 |
.endfor |
105 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR} |
106 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} |
90 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} |
107 |
${INSTALL_DATA} ${WRKSRC}/application-icon/pngs/pioneer-256x256.png \ |
91 |
${INSTALL_DATA} ${WRKSRC}/application-icon/pngs/pioneer-256x256.png \ |
108 |
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png |
92 |
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png |