openbsd-ports/x11/dmenu/patches/patch-config_mk

35 lines
958 B
Plaintext
Raw Normal View History

$OpenBSD: patch-config_mk,v 1.10 2012/05/01 04:40:03 gsoares Exp $
--- config.mk.orig Sun Jan 8 10:18:43 2012
+++ config.mk Tue Apr 3 12:08:37 2012
@@ -2,11 +2,11 @@
VERSION = 4.5
# 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, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -17,10 +17,10 @@ INCS = -I${X11INC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
-CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+CFLAGS += ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc