diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/sr/Makefile | 2 | ||||
-rw-r--r-- | lang/sr/files/patch-aa | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lang/sr/Makefile b/lang/sr/Makefile index 6b7f111f94df..7197ac7162a7 100644 --- a/lang/sr/Makefile +++ b/lang/sr/Makefile @@ -19,7 +19,7 @@ COMMENT= A parallel language "Synchronization Resources" HAS_CONFIGURE= yes CONFIGURE_ARGS= prefix -CONFIGURE_ENV= PREFIX="${PREFIX}" +CONFIGURE_ENV= PREFIX="${PREFIX}" X11BASE="${X11BASE}" NO_WRKSUBDIR= yes MAN1 = sr.1 srl.1 srm.1 srprof.1 srtex.1 srlatex.1 srgrind.1 \ ccr2sr.1 m2sr.1 csp2sr.1 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 |