svn commit: r475503 - head/games/ultimatestunts
Tobias Kortkamp
tobik at FreeBSD.org
Sat Jul 28 07:16:32 UTC 2018
Author: tobik
Date: Sat Jul 28 07:16:31 2018
New Revision: 475503
URL: https://svnweb.freebsd.org/changeset/ports/475503
Log:
games/ultimatestunts: Fix build with Clang 6 and lld
gamerenderer.cpp:81:30: error: non-constant-expression cannot be narrowed from type 'double' to 'GLfloat' (aka 'float') in initializer list [-Wc++11-narrowing]
GLfloat specular_color[] = {3.0*lightCol.x, 3.0*lightCol.y, 3.0*lightCol.z, 1.0};
^~~~~~~~~~~~~~
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/ultimatestunts-0.7.7.1_4.log
- Fix bad absolute symlink
- Mark as LLD_UNSAFE because of audio/openal-soft dependency [1]
PR: 226980 [1]
Modified:
head/games/ultimatestunts/Makefile
Modified: head/games/ultimatestunts/Makefile
==============================================================================
--- head/games/ultimatestunts/Makefile Sat Jul 28 07:08:24 2018 (r475502)
+++ head/games/ultimatestunts/Makefile Sat Jul 28 07:16:31 2018 (r475503)
@@ -3,7 +3,7 @@
PORTNAME= ultimatestunts
PORTVERSION= 0.7.7.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/sourcecode \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
@@ -19,13 +19,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
-USES= gettext openal:al,alut pkgconfig
+USES= compiler gettext openal:al,alut pkgconfig
USE_GL= gl glu
USE_SDL= sdl image
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-openal
MAKE_JOBS_UNSAFE= yes
+LLD_UNSAFE= yes
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
CPPFLAGS+= $$(pkgconf --cflags-only-I sdl)
LDFLAGS+= $$(pkgconf --libs-only-L sdl)
@@ -66,7 +69,7 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
- ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${RLN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
More information about the svn-ports-all
mailing list