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

47 lines
1.2 KiB
Plaintext

$OpenBSD: patch-config_mk,v 1.5 2010/07/10 14:35:59 naddy Exp $
--- config.mk.orig Fri Nov 16 06:59:15 2007
+++ config.mk Sat Jul 10 08:33:20 2010
@@ -1,10 +1,10 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+#PREFIX = /usr/local
BIN = ${PREFIX}/bin
-MAN = ${PREFIX}/share/man
-ETC = ${PREFIX}/etc
+MAN = ${PREFIX}/man
+ETC = ${PREFIX}/share/examples/
LIBDIR = ${PREFIX}/lib
INCLUDE = ${PREFIX}/include
@@ -14,8 +14,10 @@ LIBS = -L/usr/lib -lc -L${ROOT}/lib
# Flags
include ${ROOT}/mk/gcc.mk
-CFLAGS += -g -O0 -DIXPlint
-LDFLAGS += -g ${LIBS}
+#CFLAGS += -g -O0 -DIXPlint
+CFLAGS += -DIXPlint
+#LDFLAGS += -g ${LIBS}
+LDFLAGS += ${LIBS}
STATIC = -static
MKDEP = cpp -M
@@ -29,11 +31,10 @@ AR = ar crs
AWKPATH = $$(which awk)
P9PATHS = ${PLAN9}:"'$${HOME}/plan9'":/usr/local/plan9:/usr/local/9:/opt/plan9:/opt/9:/usr/plan9:/usr/9
-INCX11 = -I/usr/X11R6/include
-LIBX11 = -L/usr/X11R6/lib -lX11
-LIBICONV = # Leave blank if your libc includes iconv (glibc does)
-LIBIXP = ${ROOT}/libixp/libixp.a
-LIBIXP = ${LIBDIR}/libixp.a
+INCX11 = -I${X11BASE}/include
+LIBX11 = -L${X11BASE}/lib -lX11
+LIBICONV = -L${LOCALBASE}/lib -liconv
+LIBIXP = ${LOCALBASE}/lib/libixp.a
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"