| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-makefile,v 1.10 2015/02/28 11:58:53 wiz Exp $ | | 1 | $NetBSD: patch-makefile,v 1.11 2015/03/31 16:35:29 joerg Exp $ |
2 | | | 2 | |
3 | Link against pkgsrc versions of expat, zlib, flac, jpeg, and | | 3 | Link against pkgsrc versions of expat, zlib, flac, jpeg, and |
4 | sqlite3, and add appropriate linker search paths. | | 4 | sqlite3, and add appropriate linker search paths. |
5 | | | 5 | |
6 | --- makefile.orig 2015-02-28 10:39:06.000000000 +0000 | | 6 | --- makefile.orig 2015-02-28 10:39:06.000000000 +0000 |
7 | +++ makefile | | 7 | +++ makefile |
8 | @@ -227,19 +227,19 @@ endif | | 8 | @@ -227,19 +227,19 @@ endif |
9 | # BIGENDIAN = 1 | | 9 | # BIGENDIAN = 1 |
10 | | | 10 | |
11 | # uncomment next line to build expat as part of MAME build | | 11 | # uncomment next line to build expat as part of MAME build |
12 | -BUILD_EXPAT = 1 | | 12 | -BUILD_EXPAT = 1 |
13 | +#BUILD_EXPAT = 1 | | 13 | +#BUILD_EXPAT = 1 |
14 | | | 14 | |
| @@ -20,22 +20,31 @@ sqlite3, and add appropriate linker sear | | | @@ -20,22 +20,31 @@ sqlite3, and add appropriate linker sear |
20 | -BUILD_FLAC = 1 | | 20 | -BUILD_FLAC = 1 |
21 | +#BUILD_FLAC = 1 | | 21 | +#BUILD_FLAC = 1 |
22 | | | 22 | |
23 | # uncomment next line to build jpeglib as part of MAME build | | 23 | # uncomment next line to build jpeglib as part of MAME build |
24 | -BUILD_JPEGLIB = 1 | | 24 | -BUILD_JPEGLIB = 1 |
25 | +#BUILD_JPEGLIB = 1 | | 25 | +#BUILD_JPEGLIB = 1 |
26 | | | 26 | |
27 | # uncomment next line to build libsqlite3 as part of MAME/MESS build | | 27 | # uncomment next line to build libsqlite3 as part of MAME/MESS build |
28 | -BUILD_SQLITE3 = 1 | | 28 | -BUILD_SQLITE3 = 1 |
29 | +#BUILD_SQLITE3 = 1 | | 29 | +#BUILD_SQLITE3 = 1 |
30 | | | 30 | |
31 | # uncomment next line to build PortMidi as part of MAME/MESS build | | 31 | # uncomment next line to build PortMidi as part of MAME/MESS build |
32 | BUILD_MIDILIB = 1 | | 32 | BUILD_MIDILIB = 1 |
| | | 33 | @@ -527,7 +527,7 @@ CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $( |
| | | 34 | |
| | | 35 | # we compile C-only to C89 standard with GNU extensions |
| | | 36 | # we compile C++ code to C++98 standard with GNU extensions |
| | | 37 | -CONLYFLAGS += -std=gnu89 |
| | | 38 | +CONLYFLAGS += -std=gnu99 |
| | | 39 | ifdef CPP11 |
| | | 40 | CPPONLYFLAGS += -x c++ -std=gnu++11 |
| | | 41 | else |
33 | @@ -742,7 +742,7 @@ DRIVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARG | | 42 | @@ -742,7 +742,7 @@ DRIVLISTOBJ = $(OBJ)/$(TARGET)/$(SUBTARG |
34 | #------------------------------------------------- | | 43 | #------------------------------------------------- |
35 | | | 44 | |
36 | # start with an empty set of libs | | 45 | # start with an empty set of libs |
37 | -LIBS = | | 46 | -LIBS = |
38 | +LIBS = -Wl,-R${PREFIX}/lib -L${PREFIX}/lib | | 47 | +LIBS = -Wl,-R${PREFIX}/lib -L${PREFIX}/lib |
39 | | | 48 | |
40 | # add expat XML library | | 49 | # add expat XML library |
41 | ifeq ($(BUILD_EXPAT),1) | | 50 | ifeq ($(BUILD_EXPAT),1) |