summaryrefslogtreecommitdiff
path: root/games/ktamaga/files/patch-aa
blob: a3e578a93f6509f809a8d86fe0f2e427289aa979 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
*** Makefile~	Sun Nov 30 20:46:24 1997
--- Makefile	Mon Feb 15 21:44:29 1999
***************
*** 11,22 ****
  HAVE_KDE=1
  
! QTDIR	= /usr/lib/qt
! X11DIR	= /usr/X11
  
  # Needed only if you have KDE, otherwise leave it alone
! KDEDIR	= /opt/kde
  
  # Uncomment, if you need debug info in the prog.
! DEBUG_FL = -g
  
  # Binaries
--- 11,22 ----
  HAVE_KDE=1
  
! QTDIR	= $(X11BASE)
! X11DIR	= $(X11BASE)
  
  # Needed only if you have KDE, otherwise leave it alone
! KDEDIR	= $(PREFIX)
  
  # Uncomment, if you need debug info in the prog.
! #DEBUG_FL = -g
  
  # Binaries
***************
*** 24,28 ****
  SHELL   = /bin/sh
  CC	= gcc
! MOC	= /usr/bin/moc
  install = /usr/bin/install -c
  
--- 24,28 ----
  SHELL   = /bin/sh
  CC	= gcc
! MOC	= $(X11BASE)/bin/moc
  install = /usr/bin/install -c
  
***************
*** 31,35 ****
  X11LIBDIR	= $(X11DIR)/lib
  X11INCDIR	= $(X11DIR)/include
! QTINCDIR	= $(QTDIR)/include
  QTLIBDIR	= $(QTDIR)/lib
  KDEINCDIR	= $(KDEDIR)/include 
--- 31,35 ----
  X11LIBDIR	= $(X11DIR)/lib
  X11INCDIR	= $(X11DIR)/include
! QTINCDIR	= $(QTDIR)/include/X11/qt
  QTLIBDIR	= $(QTDIR)/lib
  KDEINCDIR	= $(KDEDIR)/include 
***************
*** 43,74 ****
  INSTALL_DIR_PRIVATE = $(install) -d -m 0700
  
- ifdef HAVE_KDE
  BINDIR = $(KDEDIR)/bin
  DATADIR = $(KDEDIR)/share/apps/ktamaga
  HELPDIR = $(KDEDIR)/share/doc/HTML/default/ktamaga
- else
- 
- # If you compile the X11-only (non-KDE) version see these:
- BINDIR	= /usr/X11/bin
- # the DATADIR is still hardcoded in tamaga.h, so take care if you change it
- DATADIR	= /usr/lib/X11/tamaga
- HELPDIR = /usr/doc/tamaga
- endif
  
  ###########################################################
  
- ifdef HAVE_KDE
  KINC	= -I $(KDEINCDIR)
  KLIB	= -L $(KDELIBDIR) -lkdecore -lkdeui -lXext
  KDEF	= -DUSEKDE
- endif
  
  INCLUDES	= -I $(QTINCDIR) -I $(X11INCDIR) $(KINC)
! LIBS		= -L $(X11LIBDIR) $(KLIB) -lqt -lm
  DEFINES		= -DSTDC_HEADERS $(KDEF)
  #DEFINES		= -DHAVE_CONFIG_H $(KDEF)
  # maybe -DSTDC_HEADERS needed instead of -DHAVE_CONFIG_H
  
! CFLAGS	= $(DEBUG_FL) -O2 -fno-strength-reduce -Wall -W $(INCLUDES) $(DEFINES)
  LFLAGS  = $(DEBUG_FL) $(LIBS)
  
--- 43,63 ----
  INSTALL_DIR_PRIVATE = $(install) -d -m 0700
  
  BINDIR = $(KDEDIR)/bin
  DATADIR = $(KDEDIR)/share/apps/ktamaga
  HELPDIR = $(KDEDIR)/share/doc/HTML/default/ktamaga
  
  ###########################################################
  
  KINC	= -I $(KDEINCDIR)
  KLIB	= -L $(KDELIBDIR) -lkdecore -lkdeui -lXext
  KDEF	= -DUSEKDE
  
  INCLUDES	= -I $(QTINCDIR) -I $(X11INCDIR) $(KINC)
! LIBS		= -L $(X11LIBDIR) $(KLIB) -lqt -lm -lstdc++
  DEFINES		= -DSTDC_HEADERS $(KDEF)
  #DEFINES		= -DHAVE_CONFIG_H $(KDEF)
  # maybe -DSTDC_HEADERS needed instead of -DHAVE_CONFIG_H
  
! CFLAGS	= $(DEBUG_FL) $(INCLUDES) $(DEFINES) -DX11BASE=\"$(X11BASE)\" -DKDEDIR=\"$(KDEDIR)\"
  LFLAGS  = $(DEBUG_FL) $(LIBS)
  
***************
*** 84,92 ****
  SRCMETA =	mlwin.cpp mconf.cpp mconfData.cpp mtlcd.cpp
  OBJMETA =	mlwin.o mconf.o mconfData.o mtlcd.o
- ifdef HAVE_KDE
  TARGET	=	ktamaga
- else
- TARGET	=	xtamaga
- endif
  
  ####### Implicit rules
--- 73,77 ----
***************
*** 122,134 ****
  
  install: $(TARGET)
- ifdef HAVE_KDE
  	@echo "--------------------------------------------"
  	@echo "       Installing KTamaga, for KDE"
  	@echo "--------------------------------------------"
- else
- 	@echo "--------------------------------------------"
- 	@echo "       Installing xTamaga, fot X-Win"
- 	@echo "--------------------------------------------"
- endif
  	$(INSTALL_DIR) $(BINDIR)
  	$(INSTALL) $(TARGET) $(BINDIR)
--- 107,113 ----
***************
*** 137,141 ****
  	$(INSTALL_DATA) HTMLdoc/* $(HELPDIR)
  
- ifdef HAVE_KDE
  	$(INSTALL_DIR) $(KDEDIR)/share/applnk/Games
  	$(INSTALL_DATA) KTamaga.kdelnk $(KDEDIR)/share/applnk/Games
--- 116,119 ----
***************
*** 143,147 ****
  	$(INSTALL_DIR) $(KDEDIR)/share/icons
  	$(INSTALL_DATA) ktamaga.xpm $(KDEDIR)/share/icons
- endif
  
  	$(INSTALL_DIR) $(DATADIR)
--- 121,124 ----