summaryrefslogtreecommitdiff
path: root/wm/evilwm/patches/patch-aa
blob: 8c0d64b096808f47b715bdb88903c73dd6dd0f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$NetBSD: patch-aa,v 1.9 2003/09/22 20:30:28 jmmv Exp $

--- Makefile.orig	Fri Jun 27 11:32:14 2003
+++ Makefile	Mon Sep 22 20:07:06 2003
@@ -1,11 +1,11 @@
 # If you don't use CC 
-CC       = gcc
+#CC       = gcc
 
 # Edit this line if you don't want evilwm to install under /usr.
 # Note that $(DESTDIR) is used by the Debian build process.
-prefix = $(DESTDIR)/usr
+prefix = ${PREFIX}
 
-XROOT    = /usr/X11R6
+XROOT    = ${X11BASE}
 INCLUDES = -I$(XROOT)/include
 LDPATH   = -L$(XROOT)/lib
 LIBS     = -lX11
@@ -22,7 +22,7 @@
 
 # Use Motif hints to find if a window should be borderless.
 # To use this option, you need to have the Motif development files installed.
-DEFINES += -DMWM_HINTS
+#DEFINES += -DMWM_HINTS
 
 # To support virtual desktops, uncomment one or both of the following 2 lines.
 DEFINES += -DVWM
@@ -66,9 +66,9 @@
 #DEFINES += -DXDEBUG	# show some X calls
 
 DEFINES += -DVERSION=\"$(version).$(revision).$(subrev)\" $(DEBIAN)
-CFLAGS  += $(INCLUDES) $(DEFINES) -Os -Wall
+CFLAGS  += $(INCLUDES) $(DEFINES)
 #CFLAGS  += $(INCLUDES) $(DEFINES) -g -Wall
-CFLAGS  += -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested-externs -Winline -Wwrite-strings -Wundef
+#CFLAGS  += -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested-externs -Winline -Wwrite-strings -Wundef
 LDFLAGS += $(LDPATH) $(LIBS)
 
 HEADERS  = evilwm.h
@@ -90,9 +90,8 @@
 
 doinstall:
 	if [ -f evilwm.exe ]; then mv evilwm.exe evilwm; fi
-	mkdir -p $(prefix)/bin $(prefix)/share/man/man1
-	install -s evilwm $(prefix)/bin
-	install evilwm.1 $(prefix)/share/man/man1
+	${BSD_INSTALL_PROGRAM} evilwm $(prefix)/bin
+	${BSD_INSTALL_MAN} evilwm.1 $(prefix)/man/man1
 	#gzip -9 $(prefix)/share/man/man1/evilwm.1
 
 install: doinstall