1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/lang/sr/files/patch-aa
1997-06-29 09:29:21 +00:00

59 lines
1.5 KiB
Plaintext

--- configure.orig Wed Dec 13 13:46:18 1995
+++ configure Sun Jun 29 02:25:13 1997
@@ -77,6 +77,7 @@
XINCL=/usr/include
if [ -d /usr/X11/include/X11 ]; then XINCL=/usr/X11/include; fi
if [ -d /usr/openwin/include/X11 ]; then XINCL=/usr/openwin/include; fi
+if [ -d /usr/X11R6/include/X11 ]; then XINCL=/usr/X11R6/include; fi
if [ ! -d $XINCL/X11 ]; then XINCL=; fi
XTANGO=/home/sr/xtango/include
@@ -125,6 +126,19 @@
LIBM="-lm -lc"
fi
+# on FreeBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "FreeBSD" ]; then
+ LIBR="-L/usr/X11R6/lib"
+fi
+# on OpenBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "OpenBSD" ]; then
+ LIBR="-L/usr/X11R6/lib"
+fi
+# on NetBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "NetBSD" ]; then
+ LIBR="-L/usr/X11R6/lib"
+fi
+
# if this looks like an Arizona system, use our srmap file
if grep -s '^gmt:[^:]*:0*28:0*46:' /etc/passwd >/dev/null; then
SRMAP=srmap.az
@@ -174,11 +188,27 @@
MAN5=/usr/man/local/man5
MANEXT=1
else
+ if [ -d /usr/local/man ]; then
+ MAN1=/usr/local/man/man1
+ MAN3=/usr/local/man/man3
+ MAN5=/usr/local/man/man5
+ MANEXT=1
+ else
MAN1=/usr/man/manl
MAN3=/usr/man/manl
MAN5=/usr/man/manl
MANEXT=l
+ fi
fi
+ ;;
+ prefix)
+ if [ "X${PREFIX}" = "X" ]; then PREFIX=/usr/local ; fi
+ SRCMD=${PREFIX}/bin
+ SRLIB=${PREFIX}/lib/sr
+ MAN1=${PREFIX}/man/man1
+ MAN3=${PREFIX}/man/man3
+ MAN5=${PREFIX}/man/man5
+ MANEXT=1
;;
optlocal)
SRCMD=/opt/local/bin