Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.37 2017/06/02 10:13:25 feinerer Exp $
  2. COMMENT= GPL computer algebra system based on DOE Macsyma
  3. VERSION= 5.40.0
  4. DISTNAME= maxima-${VERSION}
  5. CATEGORIES= math
  6. HOMEPAGE= http://maxima.sourceforge.net/
  7. MAINTAINER= Ingo Feinerer <feinerer@logic.at>
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB += c ecl ffi gc gmp m pthread
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=maxima/}
  12. USE_GMAKE= yes
  13. # Python is not needed for building but configure fails without it.
  14. # Instead of patching just add the lang/python dependency.
  15. # http://sourceforge.net/p/maxima/mailman/message/34462954/
  16. MODULES = lang/python
  17. MODPY_RUNDEP = No
  18. BUILD_DEPENDS = print/texinfo
  19. LIB_DEPENDS= lang/ecl
  20. RUN_DEPENDS = devel/desktop-file-utils \
  21. misc/rlwrap \
  22. misc/shared-mime-info
  23. SUBST_VARS= VERSION
  24. MAKE_FLAGS = MAKEINFO="${LOCALBASE}/bin/gtexi2any" \
  25. TEXI2DVI="${LOCALBASE}/bin/gtexi2dvi"
  26. CONFIGURE_ARGS+= --enable-ecl
  27. CONFIGURE_STYLE= gnu
  28. FLAVORS= no_x11
  29. FLAVOR?=
  30. .if !${FLAVOR:Mno_x11}
  31. MODULES+= x11/tk
  32. RUN_DEPENDS += ${MODTK_RUN_DEPENDS} \
  33. math/gnuplot
  34. BUILD_DEPENDS += ${MODTK_BUILD_DEPENDS}
  35. CONFIGURE_ARGS += --with-wish=${MODTK_BIN}
  36. .endif
  37. .include <bsd.port.mk>