freebsd-ports/net/wmnet/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

32 lines
777 B
Text

--- Makefile.orig 1998-12-03 16:33:58.000000000 +0100
+++ Makefile 2008-04-11 14:58:15.000000000 +0200
@@ -2,22 +2,24 @@
# Makefile,v 1.8 1998/12/03 15:33:58 rneswold Exp
#
-PREFIX=/usr/local
MANDIR=${PREFIX}/man
BINDIR=${PREFIX}/bin
-LIBDIR = -L/usr/X11R6/lib -L/usr/local/lib
+LIBDIR = -L${LOCALBASE}/lib
LIBS = -lXpm -lXext -lX11 -lkvm
OBJS = main.o if.o wmgeneral.o
-INCDIR = -I${X11BASE}/include
+INCDIR = -I${LOCALBASE}/include
+
+CC ?= cc
+CFLAGS ?= -O
.c.o :
- cc -c -g -O1 -Wall ${INCDIR} $< -o $*.o
+ $(CC) -c $(CFLAGS) -g -Wall ${INCDIR} $< -o $*.o
all :: wmnet
wmnet : $(OBJS)
- cc -o wmnet $(OBJS) $(LIBDIR) $(LIBS) ${INCDIR}
+ $(CC) -o wmnet $(OBJS) $(LIBDIR) $(LIBS) ${INCDIR}
main.o : wmnet-mask.xbm wmnet-master.xpm wmnet.h wmgeneral.h