openbsd-ports/x11/aewm/patches/patch-clients_Makefile

46 lines
1.4 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-clients_Makefile,v 1.2 2004/01/01 15:10:59 espie Exp $
--- clients/Makefile.orig 2002-01-28 00:13:20.000000000 +0100
+++ clients/Makefile 2003-12-31 22:45:18.000000000 +0100
2002-02-09 22:04:18 -05:00
@@ -2,15 +2,15 @@
# Copyright 1998-2001 Decklin Foster <decklin@red-bean.com>
# This program is free software; see LICENSE for details.
-CC = gcc
-CFLAGS = -g -O2 -Wall
+#CC = gcc
+#CFLAGS = -g -O2 -Wall
-XROOT = /usr/X11R6
-BINDIR = $(DESTDIR)$(XROOT)/bin
-MANDIR = $(DESTDIR)$(XROOT)/man/man1
-CFGDIR = $(DESTDIR)/etc/X11/aewm
+XROOT = ${X11BASE}
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
+CFGDIR = ${PREFIX}/share/examples/aewm
-INCLUDES = -I../lib -Ilib
+INCLUDES = -I../lib -Ili -Ilib
X11PATH = -I$(XROOT)/include
X11LIBS = -L$(XROOT)/lib -lX11
XAWLIBS = -L$(XROOT)/lib -lX11 -lXt -lXaw
@@ -72,15 +72,14 @@ $(ETCOBJS): %.o: %.c
2002-02-09 22:04:18 -05:00
# --------------------------------------------------------------------
install: all
- install -s $(ALLPROGS) $(BINDIR)
- install -m 644 $(MANPAGE) $(MANDIR)
- gzip -9vf $(MANDIR)/$(MANPAGE)
+ ${BSD_INSTALL_PROGRAM} $(ALLPROGS) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(MANPAGE) $(MANDIR)
mkdir -p $(CFGDIR) && cp clientsrc.sample $(CFGDIR)/clientsrc
cd $(BINDIR) && ln -sf aemenu-gtk aemenu
cd $(BINDIR) && ln -sf aepanel-gtk aepanel
cd $(MANDIR) && \
for i in $(ALLPROGS); do \
- ln -sf $(MANPAGE).gz $$i.1x.gz; \
+ ln -sf $(MANPAGE) $$i.1x; \
done \
clean: