diff options
author | stephen <stephen@FreeBSD.org> | 2015-03-29 04:00:55 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2015-03-29 04:00:55 +0800 |
commit | 60b9ba82acdc13ee227ce1bc3a1349069e5deaf4 (patch) | |
tree | 6f1a639eaff086312bac25145e2113437d1ef92a /math/sage | |
parent | 5349220b5d4248606b0c40913736f27b6cb017b2 (diff) | |
download | freebsd-ports-gnome-60b9ba82acdc13ee227ce1bc3a1349069e5deaf4.tar.gz freebsd-ports-gnome-60b9ba82acdc13ee227ce1bc3a1349069e5deaf4.tar.zst freebsd-ports-gnome-60b9ba82acdc13ee227ce1bc3a1349069e5deaf4.zip |
- Fix so that it will build even if C99 functions missing from FreeBSD.
Accomplish this by re-enabling the cephes subpackage, and then putting
a wrapper around "ld" so that the option --copy-dt-needed-entries is set.
- Bump portrevision.
PR: 198893
Submitted by: John Marino
Diffstat (limited to 'math/sage')
-rw-r--r-- | math/sage/Makefile | 14 | ||||
-rw-r--r-- | math/sage/files/ld.in | 3 | ||||
-rw-r--r-- | math/sage/files/patch-build_pkgs_cephes_spkg-install | 12 |
3 files changed, 9 insertions, 20 deletions
diff --git a/math/sage/Makefile b/math/sage/Makefile index 3dd32af8e267..67d0694d49cc 100644 --- a/math/sage/Makefile +++ b/math/sage/Makefile @@ -3,6 +3,7 @@ PORTNAME= sage PORTVERSION= 6.5 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/ \ http://mirrors.xmission.com/sage/src/ \ @@ -26,10 +27,6 @@ LIB_DEPENDS= libatlas.so:${PORTSDIR}/math/atlas \ libjpeg.so:${PORTSDIR}/graphics/jpeg RUN_DEPENDS= bash:${PORTSDIR}/shells/bash -.if OSVERSION<1000717 -BROKEN= https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198893 -.endif - pre-extract: @${ECHO_MSG} @${ECHO_MSG} Instead of installing the port, which will take a considerable amount of @@ -62,6 +59,11 @@ post-patch: @${MKDIR} ${WRKSRC}/local/bin @${LN} -s -f ${LOCALBASE}/bin/gmake ${WRKSRC}/local/bin/make +# Create wrapper for invocation of ld. + @${SED} -e 's#%%LD%%#${LOCALBASE}/bin/ld#' \ + ${FILESDIR}/ld.in > ${WRKSRC}/local/bin/ld + @${CHMOD} +x ${WRKSRC}/local/bin/ld + post-build: ${RM} -rf ${WRKSRC}/tmp/.sage ${CHMOD} -R a+rX ${WRKSRC} @@ -95,10 +97,6 @@ post-install: .include <bsd.port.pre.mk> -.if ${OSVERSION} < 701106 -BROKEN= POSIX semaphores are required, and the support only works in FreeBSD 7-STABLE and later -.endif - MAKE_ENV+= MAKE="${MAKE} -j${MAKE_JOBS_NUMBER}" .ifdef MAINTAINER_MODE diff --git a/math/sage/files/ld.in b/math/sage/files/ld.in new file mode 100644 index 000000000000..9161b47ccded --- /dev/null +++ b/math/sage/files/ld.in @@ -0,0 +1,3 @@ +#!/bin/sh + +exec %%LD%% --copy-dt-needed-entries "$@" diff --git a/math/sage/files/patch-build_pkgs_cephes_spkg-install b/math/sage/files/patch-build_pkgs_cephes_spkg-install deleted file mode 100644 index 450e109df8a0..000000000000 --- a/math/sage/files/patch-build_pkgs_cephes_spkg-install +++ /dev/null @@ -1,12 +0,0 @@ ---- build/pkgs/cephes/spkg-install-orig 2015-03-05 02:28:16.000000000 +0000 -+++ build/pkgs/cephes/spkg-install 2015-03-05 02:29:36.000000000 +0000 -@@ -11,6 +11,9 @@ - exit 0 - fi - -+# Not working properly with FreeBSD right now. -+exit 0 -+ - CUR=`pwd` - cd src - |