edd 9861d0a3f0 Only depend upon gnuplot if x11 is enabled (as noted by shadchin@).
This was supposed to be part of my previous commit, so OK shadchin@
2011-11-14 21:35:35 +00:00

47 lines
900 B
Makefile

# $OpenBSD: Makefile,v 1.18 2011/11/14 21:35:35 edd Exp $
COMMENT= GPL computer algebra system based on DOE Macsyma
VERSION= 5.25.1
REVISION = 0
DISTNAME= maxima-${VERSION}
CATEGORIES= math
HOMEPAGE= http://maxima.sourceforge.net/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=maxima/}
USE_GMAKE= yes
LIB_DEPENDS= lang/ecl
RUN_DEPENDS = misc/rlwrap
WANTLIB += c gc gmp m pthread ecl
SUBST_VARS= VERSION
CONFIGURE_ARGS+= --enable-ecl
CONFIGURE_STYLE= gnu
USE_GROFF = Yes
FLAVORS= no_x11
FLAVOR?=
.if !${FLAVOR:L:Mno_x11}
RUN_DEPENDS = math/gnuplot
MODULES+= x11/tk
RUN_DEPENDS+= ${MODTK_RUN_DEPENDS}
BUILD_DEPENDS += ${MODTK_RUN_DEPENDS}
CONFIGURE_ARGS += --with-wish=${MODTK_BIN}
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure
.include <bsd.port.mk>