freebsd-ports/x11/wmfstatus/files/patch-Makefile
Mario Sergio Fujikawa Ferreira 3edf4f547c New port wmfstatus version 0.4: General purpose LCD display for the
WindowMaker dock

PR:		33185
Submitted by:	Bruce M Simpson <bms@spc.org>
2001-12-27 20:45:45 +00:00

33 lines
856 B
Text

--- Makefile.orig Mon Nov 22 17:38:07 1999
+++ Makefile Thu Dec 27 18:35:43 2001
@@ -1,6 +1,6 @@
-LIBDIR = -L/usr/X11R6/lib
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11
-FLAGS = -O2
+FLAGS = ${CFLAGS}
OBJS = wmfstatus.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
@@ -8,10 +8,10 @@
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
+ ${CC} -I${X11BASE}/include $(FLAGS) -c -Wall $< -o $*.o
wmfstatus: $(OBJS)
- cc $(FLAGS) -o wmfstatus $^ -lXext $(LIBDIR) $(LIBS)
+ ${CC} $(FLAGS) -o wmfstatus $? -lXext $(LIBDIR) $(LIBS)
all:: wmfstatus
@@ -23,7 +23,4 @@
rm -f *~
install:: wmfstatus
- cp -f wmfstatus /usr/local/bin/
- chmod 755 /usr/local/bin/wmfstatus
- chown root:root /usr/local/bin/wmfstatus
- @echo "WMFSTATUS Installation finished..."
+ ${BSD_INSTALL_PROGRAM} ./wmfstatus ${PREFIX}/bin/