openbsd-ports/sysutils/wmcube/patches/patch-wmcube_Makefile_OPENBSD

76 lines
1.6 KiB
Plaintext

$OpenBSD: patch-wmcube_Makefile_OPENBSD,v 1.2 2001/08/28 14:08:57 wilfried Exp $
--- wmcube/Makefile.OPENBSD.orig Sun Oct 8 22:38:46 2000
+++ wmcube/Makefile.OPENBSD Mon Aug 27 19:11:27 2001
@@ -1,37 +1,34 @@
-CC = gcc
-OS = -DOPENBSD
-
-LIBDIR = -L/usr/X11R6/lib -L./libdocapp/
-
-# Edit OSLIBS as appropriate to include OS specific libraries.
-
-OSLIBS =
-LIBS = -lXpm -lXext -lX11 -lm $(OSLIBS)
-INCLUDES = -I/usr/X11R6/include
-CFLAGS = -Wall -O2 $(OS) $(INCLUDES)
-
-OBJS = wmcube.o \
- ../wmgeneral/wmgeneral.o \
- ../wmgeneral/misc.o \
- ../wmgeneral/list.o
-
-.c.o:
- $(CC) $(CFLAGS) $(INCDIR) -c $< -o $*.o
-
-wmcube: $(OBJS)
- $(CC) -o wmcube $^ -lXext $(LIBDIR) $(LIBS) $>
-
-all:: wmcube
-
-clean::
- for i in $(OBJS) ; do \
- rm -f $$i ; \
- done
- rm -f wmcube
- rm -f *~
-
-install:: wmcube
- cp -f wmcube /usr/local/bin/
- chmod 755 /usr/local/bin/wmcube
- chown root:root /usr/local/bin/wmcube
- @echo "wmCube installation finished..."
+CC?= cc
+OS = -DOPENBSD
+
+LIBDIR = -L${X11BASE}/lib -L./libdocapp/
+
+# Edit OSLIBS as appropriate to include OS specific libraries.
+
+OSLIBS =
+LIBS = -lXpm -lXext -lX11 -lm $(OSLIBS)
+INCLUDES = -I${X11BASE}/include
+CFLAGS += $(OS) $(INCLUDES)
+
+OBJS = wmcube.o \
+ ../wmgeneral/wmgeneral.o \
+ ../wmgeneral/misc.o \
+ ../wmgeneral/list.o
+
+.c.o:
+ $(CC) $(CFLAGS) $(INCDIR) -c $< -o $*.o
+
+wmcube: $(OBJS)
+ $(CC) -o wmcube $(OBJS) -lXext $(LIBDIR) $(LIBS)
+
+all:: wmcube
+
+clean::
+ for i in $(OBJS) ; do \
+ rm -f $$i ; \
+ done
+ rm -f wmcube
+ rm -f *~
+
+install:: wmcube
+ $(BSD_INSTALL_PROGRAM) wmcube $(PREFIX)/bin