|
Lines 36-47
Link Here
|
| 36 |
|
36 |
|
| 37 |
USE_GITHUB= yes |
37 |
USE_GITHUB= yes |
| 38 |
GH_ACCOUNT= pioneerspacesim |
38 |
GH_ACCOUNT= pioneerspacesim |
| 39 |
GH_TAGNAME= 20161028 |
39 |
GH_TAGNAME= 20161110 |
| 40 |
|
40 |
|
| 41 |
USES= autoreconf gmake pkgconfig |
41 |
USES= autoreconf compiler:c++11-lib gmake pkgconfig |
| 42 |
USE_GL= gl |
42 |
USE_GL= gl |
| 43 |
USE_SDL= image2 sdl2 |
43 |
USE_SDL= image2 sdl2 |
| 44 |
|
44 |
|
|
|
45 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 46 |
|
| 45 |
GNU_CONFIGURE= yes |
47 |
GNU_CONFIGURE= yes |
| 46 |
CONFIGURE_ENV= PIONEER_DATA_DIR="${DATADIR}/data" |
48 |
CONFIGURE_ENV= PIONEER_DATA_DIR="${DATADIR}/data" |
| 47 |
CONFIGURE_ARGS= --with-version="${GH_TAGNAME}" |
49 |
CONFIGURE_ARGS= --with-version="${GH_TAGNAME}" |
|
Lines 72-92
Link Here
|
| 72 |
|
74 |
|
| 73 |
.include <bsd.port.pre.mk> |
75 |
.include <bsd.port.pre.mk> |
| 74 |
|
76 |
|
| 75 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054 |
77 |
.if ${COMPILER_TYPE} == gcc |
| 76 |
USE_GCC= yes |
78 |
# Unhide std::to_string() for GCC (ports/193528) |
| 77 |
.else |
79 |
CXXFLAGS+= -D_GLIBCXX_USE_C99 |
| 78 |
USES+= compiler:c++11-lang |
|
|
| 79 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 80 |
.endif |
80 |
.endif |
| 81 |
|
81 |
|
| 82 |
post-patch: .SILENT |
82 |
post-patch: .SILENT |
| 83 |
${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
83 |
${REINPLACE_CMD} -e '/^OPTIMISE=/d' \ |
| 84 |
${WRKSRC}/configure.ac |
84 |
${WRKSRC}/configure.ac |
| 85 |
${REINPLACE_CMD} -e 's/std:://g' \ |
85 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000054 |
|
|
86 |
${REINPLACE_CMD} -e 's/std::acosh/acosh/g ; s/std::copysign/copysign/g' \ |
| 86 |
${WRKSRC}/src/Orbit.cpp |
87 |
${WRKSRC}/src/Orbit.cpp |
| 87 |
${REINPLACE_CMD} -e 's/std::to_string/to_string/g' \ |
88 |
.endif |
| 88 |
${WRKSRC}/src/graphics/opengl/GenGasGiantColourMaterial.cpp \ |
|
|
| 89 |
${WRKSRC}/src/graphics/opengl/RendererGL.cpp |
| 90 |
|
89 |
|
| 91 |
post-patch-MODELCOMPILER-off: .SILENT |
90 |
post-patch-MODELCOMPILER-off: .SILENT |
| 92 |
${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ |
91 |
${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \ |