~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to debian/patches/build_with_system_libjpeg.patch

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
4
 
 
5
 
Index: mame/makefile
6
 
===================================================================
7
 
--- mame.orig/makefile  2012-02-26 22:21:48.000000000 +0100
8
 
+++ mame/makefile       2012-02-26 22:22:36.000000000 +0100
9
 
@@ -214,6 +214,9 @@
10
 
 # uncomment next line to include the symbols
11
 
 # SYMBOLS = 1
12
 
 
13
 
+# uncomment next line to build jpeglib as part of MAME build
14
 
+BUILD_JPEGLIB = 1
15
 
+
16
 
 # specify symbols level or leave commented to use the default
17
 
 # (default is SYMLEVEL = 2 normally; use 1 if you only need backtrace)
18
 
 # SYMLEVEL = 2
19
 
@@ -628,7 +631,14 @@
20
 
 # add formats emulation library
21
 
 FORMATS_LIB = $(OBJ)/libformats.a
22
 
 
23
 
+# add jpeglib image library
24
 
+ifeq ($(BUILD_JPEGLIB),1)
25
 
+INCPATH += -I$(SRC)/lib/libjpeg
26
 
 JPEG_LIB = $(OBJ)/libjpeg.a
27
 
+else
28
 
+LIBS += -ljpeg
29
 
+JPEG_LIB =
30
 
+endif
31
 
 
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
38
 
@@ -67,7 +67,7 @@
39
 
 #include "sound/okim6295.h"
40
 
 #include "cpu/mcs51/mcs51.h"
41
 
 #include "video/ramdac.h"
42
 
-#include "../../lib/libjpeg/jpeglib.h"
43
 
+#include <jpeglib.h>
44
 
 
45
 
 
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
51
 
@@ -143,6 +143,10 @@
52
 
 
53
 
 #endif
54
 
 
55
 
+/* This should prevent libjpeg of typedef'ing INT32 */
56
 
+#ifndef XMD_H
57
 
+#define XMD_H
58
 
+#endif
59
 
 
60
 
 
61
 
 /***************************************************************************