diff --git a/games/ufoai/ufoai.SlackBuild b/games/ufoai/ufoai.SlackBuild index f7702a6a60..47acdd7c3b 100644 --- a/games/ufoai/ufoai.SlackBuild +++ b/games/ufoai/ufoai.SlackBuild @@ -15,6 +15,14 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20170706 bkw: +# - fix build on -current + +# 20151126 bkw: +# - fix build on systems that have SDL2 but not SDL2_ttf +# - add SDL2 environment variable +# - move binaries to /usr/games + # 20140826 bkw: # - took over maintenance # - update for 2.5 @@ -24,11 +32,6 @@ # - allow building the radiant editor. I have no idea if it's working # correctly, since I have no idea how to use it. -# 20151126 bkw: -# - fix build on systems that have SDL2 but not SDL2_ttf -# - add SDL2 environment variable -# - move binaries to /usr/games - PRGNAM=ufoai VERSION=${VERSION:-2.5} BUILD=${BUILD:-2} @@ -91,6 +94,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# 20170706 bkw: fix build with gcc7 +echo 'CXXFLAGS += -Wno-narrowing' >> build/flags.mk + [ "${SDL2:-no}" = "no" ] && EXTRAOPT="--disable-sdl2" CFLAGS="$SLKCFLAGS" \