sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

55 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.49 2021/02/23 19:39:29 sthen Exp $
COMMENT= GPL computer algebra system based on DOE Macsyma
VERSION= 5.44.0
DISTNAME= maxima-${VERSION}
CATEGORIES= math
HOMEPAGE= http://maxima.sourceforge.net/
MAINTAINER= Ingo Feinerer <feinerer@logic.at>
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB += c ecl ffi gc gmp m pthread
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=maxima/}
USE_GMAKE= yes
# Python is not needed for building but configure fails without it.
# Instead of patching just add the lang/python dependency.
# http://sourceforge.net/p/maxima/mailman/message/34462954/
MODULES = lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODPY_RUNDEP = No
BUILD_DEPENDS = print/texinfo
LIB_DEPENDS= lang/ecl
RUN_DEPENDS = devel/desktop-file-utils \
misc/rlwrap \
misc/shared-mime-info
SUBST_VARS= VERSION
MAKE_FLAGS = MAKEINFO="${LOCALBASE}/bin/gtexi2any" \
TEXI2DVI="${LOCALBASE}/bin/gtexi2dvi"
CONFIGURE_ARGS+= --enable-ecl
CONFIGURE_STYLE= gnu
FLAVORS= no_x11
FLAVOR?=
.if !${FLAVOR:Mno_x11}
MODULES+= x11/tk
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
RUN_DEPENDS += ${MODTK_RUN_DEPENDS} \
math/gnuplot
BUILD_DEPENDS += ${MODTK_BUILD_DEPENDS}
CONFIGURE_ARGS += --with-wish=${MODTK_BIN}
.endif
.include <bsd.port.mk>