1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/sysutils/wmcube/files/patch-Makefile.FREEBSD
Renato Botelho 604b3004ab sysutils/wmcube: Fix build and other small tweaks
- Add -fcommon to CFLAGS to fix build
- Add minsing Xorg dependencies
- Regenerate patches with make makepatch

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2021-02-02 13:15:58 +00:00

31 lines
719 B
Plaintext

--- Makefile.FREEBSD.orig 2000-10-08 20:38:46 UTC
+++ Makefile.FREEBSD
@@ -1,15 +1,13 @@
-CC = gcc
OS = -DFREEBSD
-LIBDIR = -L/usr/X11R6/lib
-LIBDIR = -L/usr/X11R6/lib
-INCDIR = -I/usr/X11R6/include
+LIBDIR = -L${LOCALBASE}/lib -L${LOCALBASE}/lib
+INCDIR = -I${LOCALBASE}/include
# Edit OSLIBS as appropriate to include OS specific libraries.
OSLIBS = -lkvm
LIBS = -lXpm -lXext -lX11 -lm $(OSLIBS)
-CFLAGS = -Wall -O2 $(OS)
+CFLAGS += -Wall $(OS)
OBJS = wmcube.o \
../wmgeneral/wmgeneral.o \
@@ -20,7 +18,7 @@ OBJS = wmcube.o \
$(CC) $(CFLAGS) $(INCDIR) -c $< -o $*.o
wmcube: $(OBJS)
- $(CC) -o wmcube $(OBJS) -lXext $(LIBDIR) $(LIBS)
+ $(CC) -o wmcube $(OBJS) $(LIBDIR) $(LIBS)
all:: wmcube