aboutsummaryrefslogtreecommitdiffstats
path: root/math/pari
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-03-07 13:45:25 +0800
committerkris <kris@FreeBSD.org>2004-03-07 13:45:25 +0800
commit9294fb1b2cbb4faf6aac8580c91d44abe9e56873 (patch)
tree5eb91273e1a67c51d47e582970952d943f0f021b /math/pari
parent96e40e68650f8e303ceb23c75ee338bc180be1cc (diff)
downloadfreebsd-ports-gnome-9294fb1b2cbb4faf6aac8580c91d44abe9e56873.tar.gz
freebsd-ports-gnome-9294fb1b2cbb4faf6aac8580c91d44abe9e56873.tar.zst
freebsd-ports-gnome-9294fb1b2cbb4faf6aac8580c91d44abe9e56873.zip
BROKEN on sparc64: Does not compile
Correct ARCH check for amd64.
Diffstat (limited to 'math/pari')
-rw-r--r--math/pari/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/math/pari/Makefile b/math/pari/Makefile
index aa88b3543e2a..4864c6fd8d56 100644
--- a/math/pari/Makefile
+++ b/math/pari/Makefile
@@ -35,11 +35,17 @@ HAVE_EMACS!= which emacs || echo nope
PLIST= ${PKGDIR}/pkg-plist.emacs
.endif
-.if ${MACHINE_ARCH:L} == "amd64"
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
CFLAGS+= -fPIC
.endif
+.if ${ARCH} == "sparc64"
+BROKEN= "Does not compile on sparc64"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-O3|"${CFLAGS}"|' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>