* Avoid check of target directory in configure script, it may not exists. * Honor PKGMANDIR. Bump PKGREVISION.
41 lines
1,021 B
Text
41 lines
1,021 B
Text
$NetBSD: patch-ab,v 1.5 2007/12/27 11:43:51 obache Exp $
|
|
|
|
--- unix/Config.orig 1999-03-06 22:43:28.000000000 +0000
|
|
+++ unix/Config
|
|
@@ -33,9 +33,12 @@
|
|
# even if an old version is currently in use. You can remove
|
|
# the old version manually later when it is no longer in use.
|
|
|
|
-# TF="/usr/local/bin/tf-${TFVER}"
|
|
-# LIBDIR="/usr/local/lib/tf-${TFVER}-lib"
|
|
-# SYMLINK="/usr/local/bin/tf"
|
|
+if [ -z "${PREFIX}" ]; then
|
|
+ PREFIX="/usr/pkg"
|
|
+fi
|
|
+TF="${PREFIX}/bin/tf-${TFVER}"
|
|
+LIBDIR="${PREFIX}/lib/tf-${TFVER}-lib"
|
|
+SYMLINK="${PREFIX}/bin/tf"
|
|
|
|
|
|
### Manual Page.
|
|
@@ -44,8 +47,8 @@
|
|
# uses nroff format; set MANTYPE=cat if your man uses pre-formatted
|
|
# vt100 "catman" pages. Default is "cat".
|
|
|
|
-# MANTYPE="nroff"
|
|
-# MANPAGE="/usr/local/man/man1/tf.1"
|
|
+MANTYPE="nroff"
|
|
+MANPAGE="${PREFIX}/${PKGMANDIR}/man1/tf.1"
|
|
|
|
|
|
### Flags.
|
|
@@ -111,7 +114,8 @@ FLAGS=''
|
|
|
|
# CC=cc
|
|
# CCFLAGS="-g"
|
|
-
|
|
+CC="${CC}"
|
|
+CCFLAGS="${CFLAGS}"
|
|
|
|
### Stripping.
|
|
# tfconfig will use "strip" on the tf binary unless you tell it otherwise.
|