summaryrefslogtreecommitdiff
path: root/math/sage/files/patch-src_bin_sage-spkg
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-30 01:00:13 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-30 01:00:13 +0000
commit127fcb9e76782c54f2165854da30906b0ebd8589 (patch)
treeb68b2cb24718f944fe7595e3ed44c6988abcc3c4 /math/sage/files/patch-src_bin_sage-spkg
parentFix build on 10, honor C/CXX, and fix issue with curvecp. (diff)
- Update to 6.0. This was quite an overhaul since the directory structure
greatly changed. - Provide support for FreeBSD-10.
Diffstat (limited to 'math/sage/files/patch-src_bin_sage-spkg')
-rw-r--r--math/sage/files/patch-src_bin_sage-spkg32
1 files changed, 32 insertions, 0 deletions
diff --git a/math/sage/files/patch-src_bin_sage-spkg b/math/sage/files/patch-src_bin_sage-spkg
new file mode 100644
index 000000000000..1533ba10e11f
--- /dev/null
+++ b/math/sage/files/patch-src_bin_sage-spkg
@@ -0,0 +1,32 @@
+--- src/bin/sage-spkg-orig 2014-01-29 17:26:07.000000000 +0000
++++ src/bin/sage-spkg 2014-01-29 17:41:25.000000000 +0000
+@@ -593,6 +593,29 @@
+ exit 1
+ fi
+
++if ls fbsd-patch-* > /dev/null 2>&1; then
++ echo "===> Applying FreeBSD patches"
++ cat fbsd-patch-* | patch -p0 || exit 1
++ echo "===> Done applying FreeBSD patches"
++fi
++
++# Inspired by run-autotools-fixup target in Mk/bsd.port.mk.
++# Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x.
++for f in `find src -type f \( -name config.libpath -o \
++ -name config.rpath -o -name configure -o -name libtool.m4 -o \
++ -name ltconfig -o -name libtool -o -name aclocal.m4 -o \
++ -name acinclude.m4 \)` ; do \
++ sed -i.fbsd10bak \
++ -e 's|freebsd1\*)|freebsd1.\*)|g' \
++ -e 's|freebsd\[12\]\*)|freebsd[12].*)|g' \
++ -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \
++ -e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \
++ -e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \
++ ${f}
++ rm -f ${f}.fbsd10bak
++ echo "===> FreeBSD 10 autotools fix applied to ${f}"; \
++done
++
+ # When there is no spkg-install, assume the "spkg" is a tarball not
+ # specifically made for Sage. Since we want it to be as easy as
+ # possible to install such a package, we "guess" spkg-install.