aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-10-05 14:43:01 +0800
committerijliao <ijliao@FreeBSD.org>2001-10-05 14:43:01 +0800
commitc21a23461a261c8ef2c94541fd31aae66ca7c515 (patch)
tree7321d88e5b95ba9b9d3b22d2ed0223b4a754bc3c /math
parent10b5bfa5d4bf77b67037c2837dbd6467839154a5 (diff)
downloadfreebsd-ports-gnome-c21a23461a261c8ef2c94541fd31aae66ca7c515.tar.gz
freebsd-ports-gnome-c21a23461a261c8ef2c94541fd31aae66ca7c515.tar.zst
freebsd-ports-gnome-c21a23461a261c8ef2c94541fd31aae66ca7c515.zip
handle gmp in current system
Submitted by: bento
Diffstat (limited to 'math')
-rw-r--r--math/yacas/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/math/yacas/Makefile b/math/yacas/Makefile
index abb6ac652a07..fc8e3ba4cd6b 100644
--- a/math/yacas/Makefile
+++ b/math/yacas/Makefile
@@ -14,7 +14,17 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
MAINTAINER= ijliao@FreeBSD.org
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GMP)
+.if ${OSVERSION} >= 500000
+LIB_DEPENDS+= gmp.3:${PORTSDIR}/math/libgmp
+CONFIGURE_ENV+= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+.endif
+CONFIGURE_ARGS+= --enable-gmp=yes
+.endif
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-gmp=yes
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>