1
Author: Emmanuel Kasper <emmanuel@libera.cc>, Cesare Falco <cesare.falco@gmail.com>
2
Description: Add new makefile switch to allow the use of jpeg system headers
3
Forwarded: http://forums.bannister.org/ubbthreads.php?ubb=showflat&Number=76614&page=3
6
===================================================================
7
--- mame.orig/makefile 2012-02-26 22:21:48.000000000 +0100
8
+++ mame/makefile 2012-02-26 22:22:36.000000000 +0100
10
# uncomment next line to include the symbols
13
+# uncomment next line to build jpeglib as part of MAME build
16
# specify symbols level or leave commented to use the default
17
# (default is SYMLEVEL = 2 normally; use 1 if you only need backtrace)
20
# add formats emulation library
21
FORMATS_LIB = $(OBJ)/libformats.a
23
+# add jpeglib image library
24
+ifeq ($(BUILD_JPEGLIB),1)
25
+INCPATH += -I$(SRC)/lib/libjpeg
26
JPEG_LIB = $(OBJ)/libjpeg.a
32
#-------------------------------------------------
33
# 'default' target needs to go here, before the
34
Index: mame/src/mame/drivers/sliver.c
35
===================================================================
36
--- mame.orig/src/mame/drivers/sliver.c 2012-02-26 22:21:48.000000000 +0100
37
+++ mame/src/mame/drivers/sliver.c 2012-02-26 22:21:53.000000000 +0100
39
#include "sound/okim6295.h"
40
#include "cpu/mcs51/mcs51.h"
41
#include "video/ramdac.h"
42
-#include "../../lib/libjpeg/jpeglib.h"
46
#define FIFO_SIZE 1024
47
Index: mame/src/osd/osdcomm.h
48
===================================================================
49
--- mame.orig/src/osd/osdcomm.h 2012-02-26 22:21:48.000000000 +0100
50
+++ mame/src/osd/osdcomm.h 2012-02-26 22:21:53.000000000 +0100
55
+/* This should prevent libjpeg of typedef'ing INT32 */
61
/***************************************************************************