openbsd-ports/x11/dwm/patches/patch-config_mk
jim ed278ca4a7 update to dwm-5.8.2
inspired by Stanley Lieber.

ok robert,ajacoutot
2010-06-27 01:03:55 +00:00

45 lines
1.2 KiB
Plaintext

$OpenBSD: patch-config_mk,v 1.7 2010/06/27 01:03:55 jim Exp $
--- config.mk.orig Fri Jun 4 06:39:15 2010
+++ config.mk Sat Jun 26 20:29:33 2010
@@ -4,25 +4,25 @@ VERSION = 5.8.2
# Customize below to fit your system
# paths
-PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+PREFIX ?= /usr/local
+MANPREFIX = ${PREFIX}/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = ${X11BASE}/include
+X11LIB = ${X11BASE}/lib
# Xinerama
XINERAMALIBS = -L${X11LIB} -lXinerama
XINERAMAFLAGS = -DXINERAMA
# includes and libs
-INCS = -I. -I/usr/include -I${X11INC}
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
+INCS = -I${X11INC}
+LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -g ${LIBS}
+LDFLAGS += ${LIBS}
#LDFLAGS = -s ${LIBS}
# Solaris
@@ -30,4 +30,4 @@ LDFLAGS = -g ${LIBS}
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc