2001-06-21 18:57:55 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: yacas
|
|
|
|
# Date created: Jun 21, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= yacas
|
2006-06-11 21:49:09 +02:00
|
|
|
PORTVERSION= 1.0.61
|
2001-06-21 18:57:55 +02:00
|
|
|
CATEGORIES= math
|
2003-06-23 00:03:10 +02:00
|
|
|
MASTER_SITES= http://yacas.sourceforge.net/backups/
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2006-06-19 22:06:59 +02:00
|
|
|
MAINTAINER= shaun@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Yet Another Computer Algebra System
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2006-05-06 03:28:22 +02:00
|
|
|
LIB_DEPENDS= gsl.9:${PORTSDIR}/math/gsl
|
2003-04-11 05:07:04 +02:00
|
|
|
|
|
|
|
USE_PERL5_BUILD= yes
|
2002-02-24 09:49:36 +01:00
|
|
|
USE_GMAKE= yes
|
2003-06-23 00:03:10 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-06-23 00:03:10 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-04-11 05:07:04 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-01-10 16:09:22 +01:00
|
|
|
|
2006-06-11 21:49:09 +02:00
|
|
|
OPTIONS= X11 "Build with X11 features" off \
|
|
|
|
GMP "Use libgmp for arbitrary precision arithmetic" off
|
|
|
|
|
2001-10-05 08:43:01 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GMP)
|
2006-05-10 16:46:47 +02:00
|
|
|
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
|
2003-04-11 05:07:04 +02:00
|
|
|
CONFIGURE_ARGS+= --with-numlib=gmp
|
2003-06-23 00:03:10 +02:00
|
|
|
PLIST_SUB+= GMP="" NOGMP="@comment "
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-04-11 05:07:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-numlib=native
|
2003-06-23 00:03:10 +02:00
|
|
|
PLIST_SUB+= GMP="@comment " NOGMP=""
|
2003-04-11 05:07:04 +02:00
|
|
|
.endif
|
|
|
|
|
2003-06-23 00:03:10 +02:00
|
|
|
.if defined(WITH_X11)
|
2003-12-10 14:38:42 +01:00
|
|
|
USE_GL= yes
|
2005-08-30 03:52:16 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2003-06-23 00:03:10 +02:00
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
CPPFLAGS+= -I${X11BASE}/include
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib
|
2003-04-11 05:07:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
2003-06-23 00:03:10 +02:00
|
|
|
PLIST_SUB+= X11="@comment "
|
2001-10-05 08:43:01 +02:00
|
|
|
.endif
|
|
|
|
|
2004-08-11 22:47:39 +02:00
|
|
|
test: build
|
|
|
|
@cd ${WRKSRC}/manmake && ${GMAKE} wester-1994.ys
|
|
|
|
@cd ${WRKSRC}/tests && ${GMAKE} check
|
|
|
|
|
2001-10-05 08:43:01 +02:00
|
|
|
.include <bsd.port.post.mk>
|