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

34 lines
986 B
Plaintext
Raw Normal View History

$OpenBSD: patch-config_mk,v 1.3 2012/11/05 13:24:39 zinke Exp $
--- config.mk.orig Fri Nov 2 20:08:27 2012
+++ config.mk Sun Nov 4 17:17:13 2012
@@ -4,20 +4,20 @@ VERSION = 0.3
# 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
# includes and libs
-INCS = -I. -I/usr/include -I${X11INC} -I/usr/include/freetype2
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft -lfontconfig
+INCS = -I${X11INC} -I${X11INC}/freetype2
+LIBS = -L${X11LIB} -lX11 -lutil -lXext -lXft -lfontconfig
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS += -g -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS += -g ${LIBS}
+CPPFLAGS += -DVERSION=\"${VERSION}\"
+CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
CC ?= cc