aboutsummaryrefslogtreecommitdiffstats
path: root/lang/sr/files
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-12-01 01:36:05 +0800
committerrafan <rafan@FreeBSD.org>2006-12-01 01:36:05 +0800
commit32ee211d5c23da2f608d2b00c5eaf4221742ac6a (patch)
treeb08d220124f72db49f577636253444eef4f0c15d /lang/sr/files
parent8eea7946ffd9d31b0af75837e609e916d073670c (diff)
downloadfreebsd-ports-gnome-32ee211d5c23da2f608d2b00c5eaf4221742ac6a.tar.gz
freebsd-ports-gnome-32ee211d5c23da2f608d2b00c5eaf4221742ac6a.tar.zst
freebsd-ports-gnome-32ee211d5c23da2f608d2b00c5eaf4221742ac6a.zip
- Respect X11BASE
Reported by: pointyhat
Diffstat (limited to 'lang/sr/files')
-rw-r--r--lang/sr/files/patch-aa8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/sr/files/patch-aa b/lang/sr/files/patch-aa
index a36076b6a3ca..01b67d7c514e 100644
--- a/lang/sr/files/patch-aa
+++ b/lang/sr/files/patch-aa
@@ -4,7 +4,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 ${X11BASE}/include/X11 ]; then XINCL=${X11BASE}/include; fi
if [ ! -d $XINCL/X11 ]; then XINCL=; fi
XTANGO=/home/sr/xtango/include
@@ -14,15 +14,15 @@
+# on FreeBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "FreeBSD" ]; then
-+ LIBR="-L/usr/X11R6/lib"
++ LIBR="-L${X11BASE}/lib"
+fi
+# on OpenBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "OpenBSD" ]; then
-+ LIBR="-L/usr/X11R6/lib"
++ LIBR="-L${X11BASE}/lib"
+fi
+# on NetBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "NetBSD" ]; then
-+ LIBR="-L/usr/X11R6/lib"
++ LIBR="-L${X11BASE}/lib"
+fi
+
# if this looks like an Arizona system, use our srmap file