Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/games/pioneer/Makefile 422087 2016-09-13 22:34:28Z amdmi3 $ |
2 |
# $FreeBSD: head/games/pioneer/Makefile 422087 2016-09-13 22:34:28Z amdmi3 $ |
3 |
|
3 |
|
4 |
PORTNAME= pioneer |
4 |
PORTNAME= pioneer |
5 |
PORTVERSION= 0.0.${GH_TAGNAME} |
5 |
PORTVERSION= 0.0.${BUILD_VERSION} |
6 |
CATEGORIES= games |
6 |
CATEGORIES= games |
7 |
|
7 |
|
8 |
MAINTAINER= lightside@gmx.com |
8 |
MAINTAINER= lightside@gmx.com |
Lines 36-42
Link Here
|
36 |
|
36 |
|
37 |
USE_GITHUB= yes |
37 |
USE_GITHUB= yes |
38 |
GH_ACCOUNT= pioneerspacesim |
38 |
GH_ACCOUNT= pioneerspacesim |
39 |
GH_TAGNAME= 20160610 |
39 |
GH_TAGNAME= ${BUILD_VERSION} |
|
|
40 |
BUILD_VERSION= 20161028 |
40 |
|
41 |
|
41 |
USES= autoreconf gmake pkgconfig |
42 |
USES= autoreconf gmake pkgconfig |
42 |
USE_GL= gl |
43 |
USE_GL= gl |
Lines 44-50
Link Here
|
44 |
|
45 |
|
45 |
GNU_CONFIGURE= yes |
46 |
GNU_CONFIGURE= yes |
46 |
CONFIGURE_ENV= PIONEER_DATA_DIR="${DATADIR}/data" |
47 |
CONFIGURE_ENV= PIONEER_DATA_DIR="${DATADIR}/data" |
47 |
CONFIGURE_ARGS= --with-version="${GH_TAGNAME}" |
48 |
CONFIGURE_ARGS= --with-version="${BUILD_VERSION}" |
48 |
EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions --exclude .gitignore |
49 |
EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions --exclude .gitignore |
49 |
|
50 |
|
50 |
PORTDATA= data |
51 |
PORTDATA= data |
Lines 58-73
Link Here
|
58 |
"Game;Simulation;" false |
59 |
"Game;Simulation;" false |
59 |
|
60 |
|
60 |
SUB_FILES= pkg-message |
61 |
SUB_FILES= pkg-message |
61 |
SUB_LIST= QUICKSTART_PATH="${QUICKSTART_PATH}" |
|
|
62 |
|
62 |
|
63 |
OPTIONS_DEFINE= DOCS MODELCOMPILER PROFILER |
63 |
OPTIONS_DEFINE= DOCS MODELCOMPILER NOGPUJOBS PROFILER |
64 |
OPTIONS_DEFAULT= MODELCOMPILER |
64 |
OPTIONS_DEFAULT= MODELCOMPILER |
|
|
65 |
DOCS_SUB_LIST= QUICKSTART_PATH="${DOCSDIR}" |
66 |
DOCS_SUB_LIST_OFF= \ |
67 |
QUICKSTART_PATH="https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME}" |
65 |
MODELCOMPILER_DESC= Build/install modelcompiler tool |
68 |
MODELCOMPILER_DESC= Build/install modelcompiler tool |
66 |
MODELCOMPILER_PLIST_FILES= bin/${PORTNAME}-modelcompiler |
69 |
MODELCOMPILER_PLIST_FILES= bin/${PORTNAME}-modelcompiler |
|
|
70 |
NOGPUJOBS_DESC= Disable EnableGPUJobs for config.ini by default |
67 |
PROFILER_DESC= Build with internal profiler |
71 |
PROFILER_DESC= Build with internal profiler |
68 |
PROFILER_CONFIGURE_ON= --enable-profiler |
72 |
PROFILER_CONFIGURE_ON= --enable-profiler |
69 |
|
73 |
|
70 |
.include <bsd.port.options.mk> |
74 |
.include <bsd.port.pre.mk> |
71 |
|
75 |
|
72 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054 |
76 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054 |
73 |
USE_GCC= yes |
77 |
USE_GCC= yes |
Lines 76-104
Link Here
|
76 |
CPPFLAGS+= -I${LOCALBASE}/include |
80 |
CPPFLAGS+= -I${LOCALBASE}/include |
77 |
.endif |
81 |
.endif |
78 |
|
82 |
|
79 |
.if ${PORT_OPTIONS:MDOCS} |
|
|
80 |
QUICKSTART_PATH= ${DOCSDIR} |
81 |
.else |
82 |
QUICKSTART_PATH= \ |
83 |
https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${GH_TAGNAME} |
84 |
.endif |
85 |
|
86 |
post-patch: .SILENT |
83 |
post-patch: .SILENT |
87 |
${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
84 |
${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
88 |
${WRKSRC}/configure.ac |
85 |
${WRKSRC}/configure.ac |
89 |
${REINPLACE_CMD} -e 's/std:://g' \ |
86 |
${REINPLACE_CMD} -e 's/std:://g' \ |
90 |
${WRKSRC}/src/Orbit.cpp |
87 |
${WRKSRC}/src/Orbit.cpp |
91 |
${REINPLACE_CMD} -e 's/std::to_string/to_string/g' \ |
88 |
${REINPLACE_CMD} -e 's/std::to_string/to_string/g' \ |
|
|
89 |
${WRKSRC}/src/graphics/opengl/GenGasGiantColourMaterial.cpp \ |
92 |
${WRKSRC}/src/graphics/opengl/RendererGL.cpp |
90 |
${WRKSRC}/src/graphics/opengl/RendererGL.cpp |
93 |
|
91 |
|
94 |
post-patch-MODELCOMPILER-off: .SILENT |
92 |
post-patch-MODELCOMPILER-off: .SILENT |
95 |
${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ |
93 |
${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ |
96 |
${WRKSRC}/src/Makefile.am |
94 |
${WRKSRC}/src/Makefile.am |
97 |
|
95 |
|
|
|
96 |
post-patch-NOGPUJOBS-on: .SILENT |
97 |
# Revert 41272a856d9072404efbfdb10f0e3c9e4f96bb4d commit, in case of |
98 |
# GL_OUT_OF_MEMORY OpenGL error, when turning to gas giant planet |
99 |
${REINPLACE_CMD} -e '/EnableGPUJobs/s|1|0|' \ |
100 |
${WRKSRC}/src/GameConfig.cpp |
101 |
|
98 |
post-patch-PROFILER-off: .SILENT |
102 |
post-patch-PROFILER-off: .SILENT |
99 |
${REINPLACE_CMD} -e '/^SUBDIRS/s/ profiler//' \ |
103 |
${REINPLACE_CMD} -e '/^SUBDIRS/s/ profiler//' \ |
100 |
${WRKSRC}/contrib/Makefile.am |
104 |
${WRKSRC}/contrib/Makefile.am |
101 |
${REINPLACE_CMD} -i '.p.bak' -e '/libjson.a/s| \\|| ; /libprofiler.a/d' \ |
105 |
${REINPLACE_CMD} -i '.p.bak' -e \ |
|
|
106 |
'/libprofiler.a/d; $$!N; /libprofiler.a$$/s| \\||; P; D' \ |
102 |
${WRKSRC}/src/Makefile.am |
107 |
${WRKSRC}/src/Makefile.am |
103 |
${REINPLACE_CMD} -i '.p.bak' -e '/contrib\/profiler/d' \ |
108 |
${REINPLACE_CMD} -i '.p.bak' -e '/contrib\/profiler/d' \ |
104 |
${WRKSRC}/configure.ac |
109 |
${WRKSRC}/configure.ac |
Lines 114-117
Link Here
|
114 |
${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler \ |
119 |
${MV} ${STAGEDIR}${PREFIX}/bin/modelcompiler \ |
115 |
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler |
120 |
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-modelcompiler |
116 |
|
121 |
|
117 |
.include <bsd.port.mk> |
122 |
.include <bsd.port.post.mk> |