termux-packages/packages/man/configure.patch
2018-08-11 19:38:37 +02:00

49 lines
1.3 KiB
Diff

diff -u -r ../mandoc-1.14.4/configure ./configure
--- ../mandoc-1.14.4/configure 2018-08-08 14:51:51.000000000 +0000
+++ ./configure 2018-08-11 09:56:21.090800759 +0000
@@ -35,15 +35,12 @@
SOURCEDIR=`dirname "$0"`
-MANPATH_BASE="/usr/share/man:/usr/X11R6/man"
-MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
+MANPATH_BASE="@TERMUX_PREFIX@/share/man"
+MANPATH_DEFAULT="@TERMUX_PREFIX@/share/man"
OSNAME=
UTF8_LOCALE=
-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`
-CFLAGS=
LDADD=
-LDFLAGS=
LD_NANOSLEEP=
LD_OHASH=
LD_RECVMSG=
@@ -121,7 +118,7 @@
INSTALL_LIB=
INSTALL_MAN=
INSTALL_DATA=
-LN="ln -f"
+LN="ln -s -f"
# --- manual settings from configure.local -----------------------------
@@ -312,7 +309,7 @@
elif singletest nanosleep NANOSLEEP; then
:
elif runtest nanosleep NANOSLEEP "-lrt"; then
- LD_NANOSLEEP="-lrt"
+ LD_NANOSLEEP=""
fi
if [ "${HAVE_NANOSLEEP}" -eq 0 ]; then
echo "FATAL: nanosleep: no" 1>&2
@@ -398,7 +395,7 @@
[ ${HAVE_GETLINE} -eq 0 ] && echo "#include <stdio.h>"
echo
-echo "#define MAN_CONF_FILE \"/etc/${MANM_MANCONF}\""
+echo "#define MAN_CONF_FILE \"@TERMUX_PREFIX@/etc/${MANM_MANCONF}\""
echo "#define MANPATH_BASE \"${MANPATH_BASE}\""
echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\""
[ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\""