aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xforward/files/patch-Makefile
blob: 62b1024094175261a3f769a3c2438a31ffb9cd09 (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
diff -u Makefile.orig Makefile
index c11964d..e1d0343 100644
--- Makefile.orig
+++ Makefile
@@ -18,17 +18,18 @@
 # MANDIR is where the manual page will be installed.
 
 DESTDIR=
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/man/man1
+BINDIR=${PREFIX}/bin
+MANDIR=${PREFIX}/share/man/man1
 
 # Where to find things
 # INCFLAGS lists directories to search for header files
 # LDFLAGS lists directories to search for libraries
 # LIBS lists the necessary libraries (Motif, Xt, X11)
 
-INCFLAGS= -I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
-LDFLAGS= -L/usr/lib/DXM/lib/Xm -L/usr/lib/DXM/lib/Xt
-LIBS= -lXm -lXt -lX11
+INCFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
+LIBS= -lXm -lXt -lX11 -lXext
+
 
 CFLAGS= ${INCFLAGS} -O
 
@@ -51,6 +52,7 @@ xforward.o:	xforward.c
 install: ${PROGS}
 	install -c xforward ${DESTDIR}${BINDIR}/xforward
 	install -c xforward.1 ${DESTDIR}${MANDIR}/xforward.1
+
 clean: 	;
 	rm -f *~ *.o core ${PROGS}