blob: 215ee6fcc5760bc1c909b08eee3c47f2261aa0de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-aa,v 1.1.1.1 2008/03/09 17:20:47 tnn Exp $
--- config.mk.orig 2008-02-06 17:30:25.000000000 +0100
+++ config.mk
@@ -3,16 +3,13 @@ VERSION = 0.4
# Customize below to fit your system
-PREFIX = /usr/local
-MANPREFIX = ${PREFIX}/share/man
+MANPREFIX = ${DESTDIR}${PREFIX}/${PKGMANDIR}
INCS = -I. -I/usr/include -I/usr/local/include
-LIBS = -lc -lutil -lncurses
-LIBS_UTF8 = -lc -lutil -lncursesw
+LIBS = -lc -lutil -lncurses -L/usr/lib -L${DESTDIR}${PREFIX}/lib
+LIBS_UTF8 = -lc -lutil -lncursesw -L/usr/lib -L${DESTDIR}${PREFIX}/lib
-CFLAGS = -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
-LDFLAGS = -L/usr/lib -L/usr/local/lib ${LIBS}
+CFLAGS += ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
+LDFLAGS += ${LIBS}
DEBUG_CFLAGS = -std=c99 -O0 -g -ggdb ${INCS} -Wall -DVERSION=\"${VERSION}\"
-
-CC = cc
|