freebsd-ports/games/wmshuffle/files/patch-aa
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

30 lines
743 B
Text

--- Makefile.orig Wed May 15 18:38:32 2002
+++ Makefile Wed May 15 18:43:28 2002
@@ -1,14 +1,17 @@
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS += -c -Wall
+INCDIR = -I${LOCALBASE}/include
+LIBDIR = -L${LOCALBASE}/lib
LIBS = -lXpm -lXext -lX11
OBJS = wmshuffle.o ./wmgeneral/wmgeneral.o
.c.o:
- cc -c -g -O2 -Wall $< -o $*.o
+ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
all: wmshuffle
wmshuffle: $(OBJS)
- cc -o wmshuffle $^ $(LIBDIR) $(LIBS)
+ ${CC} -o wmshuffle $^ ${LIBDIR} ${LIBS}
clean:
for i in $(OBJS) ; do \
@@ -17,5 +20,4 @@
rm -rf wmshuffle core *~
install:
- /usr/bin/install -c -o 0 -g 0 -s -m 755 wmshuffle /usr/local/bin/wmshuffle
-
+ @/usr/bin/install -c -o 0 -g 0 -s -m 755 wmshuffle ${PREFIX}/bin/wmshuffle