1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/misc/wmfirew/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

39 lines
839 B
Plaintext

$FreeBSD$
--- Makefile.orig Thu May 16 12:16:40 2002
+++ Makefile Thu May 16 12:17:17 2002
@@ -1,21 +1,20 @@
-INCDIR = -I/usr/X11R6/include
-LIBDIR = -L/usr/X11R6/lib
-LIBS = -lXpm -lXext -lX11
-OBJS = wmfirew.o ../wmgeneral/wmgeneral.o
+CC ?= gcc
+CFLAGS += -c -Wall
+INCDIR = -I${LOCALBASE}/include
+LIBDIR = -L${LOCALBASE}/lib
+LIBS = -lXpm -lXext -lX11
+OBJS = wmfirew.o ../wmgeneral/wmgeneral.o
.c.o:
- cc -c -g -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR)
-
-all: wmfirew
+ ${CC} ${CFLAGS} ${INCDIR} -D${shell echo `uname -s`} $< -o $*.o
wmfirew: $(OBJS)
- cc -o wmfirew $^ $(LIBDIR) $(LIBS)
+ ${CC} -o wmfirew $^ ${LIBDIR} ${LIBS}
+
+all: wmfirew
clean:
- for i in $(OBJS) ; do \
+ for i in ${OBJS}; do \
rm -f $$i; \
done
- rm -f wmfirew
-
-install:
- mv wmfirew /usr/local/bin
+ rm -f wmfirew core