45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.10 2013/05/21 14:59:25 jperkin Exp $
|
|
|
|
--- config.mk.orig 2007-11-16 13:59:15.000000000 +0000
|
|
+++ config.mk
|
|
@@ -1,12 +1,11 @@
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
-PREFIX = /usr/local
|
|
-BIN = ${PREFIX}/bin
|
|
-MAN = ${PREFIX}/share/man
|
|
-ETC = ${PREFIX}/etc
|
|
-LIBDIR = ${PREFIX}/lib
|
|
-INCLUDE = ${PREFIX}/include
|
|
+BIN = ${DESTDIR}${PREFIX}/bin
|
|
+MAN = ${DESTDIR}${PREFIX}/${PKGMANDIR}
|
|
+ETC = ${DESTDIR}${PKG_SYSCONFBASE}
|
|
+LIBDIR = ${DESTDIR}${PREFIX}/lib
|
|
+INCLUDE = ${DESTDIR}${PREFIX}/include
|
|
|
|
# Includes and libs
|
|
INCPATH = .:${ROOT}/include:${INCLUDE}:/usr/include
|
|
@@ -14,9 +13,9 @@ LIBS = -L/usr/lib -lc -L${ROOT}/lib
|
|
|
|
# Flags
|
|
include ${ROOT}/mk/gcc.mk
|
|
-CFLAGS += -g -O0 -DIXPlint
|
|
-LDFLAGS += -g ${LIBS}
|
|
-STATIC = -static
|
|
+CFLAGS += -DIXPlint
|
|
+LDFLAGS += ${LIBS}
|
|
+#STATIC = -static
|
|
MKDEP = cpp -M
|
|
|
|
# Compiler
|
|
@@ -32,8 +31,7 @@ P9PATHS = ${PLAN9}:"'$${HOME}/plan9'":/u
|
|
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
|
|
+LIBIXP = ${PREFIX}/lib/libixp.a
|
|
|
|
# Solaris
|
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|