ports/www/mod_pagespeed/files/patch-python_arch.sh
Steve Wills 07a70186d5 - Try to fix build on older systems
- Use variables in plist so we don't break with apache 2.4
2012-02-10 21:34:15 +00:00

22 lines
540 B
Bash

Index: build/linux/python_arch.sh
===================================================================
--- build/linux/python_arch.sh (revision 90205)
+++ build/linux/python_arch.sh (working copy)
@@ -10,7 +10,15 @@
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
#
-python=$(readlink -f "$1")
+UNAME=`uname`
+
+# FreeBSD readlink lacks -f support before 9.0
+if [ ${UNAME} = "FreeBSD" ]; then
+ python=$(greadlink -f "$1")
+else
+ python=$(readlink -f "$1")
+fi
+
if [ ! -r "$python" ]; then
echo unknown
exit 0