2015-09-29 00:34:02 +00:00
|
|
|
# Template file for 'octave'
|
|
|
|
pkgname=octave
|
2016-04-24 17:59:56 +00:00
|
|
|
version=4.0.2
|
2016-05-13 17:24:28 +00:00
|
|
|
revision=2
|
2015-09-29 00:34:02 +00:00
|
|
|
build_style=gnu-configure
|
2016-02-10 23:02:27 +00:00
|
|
|
hostmakedepends="perl gcc-fortran pkg-config gnuplot"
|
2016-04-13 06:23:58 +00:00
|
|
|
makedepends="pcre-devel lapack-devel readline-devel libSM-devel libltdl-devel
|
|
|
|
lcms2-devel"
|
2015-09-29 00:34:02 +00:00
|
|
|
short_desc="A high-level language, primarily intended for numerical computations"
|
|
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="https://gnu.org/software/octave/"
|
|
|
|
distfiles="${GNU_SITE}/octave/octave-${version}.tar.xz"
|
2016-04-24 17:59:56 +00:00
|
|
|
checksum=98c11ecead8ea759eb1d010ad6319a63a1c6199d3a7e2abbafe453c753090403
|
2016-05-13 17:24:28 +00:00
|
|
|
|
|
|
|
export FFLAGS="-fPIC"
|
2015-09-29 00:34:02 +00:00
|
|
|
|
2016-02-10 23:02:27 +00:00
|
|
|
# Package build options
|
|
|
|
# TODO: some options are still missing, such as java
|
|
|
|
build_options="
|
|
|
|
arpack
|
|
|
|
curl
|
|
|
|
fftw3
|
|
|
|
graphicsmagick
|
|
|
|
gui
|
|
|
|
hdf5
|
|
|
|
imagemagick
|
|
|
|
opengl
|
|
|
|
openmp
|
|
|
|
qhull
|
|
|
|
zlib
|
|
|
|
"
|
|
|
|
|
|
|
|
vopt_conflict graphicsmagick imagemagick
|
|
|
|
|
|
|
|
desc_option_arpack="Provides 'eigs' and 'svds' functions."
|
|
|
|
desc_option_curl="Provides 'urlread' and 'urlwrite' functions and the 'ftp' class."
|
|
|
|
desc_option_fftw3="Improves performance on discrete Fourier transforms."
|
|
|
|
desc_option_gui="Graphical User Interface."
|
|
|
|
desc_option_graphicsmagick="Provides 'imread' and 'imwrite' functions."
|
|
|
|
desc_option_hdf5="Support for HDF data files."
|
|
|
|
desc_option_imagemagick="Provides 'imread' and 'imwrite' functions."
|
|
|
|
desc_option_qhull="Provides 'convhull{,n}', 'delaunay{,n}' and 'voronoi{,n}' functions."
|
|
|
|
desc_option_openmp="Enable support for OpenMP SMP multi-threading"
|
|
|
|
desc_option_zlib="Support for compressed data."
|
|
|
|
|
|
|
|
build_options_default="
|
|
|
|
arpack
|
|
|
|
curl
|
|
|
|
fftw3
|
|
|
|
graphicsmagick
|
|
|
|
gui
|
|
|
|
hdf5
|
|
|
|
opengl
|
|
|
|
openmp
|
|
|
|
qhull
|
|
|
|
zlib
|
|
|
|
"
|
|
|
|
|
|
|
|
makedepends+="
|
|
|
|
$(vopt_if arpack arpack-ng-devel)
|
|
|
|
$(vopt_if curl libcurl-devel)
|
|
|
|
$(vopt_if fftw3 fftw-devel)
|
|
|
|
$(vopt_if graphicsmagick libgraphicsmagick-devel)
|
|
|
|
$(vopt_if gui qt-devel)
|
|
|
|
$(vopt_if hdf5 hdf5-devel)
|
|
|
|
$(vopt_if imagemagick libmagick-devel)
|
|
|
|
$(vopt_if opengl "glu-devel fltk-devel fontconfig-devel freetype-devel")
|
|
|
|
$(vopt_if openmp libgomp-devel)
|
|
|
|
$(vopt_if qhull libqhull-devel)
|
|
|
|
$(vopt_if zlib zlib-devel)
|
|
|
|
"
|
|
|
|
|
2015-10-06 23:25:45 +00:00
|
|
|
pre_build() {
|
2015-09-29 00:34:02 +00:00
|
|
|
chmod +x build-aux/mk-opts.pl
|
|
|
|
}
|