3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- snes9x-sdl-1.39/unix/svga.cpp~compile 2003-10-28 10:08:18.000000000 +0100
7 +++ snes9x-sdl-1.39/unix/svga.cpp 2004-01-19 21:29:07.000000000 +0100
17 --- snes9x-sdl-1.39/unix/unix.cpp~compile 2003-10-28 22:09:02.000000000 +0100
18 +++ snes9x-sdl-1.39/unix/unix.cpp 2004-01-19 21:29:07.000000000 +0100
20 #include <sys/types.h>
28 --- /dev/null 1970-01-01 01:00:00.000000000 +0100
29 +++ snes9x-sdl-1.39/unzip/unzipP.h 2004-01-19 21:29:07.000000000 +0100
39 +/* compile with -Dlocal if your debugger can't find static symbols */
43 +#if !defined(unix) && !defined(CASESENSITIVITYDEFAULT_YES) && \
44 + !defined(CASESENSITIVITYDEFAULT_NO)
45 +#define CASESENSITIVITYDEFAULT_NO
50 +#define UNZ_BUFSIZE (16384)
53 +#ifndef UNZ_MAXFILENAMEINZIP
54 +#define UNZ_MAXFILENAMEINZIP (256)
58 +#define ALLOC(size) (malloc(size))
61 +#define TRYFREE(p) {if (p) free(p);}
64 +#define SIZECENTRALDIRITEM (0x2e)
65 +#define SIZEZIPLOCALHEADER (0x1e)
68 +/* I've found an old Unix (a SunOS 4.1.3_U1) without all SEEK_* defined.... */
82 +/* unz_file_info_interntal contain internal info about a file in zipfile */
83 +typedef struct unz_file_info_internal_s
85 + uLong offset_curfile; /* relative offset of local header 4
87 +} unz_file_info_internal;
91 + * file_in_zip_read_info_s contain internal information about a file in
92 + * zipfile, when reading and decompress it
96 + char *read_buffer;/* internal buffer for compressed data */
97 + z_stream stream; /* zLib stream structure for inflate */
99 + uLong pos_in_zipfile; /* position in byte on the zipfile,
101 + uLong stream_initialised; /* flag set if stream structure is
104 + uLong offset_local_extrafield; /* offset of the local extra
106 + uInt size_local_extrafield; /* size of the local extra
108 + uLong pos_local_extrafield; /* position in the local
109 + * extra field in read */
111 + uLong crc32; /* crc32 of all data uncompressed */
112 + uLong crc32_wait; /* crc32 we must obtain after decompress all */
113 + uLong rest_read_compressed; /* number of byte to be
115 + uLong rest_read_uncompressed; /* number of byte to be
116 + * obtained after decomp */
117 + FILE *file; /* io structore of the zipfile */
118 + uLong compression_method; /* compression method (0==store) */
119 + uLong byte_before_the_zipfile; /* byte before the zipfile,
121 +} file_in_zip_read_info_s;
125 + * unz_s contain internal information about the zipfile
129 + FILE *file; /* io structore of the zipfile */
130 + unz_global_info gi; /* public global information */
131 + uLong byte_before_the_zipfile; /* byte before the zipfile,
133 + uLong num_file; /* number of the current file in the zipfile */
134 + uLong pos_in_central_dir; /* pos of the current file in the
136 + uLong current_file_ok; /* flag about the usability of the
138 + uLong central_pos;/* position of the beginning of the central
141 + uLong size_central_dir; /* size of the central directory */
142 + uLong offset_central_dir; /* offset of start of central
143 + * directory with respect to the
144 + * starting disk number */
146 + unz_file_info cur_file_info; /* public info about the current file
148 + unz_file_info_internal cur_file_info_internal; /* private info about it */
149 + file_in_zip_read_info_s *pfile_in_zip_read; /* structure about the
150 + * current file if we are
151 + * decompressing it */
155 --- snes9x-sdl-1.39/Makefile~compile 2003-10-28 16:49:50.000000000 +0100
156 +++ snes9x-sdl-1.39/Makefile 2004-01-19 21:31:53.000000000 +0100
160 CPUDEFINES += -DUSE_THREADS
161 -EXTRALIBS += -lpthread -L/usr/local/lib -lcygipc
162 +EXTRALIBS += -lpthread -lcygipc
166 GLIDEOBJS = unix/glide.o
167 -GLIDEDEFINES = -DUSE_GLIDE -I/usr/include/glide
168 +GLIDEDEFINES = -DUSE_GLIDE
169 GLIDELIBS = -lglide2x
170 GLIDEDEPENDS=use_glide
171 GLIDENO_DEPENDS=no_glide
176 -INCLUDES=-I/usr/local/include
179 OPTIMISE= -D_ZAURUS -Os -ffast-math -fstrict-aliasing -fomit-frame-pointer -mcpu=strongarm1100 -mtune=strongarm1100
180 CCFLAGS = $(OPTIMISE) \
181 --I/opt/Qtopia/include/SDL \
190 .SUFFIXES: .o .cpp .c .cc .h .m .i .S .asm .obj
192 -LDLIBS = -L/opt/Qtopia/sharp/lib
198 $(RM) $(OPENGLNO_DEPENDS)
201 - $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(EXTRALIBS) -L/opt/QtPalmtop/lib/ -lSDL -lSDLmain $(LDLIBS) -lqpe -lqte -lpthread
202 + $(CCC) $(INCLUDES) -o $@ $(OBJECTS) $(EXTRALIBS) $(LDLIBS) -lqpe -lqte -lpthread
204 gsnes9x: $(OBJECTS) unix/x11.o unix/glide.o
205 $(CCC) $(INCLUDES) -o $@ $(OBJECTS) unix/x11.o unix/glide.o $(LDLIBS) $(GLIDELIBS) -lXext -lX11 -lXxf86dga -lXxf86vm $(EXTRALIBS) -lz -lm