aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/xmame/files/patch-ac
blob: d8f0f0590141ad98c39e6c8b9f81db7afeb75046 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- src/unix/unix.mak.orig  Sat Mar 24 02:33:38 2001
+++ src/unix/unix.mak   Mon Apr  2 12:32:36 2001
@@ -46,18 +46,18 @@
 LIBS.x11        = $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext 
 LIBS.svgalib    = $(X11LIB) -lvga -lvgagl
 LIBS.ggi        = $(X11LIB) -lggi
-LIBS.xgl        = $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext $(GLLIBS) -ljpeg
+LIBS.xgl        = $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext $(GLLIBS) -L/usr/local/lib -ljpeg $(PTHREAD_LIBS)
 LIBS.xfx        = $(X11LIB) $(JOY_X11_LIBS) -lX11 -lXext -lglide2x
 LIBS.svgafx     = $(X11LIB) -lvga -lvgagl -lglide2x
 LIBS.openstep  = -framework AppKit
-LIBS.SDL   = -ldl -lSDL -lpthread -D_REENTRANT
+LIBS.SDL   = `$(SDL_CONFIG) --libs`
 LIBS.photon2   = -L/usr/lib -lph -lphrender
 
 CFLAGS.x11      = $(X11INC) $(JOY_X11_CFLAGS)
-CFLAGS.xgl      = $(X11INC) $(JOY_X11_CFLAGS)
+CFLAGS.xgl      = $(X11INC) $(JOY_X11_CFLAGS) -I/usr/local/include $(PTHREAD_CFLAGS)
 CFLAGS.xfx      = $(X11INC) $(JOY_X11_CFLAGS) -I/usr/include/glide
 CFLAGS.svgafx   = -I/usr/include/glide
-CFLAGS.SDL      = -D_REENTRANT
+CFLAGS.SDL      = `$(SDL_CONFIG) --cflags`
 CFLAGS.photon2 =
 
 INST.x11        = doinstall
@@ -317,7 +317,7 @@
    
 doc/x$(TARGET)rc.dist: all src/unix/xmamerc-keybinding-notes.txt
    ./x$(TARGET).$(DISPLAY_METHOD) -noloadconfig -showconfig | \
-    grep -v loadconfig > doc/x$(TARGET)rc.dist
+    grep -v loadconfig | tr "\033" \# > doc/x$(TARGET)rc.dist
    cat src/unix/xmamerc-keybinding-notes.txt >> doc/x$(TARGET)rc.dist
    
 doc/gamelist.$(TARGET): all
@@ -326,7 +326,8 @@
 
 doc/x$(TARGET).6: all src/unix/xmame.6-1 src/unix/xmame.6-3
    cat src/unix/xmame.6-1 > doc/x$(TARGET).6
-   ./x$(TARGET).$(DISPLAY_METHOD) -manhelp >> doc/x$(TARGET).6
+   ./x$(TARGET).$(DISPLAY_METHOD) -noloadconfig -manhelp | \
+    tr "\033" \# >> doc/x$(TARGET).6
    cat src/unix/xmame.6-3 >> doc/x$(TARGET).6
 
 install: $(INST.$(DISPLAY_METHOD)) install-man