openbsd-ports/x11/st/patches/patch-config_mk
zinke 22d4127ff2 import st 0.1.1
st is a simple virtual terminal emulator for X which sucks less. 
    
ok dcoppa@
2011-09-23 14:41:31 +00:00

34 lines
890 B
Plaintext

$OpenBSD: patch-config_mk,v 1.1.1.1 2011/09/23 14:41:31 zinke Exp $
--- config.mk.orig Sun Apr 3 21:04:45 2011
+++ config.mk Wed Sep 21 14:26:26 2011
@@ -4,20 +4,20 @@ VERSION = 0.1.1
# 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}
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil
+INCS = -I${X11INC}
+LIBS = -L${X11LIB} -lX11 -lutil
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\"
-CFLAGS += -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS += -s ${LIBS}
+CPPFLAGS += -DVERSION=\"${VERSION}\"
+CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# compiler and linker
CC ?= cc