diff options
Diffstat (limited to 'math/yacas')
-rw-r--r-- | math/yacas/Makefile | 14 |
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> |