| @@ -1,40 +1,51 @@ | | | @@ -1,40 +1,51 @@ |
1 | # $NetBSD: Makefile,v 1.14 2020/05/23 09:12:57 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.15 2020/06/28 14:34:06 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= fs-uae-3.0.5 | | 3 | DISTNAME= fs-uae-3.0.5 |
4 | CATEGORIES= emulators | | 4 | CATEGORIES= emulators |
5 | MASTER_SITES= https://fs-uae.net/stable/${PKGVERSION_NOREV}/ | | 5 | MASTER_SITES= https://fs-uae.net/stable/${PKGVERSION_NOREV}/ |
6 | | | 6 | |
7 | MAINTAINER= adam@NetBSD.org | | 7 | MAINTAINER= adam@NetBSD.org |
8 | HOMEPAGE= https://fs-uae.net/ | | 8 | HOMEPAGE= https://fs-uae.net/ |
9 | COMMENT= FS-UAE Amiga Emulator | | 9 | COMMENT= FS-UAE Amiga Emulator |
10 | LICENSE= gnu-gpl-v2 | | 10 | LICENSE= gnu-gpl-v2 |
11 | | | 11 | |
12 | USE_LANGUAGES= c gnu++03 | | 12 | USE_LANGUAGES= c gnu++03 |
13 | USE_TOOLS+= msgfmt pkg-config zip | | 13 | USE_TOOLS+= msgfmt pkg-config zip |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
15 | CONFIGURE_ARGS+= --with-libmpeg2 | | 15 | CONFIGURE_ARGS+= --with-libmpeg2 |
16 | | | 16 | |
| | | 17 | .include "../../mk/bsd.prefs.mk" |
| | | 18 | |
| | | 19 | # See the configure script for the full conditions for whether |
| | | 20 | # the JIT is supported. |
| | | 21 | #error JIT is only supported on x86/x86-64 |
| | | 22 | #error no JIT on OpenBSD/FreeBSD right now |
| | | 23 | .if ${MACHINE_ARCH} != "i386" || \ |
| | | 24 | ${MACHINE_ARCH} != "x86_64" || \ |
| | | 25 | ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" |
| | | 26 | CONFIGURE_ARGS+= --disable-jit |
| | | 27 | .else |
17 | NOT_PAX_MPROTECT_SAFE+= bin/fs-uae | | 28 | NOT_PAX_MPROTECT_SAFE+= bin/fs-uae |
| | | 29 | .endif |
18 | | | 30 | |
19 | # src/debug.cpp: In function 'void debug()': | | 31 | # src/debug.cpp: In function 'void debug()': |
20 | # src/debug.cpp:5361:188: error: array subscript has type 'char' [-Werror=char-subscripts] | | 32 | # src/debug.cpp:5361:188: error: array subscript has type 'char' [-Werror=char-subscripts] |
21 | # ... processname[command[0]] == 0 ... | | 33 | # ... processname[command[0]] == 0 ... |
22 | # | | 34 | # |
23 | # command[0] is the length of a pascal-style string. | | 35 | # command[0] is the length of a pascal-style string. |
24 | # This may produce unexpected results with long process names. | | 36 | # This may produce unexpected results with long process names. |
25 | BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts | | 37 | BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts |
26 | | | 38 | |
27 | .include "../../mk/bsd.prefs.mk" | | | |
28 | .if ${OPSYS} == "Darwin" | | 39 | .if ${OPSYS} == "Darwin" |
29 | #OPENAL_CFLAGS="-framework OpenAL" | | 40 | #OPENAL_CFLAGS="-framework OpenAL" |
30 | .else | | 41 | .else |
31 | .include "../../audio/openal-soft/buildlink3.mk" | | 42 | .include "../../audio/openal-soft/buildlink3.mk" |
32 | .include "../../graphics/MesaLib/buildlink3.mk" | | 43 | .include "../../graphics/MesaLib/buildlink3.mk" |
33 | .include "../../graphics/glu/buildlink3.mk" | | 44 | .include "../../graphics/glu/buildlink3.mk" |
34 | .include "../../x11/libX11/buildlink3.mk" | | 45 | .include "../../x11/libX11/buildlink3.mk" |
35 | .include "../../x11/libXi/buildlink3.mk" | | 46 | .include "../../x11/libXi/buildlink3.mk" |
36 | .endif | | 47 | .endif |
37 | .include "../../devel/SDL2/buildlink3.mk" | | 48 | .include "../../devel/SDL2/buildlink3.mk" |
38 | .include "../../devel/glib2/buildlink3.mk" | | 49 | .include "../../devel/glib2/buildlink3.mk" |
39 | .include "../../devel/zlib/buildlink3.mk" | | 50 | .include "../../devel/zlib/buildlink3.mk" |
40 | .include "../../graphics/freetype2/buildlink3.mk" | | 51 | .include "../../graphics/freetype2/buildlink3.mk" |