commit: 749b46f920852202c7a5fedd8f1ddfd7f3cea44a
parent: 7da390be9282748fdbe93ca891c16f37bf2c59cd
author: Brian Callahan <bcallah@openbsd.org>
date: Thu, 11 Jan 2018 23:03:10 -0500
Fix configure for FreeBSD ports.
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
@@ -213,7 +213,7 @@ else
prefix="/usr/local"
fi
-mandir="$prefix/man/man1"
+mandir="$prefix/man"
# Options.
for opt
@@ -273,6 +273,9 @@ echo "$os"
if [ "x$os" = "xLinux" ] ; then
cflags="$cflags -D_GNU_SOURCE"
+elif [ "x$os" = "xFreeBSD" ] ; then
+ prefix="\\${DESTDIR}$prefix"
+ mandir="$prefix/man"
elif [ "x$os" = "xNetBSD" ] ; then
tflags="-D_OPENBSD_SOURCE"
cflags="$cflags $tflags"
@@ -400,7 +403,7 @@ all: \${PROG}
install:
install -c -s -m 755 \${PROG} \${PREFIX}/bin
- install -c -m 644 oksh.1 \${MANDIR}/\${PROG}.1
+ install -c -m 644 oksh.1 \${MANDIR}/man1/\${PROG}.1
echo \${ETS}
test: