My system: OpenBSD 7.3 GENERIC.MP#1125 amd64
The port: math/maxima
Hi Folks:
This port has not been updated for a while. I got permission from the
current maitainer to update it. I am having a little problem after
making the necessary changes to the Makefile. xmaxima will not
display. I get the following error when I try to run it:
$ xmaxima
Error in startup script: version conflict for package "Tk": have
8.5.19, need 8.6
while executing
"package require Tk 8.6"
(file "/usr/local/bin/xmaxima" line 5)
and the xmaxima shell script says requires tk8.6:
#!/bin/sh
# -*- mode: tcl; fill-column: 75; tab-width: 8 -*- \
exec /usr/local/bin/wish8.5 "$0" -- "$@"
package require Tk 8.6
<Snip>
maxima, the command line version, runs just fine. Below is my
Makefile. I have included MODTK_VERSION = 8.6
What am I missing here?
COMMENT= GPL computer algebra system based on DOE
Macsyma
VERSION= 5.46.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_3}
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
MODTK_VERSION = 8.6
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>
---
Kind regards,
Jonathan
No comments:
Post a Comment