openbsd-ports/x11/aewm/patches/patch-goodies-Makefile
naddy 731fc0bb7e Initial import of aewm-1.1.2.
Submitted by Joshua Stein <jcs@rt.fm>.

aewm is a minimalistic window manager for X11.  It has no nifty
features, but is light on resources and extremely simple in appearance.
2001-05-11 01:15:25 +00:00

38 lines
1.2 KiB
Plaintext

$OpenBSD: patch-goodies-Makefile,v 1.1.1.1 2001/05/11 01:15:25 naddy Exp $
--- goodies/Makefile.orig Wed Jan 10 19:31:15 2001
+++ goodies/Makefile Fri May 11 03:10:22 2001
@@ -2,12 +2,12 @@
# Copyright (c) 1998-2001 Decklin Foster <decklin@red-bean.com>
# Free software! Please see README for details and license. ---
-CC = gcc
-CFLAGS = -g -O2 -Wall $(DEFINES)
+#CC = gcc
+CFLAGS += $(DEFINES)
-XROOT = /usr/X11R6
-BINDIR = $(DESTDIR)$(XROOT)/bin
-MANDIR = $(DESTDIR)$(XROOT)/man/man1
+XROOT = ${X11BASE}
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
X11PATH = -I$(XROOT)/include
X11LIBS = -L$(XROOT)/lib -lX11
@@ -68,12 +68,11 @@ $(ETCOBJS): %.o: %.c
# --------------------------------------------------------------------
install: all
- install -s $(XAWPROGS) $(GTKPROGS) $(ETCPROGS) $(BINDIR)
- install -m 644 $(MANPAGE) $(MANDIR)
- gzip -9vf $(MANDIR)/$(MANPAGE)
+ ${BSD_INSTALL_PROGRAM} $(XAWPROGS) $(GTKPROGS) $(ETCPROGS) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(MANPAGE) $(MANDIR)
cd $(MANDIR) && \
for i in $(XAWPROGS) $(GTKPROGS) $(ETCPROGS); do \
- ln -sf $(MANPAGE).gz $$i.1x.gz; \
+ ln -sf $(MANPAGE) $$i.1x; \
done \
clean: