aboutsummaryrefslogtreecommitdiff
path: root/math/pari
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-07 05:45:25 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-07 05:45:25 +0000
commit2947194cb463fdfc88c905997b621a830431203f (patch)
tree63c96758546c5e81fe13b401b5ea3303b45b4008 /math/pari
parentd5fd227499a3534970674f43c34ffb07f7609b3f (diff)
downloadports-2947194cb463fdfc88c905997b621a830431203f.tar.gz
ports-2947194cb463fdfc88c905997b621a830431203f.zip
Notes
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>