openbsd-ports/x11/bgs/patches/patch-config_mk
merdely 1305d01ff9 Update to 0.5. Include a patch to fix -c.
From James Turner (MAINTAINER).
ok kili@
2009-02-08 20:41:22 +00:00

46 lines
1.2 KiB
Plaintext

$OpenBSD: patch-config_mk,v 1.2 2009/02/08 20:41:22 merdely Exp $
--- config.mk.orig Wed Jan 21 06:06:04 2009
+++ config.mk Sun Feb 8 15:13:56 2009
@@ -4,31 +4,28 @@ VERSION = 0.5
# 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
-IMLIB2INC = /usr/include/imlib2
-IMLIB2LIB = /usr/lib/imlib2/
-
# Xinerama, comment if you don't want it
XINERAMALIBS = -L${X11LIB} -lXinerama
XINERAMAFLAGS = -DXINERAMA
# includes and libs
-INCS = -I. -I/usr/include -I${X11INC} -I ${IMLIB2INC}
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} -L${IMLIB2LIB} -lImlib2
+INCS = -I${X11INC} -I${LOCALBASE}/include
+LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -L${LOCALBASE}/lib -lImlib2
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+CPPFLAGS += -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CFLAGS += ${INCS} ${CPPFLAGS}
+LDFLAGS += -s ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc