aboutsummaryrefslogtreecommitdiffstats
path: root/databases/xmysqladmin/files/patch-aa
blob: a1f4d8f5d3cf658614594312f5d64fbdf89d5d95 (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
--- Makefile.orig   Sat Jan 10 18:17:46 1998
+++ Makefile    Thu Jan 29 13:36:49 1998
@@ -34,7 +34,7 @@
 # This is used by 'make install' command
 #-------------------------------------------------------
 #INSTALLPATH = /opt/local/i386/bin
-INSTALLPATH = /usr/local/bin
+INSTALLPATH = ${X11BASE}/bin
 ########################################################
 
 
@@ -45,7 +45,7 @@
 # pixmap file location (mysql.xpm)
 #-------------------------------------------------------
 #PIXMAPPATH = /opt/local/lib
-PIXMAPPATH = /usr/local/bin
+PIXMAPPATH = ${X11BASE}/include/X11/pixmaps
 ########################################################
 
 
@@ -93,8 +93,8 @@
 # Compilation Details
 # hum... I think you dont need to change this
 #-------------------------------------------------------
-CC = gcc
-STDCFLAGS = -g -c -O2 -Wall -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \
+# CC = gcc
+STDCFLAGS = $(CFLAGS) -c -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \
             -DBACKUP=\"$(BACKUP)\" -DBACKUPDIR=\"$(BACKUPDIR)\" \
             -DBACKUPSUFFIX=\"$(BACKUPSUFFIX)\" \
             -DMYSQL_VERSION=$(MYSQL_VERSION)
@@ -109,7 +109,7 @@
 # mysql include dir 
 #-------------------------------------------------------
 #MYSQLINC = -I/opt/local/include/mysql
-MYSQLINC = -I/usr/local/include/mysql
+MYSQLINC = -I${LOCALBASE}/include/mysql
 ########################################################
 
 
@@ -121,7 +121,7 @@
 # mysql database dir
 #-------------------------------------------------------
 #MYSQLDBDIR = -DMYSQLDBDIR="\"/var/lib/mysql/\""
-MYSQLDBDIR = -DMYSQLDBDIR="\"/usr/local/var/\""
+MYSQLDBDIR = -DMYSQLDBDIR="\"/var/db/mysql/\""
 ########################################################
 
 
@@ -133,7 +133,7 @@
 # mysql library dir
 #-------------------------------------------------------
 #MYSQLLOAD = -L/opt/local/i386/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
-MYSQLLOAD = -L/usr/local/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
+MYSQLLOAD = -L${LOCALBASE}/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
 ########################################################
 
 
@@ -144,7 +144,7 @@
 # xforms librairies dir
 #-------------------------------------------------------
 #XFORMLIBDIR = -L/opt/local/i386/lib
-XFORMLIBDIR = -L/usr/lib
+XFORMLIBDIR = -L${X11BASE}/lib
 ########################################################
 
 
@@ -156,7 +156,7 @@
 # xforms include dir (xforms.h)
 #-------------------------------------------------------
 #XFORMINCDIR = -I/opt/local/include
-XFORMINCDIR = -I/usr/include
+XFORMINCDIR = -I${X11BASE}/include
 ########################################################
 
 
@@ -172,7 +172,7 @@
 
 # Use this for Linux:
 XINC =
-XLOAD = -L/usr/X11R6/lib -lX11
+XLOAD = -L${X11BASE}/lib -lX11
 ########################################################
 
 
@@ -230,8 +230,7 @@
 ${PROGRAM}: $(OBJS)
    $(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \
    $(XINC) $(STDLFLAGS) $(MYSQLLOAD) \
-   $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm $(LIBS)
-   ./$(PROGRAM)
+   $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm $(LIBS)
 
 .c.o:
    $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(MYSQLDBDIR) $(XINC)