ports/x11/xforward/files/patch-Makefile
2024-03-01 13:11:26 -08:00

36 lines
939 B
Text

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}