games/ufoai: Fix build on -current.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-07-06 16:10:01 -04:00 committed by Willy Sudiarto Raharjo
parent 0b93d5c21b
commit 5c08643cc1

View file

@ -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" \