1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/x11/wmfstatus/files/patch-Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

34 lines
860 B
Plaintext

--- 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${LOCALBASE}/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${LOCALBASE}/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/