Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # $OpenBSD: Makefile,v 1.92 2017/04/10 11:46:23 sthen Exp $
  2. COMMENT = high-level language for numerical computations
  3. VERSION = 4.0.2
  4. DISTNAME = octave-${VERSION}
  5. REVISION = 2
  6. CATEGORIES = math
  7. SHARED_LIBS += octave 7.0 # 3.0
  8. SHARED_LIBS += octgui 1.0 # 1.0
  9. SHARED_LIBS += octinterp 6.0 # 3.0
  10. HOMEPAGE = https://www.gnu.org/software/octave/
  11. MAINTAINER = Steven Mestdagh <steven@openbsd.org>
  12. # GPLv3
  13. PERMIT_PACKAGE_CDROM = Yes
  14. WANTLIB += ${MODFORTRAN_WANTLIB}
  15. WANTLIB += FLAC GL GLU GraphicsMagick GraphicsMagick++ ICE OSMesa QtGui
  16. WANTLIB += QtNetwork QtOpenGL SM X11 X11-xcb Xau Xcursor Xdamage Xdmcp
  17. WANTLIB += Xext Xfixes Xft Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm amd
  18. WANTLIB += arpack blas bz2 c camd ccolamd cholmod colamd crypto curl
  19. WANTLIB += cxsparse drm ereadline expat fftw3 fftw3_threads fftw3f
  20. WANTLIB += fftw3f_threads fltk fltk_gl fontconfig freetype gl2ps glapi
  21. WANTLIB += glpk glut gmp hdf5 lapack lcms2 ltdl lzma m ncurses nghttp2
  22. WANTLIB += ogg pcre png portaudio pthread pthread-stubs qhull qrupdate
  23. WANTLIB += qscintilla2 sndfile sndio ssl ${LIBCXX} suitesparseconfig
  24. WANTLIB += umfpack usbhid util vorbis vorbisenc xcb xcb-dri2 xcb-glx z
  25. MASTER_SITES = ${MASTER_SITE_GNU:=octave/}
  26. MODULES = devel/gettext \
  27. fortran \
  28. x11/qt4
  29. BUILD_DEPENDS = ${MODFORTRAN_BUILD_DEPENDS} \
  30. print/texinfo \
  31. textproc/gsed \
  32. math/gnuplot
  33. # configure checks for desktop-file-install(1)
  34. BUILD_DEPENDS +=devel/desktop-file-utils
  35. RUN_DEPENDS = devel/desktop-file-utils
  36. LIB_DEPENDS = ${MODFORTRAN_LIB_DEPENDS} \
  37. audio/libsndfile \
  38. audio/portaudio-svn \
  39. devel/glpk \
  40. devel/pcre \
  41. devel/readline \
  42. editors/qscintilla \
  43. graphics/GraphicsMagick \
  44. math/arpack \
  45. math/fftw3 \
  46. math/fftw3,float \
  47. math/hdf5 \
  48. math/qhull \
  49. math/qrupdate \
  50. math/suitesparse \
  51. net/curl \
  52. print/gl2ps \
  53. x11/fltk
  54. SEPARATE_BUILD = Yes
  55. USE_GMAKE = Yes
  56. CONFIGURE_STYLE = gnu
  57. # --disable-readline: needs GNU readline
  58. CONFIGURE_ARGS = --disable-java
  59. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
  60. -I${LOCALBASE}/include/ereadline" \
  61. LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
  62. LRELEASE="${MODQT_LRELEASE}" \
  63. F77=${FC}
  64. # needed to build on amd64
  65. GCC_ARCH = ${MACHINE_ARCH}-unknown-openbsd${OSREV}
  66. GNU_ARCH = ${GCC_ARCH:S/amd64/x86_64/}
  67. SUBST_VARS = GNU_ARCH VERSION
  68. post-extract:
  69. .for i in makeinfo texi2dvi texi2pdf
  70. ln -s ${LOCALBASE}/bin/g$i ${WRKDIR}/bin/$i
  71. .endfor
  72. .include <bsd.port.mk>