openbsd-ports/x11/aewm/patches/patch-src_Makefile
2005-01-10 00:30:23 +00:00

44 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_Makefile,v 1.1 2005/01/10 00:30:23 jcs Exp $
--- src/Makefile.orig Wed Nov 17 14:58:58 2004
+++ src/Makefile Sun Jan 9 18:15:46 2005
@@ -4,7 +4,7 @@
# This should be set to the location of the X installation against
# which you would like to compile.
-XROOT = /usr/X11R6
+XROOT = ${X11BASE}
# Comment out to remove shape support (for X11R5 or a smaller binary)
DEFINES += -DSHAPE
@@ -25,13 +25,13 @@ EXTRA_LIBS += -lXext
# --------------------------------------------------------------------
-CC = gcc
-CFLAGS = -g -O2 -Wall
+#CC = gcc
+#CFLAGS = -g -O2 -Wall
MYLIBDIR = ../lib
-BINDIR = $(DESTDIR)$(XROOT)/bin
-MANDIR = $(DESTDIR)$(XROOT)/man/man1
-CFGDIR = $(DESTDIR)/etc/X11/aewm
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
+CFGDIR = ${PREFIX}/share/examples/aewm
INCLUDES = -I$(MYLIBDIR) -I$(XROOT)/include $(EXTRA_INC)
LDPATH = -L$(XROOT)/lib
LIBS = -lX11 $(EXTRA_LIBS)
@@ -50,9 +50,8 @@ $(OBJS): %.o: %.c $(HEADERS)
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -c $< -o $@
install: all
- install -s $(PROG) $(BINDIR)
- install -m 644 $(MANPAGE) $(MANDIR)
- gzip -9vf $(MANDIR)/$(MANPAGE)
+ ${BSD_INSTALL_PROGRAM} $(PROG) $(BINDIR)
+ ${BSD_INSTALL_MAN} $(MANPAGE) $(MANDIR)
mkdir -p $(CFGDIR) && cp aewmrc.sample $(CFGDIR)/aewmrc
clean: