1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/databases/xmysql/files/patch-aa

65 lines
1.8 KiB
Plaintext
Raw Normal View History

--- Makefile.orig Wed Feb 25 03:19:31 1998
+++ Makefile Mon Mar 2 20:09:02 1998
@@ -31,24 +31,24 @@
PROGRAM = xmysql
# PROGRAM install path
-INSTALLPATH = /usr/local/xmysql-1.8
+INSTALLPATH = $(PREFIX)/bin
# pixmap location
-XMYSQL_XPMPATH = /usr/local/xmysql-1.8
1998-01-29 12:26:03 +00:00
+XMYSQL_XPMPATH = ${X11BASE}/include/X11/pixmaps
# help path
-XMYSQL_HELPPATH = /usr/local/xmysql-1.8
1998-01-29 12:26:03 +00:00
+XMYSQL_HELPPATH = ${X11BASE}/lib/X11/xmysql
# Compilation Details
-CC = gcc
1998-01-29 12:26:03 +00:00
-STDCFLAGS = -g -c -O2 -Wall -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
+#CC = gcc
+STDCFLAGS = $(CFLAGS) -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
STDLFLAGS =
MYSQLINC = -I/usr/local/include/mysql
MYSQLLOAD = -L/usr/local/lib/mysql -lmysqlclient
-XFORMLIBDIR = -L/usr/lib
-XFORMINCDIR = -I/usr/include
1998-01-29 12:26:03 +00:00
+XFORMLIBDIR = -L${X11BASE}/lib
+XFORMINCDIR = -I${X11BASE}/include
XINC =
-XLOAD = -L/usr/X11R6/lib -lX11
+XLOAD = -L${X11BASE}/lib -lX11
# objects needed for the program
OBJS = Xmysql.o \
@@ -56,20 +56,22 @@
1998-01-29 12:26:03 +00:00
Xmysql_cb.o \
XmysqlDB.o \
XmysqlErr.o
+
1998-01-29 12:26:03 +00:00
+all: ${PROGRAM}
${PROGRAM}: $(OBJS)
$(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \
$(XINC) $(STDLFLAGS) $(MYSQLLOAD) \
- $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm -lm
+ $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm -lm
.c.o:
1998-01-29 12:26:03 +00:00
- $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
+ $(CC) -c $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
clean:
rm -f ${PROGRAM} $(OBJS)
install:
- install --mode=711 $(PROGRAM) $(INSTALLPATH)
1998-01-29 12:26:03 +00:00
- install --mode=744 mysql.xpm $(XPMPATH)
- install --mode=744 sqlhelp.txt $(HELPPATH)
-
+ install -s -m 511 $(PROGRAM) $(INSTALLPATH)
1998-01-29 12:26:03 +00:00
+ install -m 444 mysql.xpm $(XMYSQL_XPMPATH)
+ install -d -m 755 $(XMYSQL_HELPPATH)
+ install -m 444 sqlhelp.txt $(XMYSQL_HELPPATH)