Fri Apr 29 08:30:50 2016 UTC ()
Updated mame to 0.173.

It's the end of another month, and time for a new MAME release.
This time there are more improvements for capabilities we have added
in previous versions.

MAME now includes ports of some popular shaders for the BGFX renderer,
including the EAGLE, HQx and xBR scaling effects. Please be aware
that the BGFX renderer is still a work in progress, and you may
experience some stability issues when using it.

This release introduces a new cheat engine based on the Lua scripting
language. This opens the door to exciting new possibilities. One
of the most significant improvements is better support for systems
with banked memory, including many 8-bit home computers like the
Apple II family.

MAME's archive file handling has been improved in a number of ways.
ZIP64 format is now supported, allowing MAME to archives over 4GiB
in size. This mean that, for example, large flyer collections don't
need to be unzipped for use with the internal UI. 7zip support has
been updated for the latest 7zip release, including new archive
features and many bug fixes. We've also fixed a number of bugs in
the internal file browser.

Of course this release also includes many other improvements from
the MAME team and external contributors.


(wiz)
diff -r1.55 -r1.56 pkgsrc/emulators/mame/Makefile
diff -r1.12 -r1.13 pkgsrc/emulators/mame/PLIST
diff -r1.50 -r1.51 pkgsrc/emulators/mame/distinfo
diff -r1.2 -r1.3 pkgsrc/emulators/mame/patches/patch-scripts_genie.lua

cvs diff -r1.55 -r1.56 pkgsrc/emulators/mame/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/mame/Makefile 2016/04/14 21:47:07 1.55
+++ pkgsrc/emulators/mame/Makefile 2016/04/29 08:30:50 1.56
@@ -1,29 +1,30 @@ @@ -1,29 +1,30 @@
1# $NetBSD: Makefile,v 1.55 2016/04/14 21:47:07 wiz Exp $ 1# $NetBSD: Makefile,v 1.56 2016/04/29 08:30:50 wiz Exp $
2 2
3DISTNAME= mame-0.172 3DISTNAME= mame-0.173
4CATEGORIES= emulators 4CATEGORIES= emulators
5MASTER_SITES= ${MASTER_SITE_GITHUB:=mamedev/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=mamedev/}
6GITHUB_TAG= ${DISTNAME:S/-//S/.//} 6GITHUB_TAG= ${DISTNAME:S/-//S/.//}
7 7
8MAINTAINER= wiz@NetBSD.org 8MAINTAINER= wiz@NetBSD.org
9HOMEPAGE= http://www.mamedev.org/ 9HOMEPAGE= http://www.mamedev.org/
10COMMENT= Multiple Arcade Machine Emulator 10COMMENT= Multiple Arcade Machine Emulator
11LICENSE= modified-bsd AND gnu-gpl-v2 11LICENSE= modified-bsd AND gnu-gpl-v2
12 12
13DOCDIR= share/doc/mame 13DOCDIR= share/doc/mame
14SHAREDIR= share/mame 14SHAREDIR= share/mame
15INSTALLATION_DIRS= bin ${DOCDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man6 15INSTALLATION_DIRS= bin ${DOCDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man6
16INSTALLATION_DIRS+= ${SHAREDIR}/artwork ${SHAREDIR}/hash 16INSTALLATION_DIRS+= ${SHAREDIR}/artwork/bgfx/border_blur
 17INSTALLATION_DIRS+= ${SHAREDIR}/artwork/bgfx/chains ${SHAREDIR}/hash
17 18
18RESTRICTED= selling is not allowed 19RESTRICTED= selling is not allowed
19NO_SRC_ON_CDROM= ${RESTRICTED} 20NO_SRC_ON_CDROM= ${RESTRICTED}
20NO_BIN_ON_CDROM= ${RESTRICTED} 21NO_BIN_ON_CDROM= ${RESTRICTED}
21 22
22DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf 23DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf
23 24
24USE_LANGUAGES= c99 c++ 25USE_LANGUAGES= c99 c++
25# 4.9 is enough, but doesn't build with SSP support on NetBSD 26# 4.9 is enough, but doesn't build with SSP support on NetBSD
26GCC_REQD= 5.3 27GCC_REQD= 5.3
27USE_TOOLS+= bsdtar gmake pkg-config 28USE_TOOLS+= bsdtar gmake pkg-config
28UNLIMIT_RESOURCES+= datasize 29UNLIMIT_RESOURCES+= datasize
29MAKE_FILE= makefile 30MAKE_FILE= makefile
@@ -96,33 +97,36 @@ PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # @@ -96,33 +97,36 @@ PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 #
96 97
97post-extract: 98post-extract:
98 # will be chosen in preference to /usr/include/signal.h, but does not provide kill() 99 # will be chosen in preference to /usr/include/signal.h, but does not provide kill()
99 ${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/signal.h 100 ${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/signal.h
100 101
101pre-build: 102pre-build:
102 # problems with mame-specific png.h 103 # problems with mame-specific png.h
103 ${RM} -f ${WRKDIR}/.buildlink/include/png* 104 ${RM} -f ${WRKDIR}/.buildlink/include/png*
104 105
105do-install: 106do-install:
106 ${INSTALL_PROGRAM} ${WRKSRC}/mame64 ${DESTDIR}${PREFIX}/bin/mame 107 ${INSTALL_PROGRAM} ${WRKSRC}/mame64 ${DESTDIR}${PREFIX}/bin/mame
107 set -e; \ 108 set -e; \
108 for prg in castool chdman floptool imgtool jedutil ldresample ldverify \ 109 for prg in castool chdman floptool imgtool jedutil ldresample ldverify \
109 nltool pngcmp regrep romcmp split src2html srcclean testkeys unidasm; \ 110 nltool nlwav pngcmp regrep romcmp split src2html srcclean unidasm; \
110 do \ 111 do \
111 ${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin; \ 112 ${INSTALL_PROGRAM} ${WRKSRC}/"$$prg" ${DESTDIR}${PREFIX}/bin; \
112 done 113 done
113 ${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 114 ${INSTALL_DATA} ${WRKSRC}/docs/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
114 ${INSTALL_DATA} ${WRKSRC}/src/osd/sdl/man/*.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6 115 ${INSTALL_DATA} ${WRKSRC}/docs/man/*.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
115 ${INSTALL_DATA} ${WRKSRC}/artwork/* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork 116 ${INSTALL_DATA} ${WRKSRC}/artwork/LICENSE ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork
 117 ${INSTALL_DATA} ${WRKSRC}/artwork/*.* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork
 118 ${INSTALL_DATA} ${WRKSRC}/artwork/bgfx/border_blur/* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork/bgfx/border_blur
 119 ${INSTALL_DATA} ${WRKSRC}/artwork/bgfx/chains/* ${DESTDIR}${PREFIX}/${SHAREDIR}/artwork/bgfx/chains
116 ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/${DOCDIR} 120 ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/${DOCDIR}
117 ${INSTALL_DATA} ${WRKSRC}/hash/* ${DESTDIR}${PREFIX}/${SHAREDIR}/hash 121 ${INSTALL_DATA} ${WRKSRC}/hash/* ${DESTDIR}${PREFIX}/${SHAREDIR}/hash
118 122
119.include "../../lang/python/application.mk" 123.include "../../lang/python/application.mk"
120.include "../../audio/flac/buildlink3.mk" 124.include "../../audio/flac/buildlink3.mk"
121.include "../../devel/GConf/buildlink3.mk" 125.include "../../devel/GConf/buildlink3.mk"
122.include "../../devel/SDL2/buildlink3.mk" 126.include "../../devel/SDL2/buildlink3.mk"
123.include "../../devel/zlib/buildlink3.mk" 127.include "../../devel/zlib/buildlink3.mk"
124.include "../../databases/sqlite3/buildlink3.mk" 128.include "../../databases/sqlite3/buildlink3.mk"
125.include "../../fonts/SDL2_ttf/buildlink3.mk" 129.include "../../fonts/SDL2_ttf/buildlink3.mk"
126.include "../../mk/jpeg.buildlink3.mk" 130.include "../../mk/jpeg.buildlink3.mk"
127.include "../../textproc/expat/buildlink3.mk" 131.include "../../textproc/expat/buildlink3.mk"
128.include "../../x11/libXinerama/buildlink3.mk" 132.include "../../x11/libXinerama/buildlink3.mk"

cvs diff -r1.12 -r1.13 pkgsrc/emulators/mame/PLIST (expand / switch to unified diff)

--- pkgsrc/emulators/mame/PLIST 2016/04/14 21:47:07 1.12
+++ pkgsrc/emulators/mame/PLIST 2016/04/29 08:30:50 1.13
@@ -1,30 +1,30 @@ @@ -1,30 +1,30 @@
1@comment $NetBSD: PLIST,v 1.12 2016/04/14 21:47:07 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.13 2016/04/29 08:30:50 wiz Exp $
2bin/castool 2bin/castool
3bin/chdman 3bin/chdman
4bin/floptool 4bin/floptool
5bin/imgtool 5bin/imgtool
6bin/jedutil 6bin/jedutil
7bin/ldresample 7bin/ldresample
8bin/ldverify 8bin/ldverify
9bin/mame 9bin/mame
10bin/nltool 10bin/nltool
 11bin/nlwav
11bin/pngcmp 12bin/pngcmp
12bin/regrep 13bin/regrep
13bin/romcmp 14bin/romcmp
14bin/split 15bin/split
15bin/src2html 16bin/src2html
16bin/srcclean 17bin/srcclean
17bin/testkeys 
18bin/unidasm 18bin/unidasm
19man/man1/castool.1 19man/man1/castool.1
20man/man1/chdman.1 20man/man1/chdman.1
21man/man1/floptool.1 21man/man1/floptool.1
22man/man1/imgtool.1 22man/man1/imgtool.1
23man/man1/jedutil.1 23man/man1/jedutil.1
24man/man1/ldplayer.1 24man/man1/ldplayer.1
25man/man1/ldresample.1 25man/man1/ldresample.1
26man/man1/ldverify.1 26man/man1/ldverify.1
27man/man1/romcmp.1 27man/man1/romcmp.1
28man/man1/testkeys.1 28man/man1/testkeys.1
29man/man6/mame.6 29man/man6/mame.6
30man/man6/mess.6 30man/man6/mess.6
@@ -32,26 +32,30 @@ share/doc/mame/SDL.txt @@ -32,26 +32,30 @@ share/doc/mame/SDL.txt
32share/doc/mame/config.txt 32share/doc/mame/config.txt
33share/doc/mame/emscripten.txt 33share/doc/mame/emscripten.txt
34share/doc/mame/floppy.txt 34share/doc/mame/floppy.txt
35share/doc/mame/hlsl.txt 35share/doc/mame/hlsl.txt
36share/doc/mame/imgtool.txt 36share/doc/mame/imgtool.txt
37share/doc/mame/m6502.txt 37share/doc/mame/m6502.txt
38share/doc/mame/mame.txt 38share/doc/mame/mame.txt
39share/doc/mame/newvideo.txt 39share/doc/mame/newvideo.txt
40share/doc/mame/nscsi.txt 40share/doc/mame/nscsi.txt
41share/doc/mame/windows.txt 41share/doc/mame/windows.txt
42share/mame/artwork/LICENSE 42share/mame/artwork/LICENSE
43share/mame/artwork/README.md 43share/mame/artwork/README.md
44share/mame/artwork/aperture-grille.png 44share/mame/artwork/aperture-grille.png
 45share/mame/artwork/bgfx/border_blur/default.lay
 46share/mame/artwork/bgfx/chains/hq2x.png
 47share/mame/artwork/bgfx/chains/hq3x.png
 48share/mame/artwork/bgfx/chains/hq4x.png
45share/mame/artwork/monochrome-chessboard.png 49share/mame/artwork/monochrome-chessboard.png
46share/mame/artwork/monochrome-matrix.png 50share/mame/artwork/monochrome-matrix.png
47share/mame/artwork/shadow-mask.png 51share/mame/artwork/shadow-mask.png
48share/mame/artwork/slot-mask-aligned.png 52share/mame/artwork/slot-mask-aligned.png
49share/mame/artwork/slot-mask.png 53share/mame/artwork/slot-mask.png
50share/mame/artwork/white.png 54share/mame/artwork/white.png
51share/mame/hash/32x.xml 55share/mame/hash/32x.xml
52share/mame/hash/3do_m2.xml 56share/mame/hash/3do_m2.xml
53share/mame/hash/LICENSE 57share/mame/hash/LICENSE
54share/mame/hash/README.md 58share/mame/hash/README.md
55share/mame/hash/a2600.xml 59share/mame/hash/a2600.xml
56share/mame/hash/a2600_cass.xml 60share/mame/hash/a2600_cass.xml
57share/mame/hash/a5200.hsi 61share/mame/hash/a5200.hsi
@@ -311,26 +315,27 @@ share/mame/hash/p500_flop.xml @@ -311,26 +315,27 @@ share/mame/hash/p500_flop.xml
311share/mame/hash/partner_cass.xml 315share/mame/hash/partner_cass.xml
312share/mame/hash/partner_flop.xml 316share/mame/hash/partner_flop.xml
313share/mame/hash/pasogo.xml 317share/mame/hash/pasogo.xml
314share/mame/hash/pb2000c.xml 318share/mame/hash/pb2000c.xml
315share/mame/hash/pc1000.xml 319share/mame/hash/pc1000.xml
316share/mame/hash/pc1512.xml 320share/mame/hash/pc1512.xml
317share/mame/hash/pc1640.xml 321share/mame/hash/pc1640.xml
318share/mame/hash/pc8201.xml 322share/mame/hash/pc8201.xml
319share/mame/hash/pc8801_cass.xml 323share/mame/hash/pc8801_cass.xml
320share/mame/hash/pc8801_flop.xml 324share/mame/hash/pc8801_flop.xml
321share/mame/hash/pc88va.xml 325share/mame/hash/pc88va.xml
322share/mame/hash/pc98.xml 326share/mame/hash/pc98.xml
323share/mame/hash/pce.xml 327share/mame/hash/pce.xml
 328share/mame/hash/pce_tourvision.xml
324share/mame/hash/pcecd.xml 329share/mame/hash/pcecd.xml
325share/mame/hash/pcw.xml 330share/mame/hash/pcw.xml
326share/mame/hash/pcw16.xml 331share/mame/hash/pcw16.xml
327share/mame/hash/pecom_cass.xml 332share/mame/hash/pecom_cass.xml
328share/mame/hash/pegasus_cart.xml 333share/mame/hash/pegasus_cart.xml
329share/mame/hash/pencil2.xml 334share/mame/hash/pencil2.xml
330share/mame/hash/pentagon_cass.xml 335share/mame/hash/pentagon_cass.xml
331share/mame/hash/pet_cass.xml 336share/mame/hash/pet_cass.xml
332share/mame/hash/pet_flop.xml 337share/mame/hash/pet_flop.xml
333share/mame/hash/pet_hdd.xml 338share/mame/hash/pet_hdd.xml
334share/mame/hash/pet_rom.xml 339share/mame/hash/pet_rom.xml
335share/mame/hash/pico.xml 340share/mame/hash/pico.xml
336share/mame/hash/pippin.xml 341share/mame/hash/pippin.xml

cvs diff -r1.50 -r1.51 pkgsrc/emulators/mame/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/mame/distinfo 2016/04/14 21:47:07 1.50
+++ pkgsrc/emulators/mame/distinfo 2016/04/29 08:30:50 1.51
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1$NetBSD: distinfo,v 1.50 2016/04/14 21:47:07 wiz Exp $ 1$NetBSD: distinfo,v 1.51 2016/04/29 08:30:50 wiz Exp $
2 2
3SHA1 (mame-0.172.tar.gz) = f6ea29f7880a05f8d835c538f4316bd4b0adad18 3SHA1 (mame-0.173.tar.gz) = 682035727ac201384d36a28c4ad0ca90011f321c
4RMD160 (mame-0.172.tar.gz) = b2cff1f9890091efec09ed774e20f7510747060b 4RMD160 (mame-0.173.tar.gz) = 5f093104d36976fa28ce345e18a5f63ad1b59169
5SHA512 (mame-0.172.tar.gz) = cf6f4a8da6c8e19ec81da5a79c6d2d0b9b6a687d5103e7010e83566a1eb24a829765c4964e2dbcbf7aa2ea6fe7f1f19faf9b4b0a9051e669bd0f33a8cd58a269 5SHA512 (mame-0.173.tar.gz) = 731e94af1cde80ce0d62a4ff65ed7b1de97ed0e84633396eb9ec6e3a10d5da0717424f277fcbde5cd64a622a669ea7776047837d8f86f8baf6f077916eb982ee
6Size (mame-0.172.tar.gz) = 97300980 bytes 6Size (mame-0.173.tar.gz) = 98395748 bytes
7SHA1 (patch-3rdparty_bgfx_examples_common_font_font__manager.cpp) = e39b2dff553505531adb5f0a31b0a22306b8e2e4 7SHA1 (patch-3rdparty_bgfx_examples_common_font_font__manager.cpp) = e39b2dff553505531adb5f0a31b0a22306b8e2e4
8SHA1 (patch-3rdparty_bx_include_bx_thread.h) = 779c8b750a3ae5d50d12c6430678ada64a4b82ed 8SHA1 (patch-3rdparty_bx_include_bx_thread.h) = 779c8b750a3ae5d50d12c6430678ada64a4b82ed
9SHA1 (patch-3rdparty_libuv_src_unix_netbsd.c) = 63d2378c19cbbcb71d7540e088c3bdf5940f4dc6 9SHA1 (patch-3rdparty_libuv_src_unix_netbsd.c) = 63d2378c19cbbcb71d7540e088c3bdf5940f4dc6
10SHA1 (patch-makefile) = 0be740e7d61cdaa66c1c415f84344b37da267a45 10SHA1 (patch-makefile) = 0be740e7d61cdaa66c1c415f84344b37da267a45
11SHA1 (patch-scripts_genie.lua) = 8bcb97215fcc379b34f893d53843533630d0f26e 11SHA1 (patch-scripts_genie.lua) = f0b6b9fe00b6f572089fc2a7495fe1fd3c86ae4e
12SHA1 (patch-scripts_src_3rdparty.lua) = 306917af65da601667ffc9ffaf7b8092a2d03ef7 12SHA1 (patch-scripts_src_3rdparty.lua) = 306917af65da601667ffc9ffaf7b8092a2d03ef7

cvs diff -r1.2 -r1.3 pkgsrc/emulators/mame/patches/Attic/patch-scripts_genie.lua (expand / switch to unified diff)

--- pkgsrc/emulators/mame/patches/Attic/patch-scripts_genie.lua 2016/04/14 21:47:07 1.2
+++ pkgsrc/emulators/mame/patches/Attic/patch-scripts_genie.lua 2016/04/29 08:30:50 1.3
@@ -1,67 +1,88 @@ @@ -1,67 +1,88 @@
1$NetBSD: patch-scripts_genie.lua,v 1.2 2016/04/14 21:47:07 wiz Exp $ 1$NetBSD: patch-scripts_genie.lua,v 1.3 2016/04/29 08:30:50 wiz Exp $
2 2
3Detect clang correctly. 3Precompilation is broken on NetBSD with gcc-5.3.
4Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD. 4Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
 5Detect clang correctly.
5 6
6--- scripts/genie.lua.orig 2016-03-30 09:03:03.000000000 +0000 7--- scripts/genie.lua.orig 2016-04-27 06:13:59.000000000 +0000
7+++ scripts/genie.lua 8+++ scripts/genie.lua
8@@ -672,22 +672,22 @@ local version = str_to_version(_OPTIONS[ 9@@ -65,11 +65,6 @@ function layoutbuildtask(_folder, _name)
 10 end
 11
 12 function precompiledheaders()
 13- if _OPTIONS["precompile"]==nil or (_OPTIONS["precompile"]~=nil and _OPTIONS["precompile"]=="1") then
 14- configuration { "not xcode4" }
 15- pchheader("emu.h")
 16- configuration { }
 17- end
 18 end
 19
 20 function addprojectflags()
 21@@ -692,22 +687,22 @@ local version = str_to_version(_OPTIONS[
9 if string.find(_OPTIONS["gcc"], "clang") and ((version < 30500) or (_OPTIONS["targetos"]=="macosx" and (version <= 60000))) then 22 if string.find(_OPTIONS["gcc"], "clang") and ((version < 30500) or (_OPTIONS["targetos"]=="macosx" and (version <= 60000))) then
10 buildoptions_cpp { 23 buildoptions_cpp {
11 "-x c++", 24 "-x c++",
12- "-std=c++1y", 25- "-std=c++1y",
13+ "-std=gnu++1y", 26+ "-std=gnu++1y",
14 } 27 }
15  28
16 buildoptions_objc { 29 buildoptions_objc {
17 "-x objective-c++", 30 "-x objective-c++",
18- "-std=c++1y", 31- "-std=c++1y",
19+ "-std=gnu++1y", 32+ "-std=gnu++1y",
20 } 33 }
21 else 34 else
22 buildoptions_cpp { 35 buildoptions_cpp {
23 "-x c++", 36 "-x c++",
24- "-std=c++14", 37- "-std=c++14",
25+ "-std=gnu++14", 38+ "-std=gnu++14",
26 } 39 }
27  40
28 buildoptions_objc { 41 buildoptions_objc {
29 "-x objective-c++", 42 "-x objective-c++",
30- "-std=c++14", 43- "-std=c++14",
31+ "-std=gnu++14", 44+ "-std=gnu++14",
32 } 45 }
33 end 46 end
34 -- this speeds it up a bit by piping between the preprocessor/compiler/assembler 47 -- this speeds it up a bit by piping between the preprocessor/compiler/assembler
35@@ -933,7 +933,17 @@ end 48@@ -950,7 +945,17 @@ end
36  49
37  50
38 local version = str_to_version(_OPTIONS["gcc_version"]) 51 local version = str_to_version(_OPTIONS["gcc_version"])
39- if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "pnacl") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then 52- if string.find(_OPTIONS["gcc"], "clang") or string.find(_OPTIONS["gcc"], "pnacl") or string.find(_OPTIONS["gcc"], "asmjs") or string.find(_OPTIONS["gcc"], "android") then
40+ if _OPTIONS["clang_version"] == "" then 53+ if _OPTIONS["clang_version"] == "" then
41+ if (version < 40900) then 54+ if (version < 40900) then
42+ print("GCC version 4.9 or later needed") 55+ print("GCC version 4.9 or later needed")
43+ os.exit(-1) 56+ os.exit(-1)
44+ end 57+ end
45+ buildoptions { 58+ buildoptions {
46+ "-Wno-unused-result", -- needed for fgets,fread on linux 59+ "-Wno-unused-result", -- needed for fgets,fread on linux
47+ -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) 60+ -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
48+ "-Wno-array-bounds", 61+ "-Wno-array-bounds",
49+ } 62+ }
50+ else 63+ else
51 if (version < 30400) then 64 if (version < 30400) then
52 print("Clang version 3.4 or later needed") 65 print("Clang version 3.4 or later needed")
53 os.exit(-1) 66 os.exit(-1)
54@@ -959,16 +969,6 @@ end 67@@ -963,7 +968,6 @@ end
 68 "-Wno-inline-new-delete",
 69 "-Wno-constant-logical-operand",
 70 "-Wno-deprecated-register",
 71- "-fdiagnostics-show-note-include-stack",
 72 }
 73 if (version >= 30500) then
 74 buildoptions {
 75@@ -977,16 +981,6 @@ end
55 "-Wno-tautological-undefined-compare", 76 "-Wno-tautological-undefined-compare",
56 } 77 }
57 end 78 end
58- else 79- else
59- if (version < 40900) then 80- if (version < 40900) then
60- print("GCC version 4.9 or later needed") 81- print("GCC version 4.9 or later needed")
61- os.exit(-1) 82- os.exit(-1)
62- end 83- end
63- buildoptions { 84- buildoptions {
64- "-Wno-unused-result", -- needed for fgets,fread on linux 85- "-Wno-unused-result", -- needed for fgets,fread on linux
65- -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds) 86- -- array bounds checking seems to be buggy in 4.8.1 (try it on video/stvvdp1.c and video/model1.c without -Wno-array-bounds)
66- "-Wno-array-bounds", 87- "-Wno-array-bounds",
67- } 88- }