termux-packages/packages/man/configure.patch

45 lines
1.4 KiB
Diff
Raw Normal View History

2017-03-02 16:14:05 +01:00
diff -u -r ../mdocml-1.14.1/configure ./configure
--- ../mdocml-1.14.1/configure 2017-02-21 01:25:20.000000000 +0100
+++ ./configure 2017-03-02 15:29:43.698780501 +0100
@@ -35,11 +35,11 @@
SOURCEDIR=`dirname "$0"`
2016-07-17 01:26:07 +02:00
-MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
+MANPATH_DEFAULT="@TERMUX_PREFIX@/share/man"
OSNAME=
2017-03-02 16:14:05 +01:00
UTF8_LOCALE=
-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`
+# CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`
CFLAGS="-g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings"
CFLAGS="${CFLAGS} -Wno-unused-parameter"
LDADD=
@@ -118,7 +118,7 @@
INSTALL_LIB=
INSTALL_MAN=
INSTALL_DATA=
-LN="ln -f"
+LN="ln -s -f"
# --- manual settings from configure.local -----------------------------
2016-07-17 01:26:07 +02:00
2017-03-02 16:14:05 +01:00
@@ -270,7 +270,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
@@ -354,7 +354,7 @@
2016-07-17 01:26:07 +02:00
[ ${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_DEFAULT \"${MANPATH_DEFAULT}\""
[ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\""
2017-03-02 16:14:05 +01:00
[ -n "${UTF8_LOCALE}" ] && echo "#define UTF8_LOCALE \"${UTF8_LOCALE}\""