scilab: Make configureFlags a list

This commit is contained in:
John Ericson 2018-07-25 17:44:21 -04:00
parent e8a291ff61
commit 632d24f11f

View File

@ -29,35 +29,29 @@ stdenv.mkDerivation rec {
/*
--with-atlas-library=DIR Atlas library files are in DIR and we use Atlas
*/
configureFlags = ""
configureFlags = [
# use gcc C compiler and gnu Fortran compiler (g77 or gfortran)
+ " --with-gcc --with-g77"
# use Xaw3d widgets given with Scilab
+ (lib.optionalString (!withXaw3d) " --with-local-xaw")
"--with-gcc" "--with-g77"
# do not compile with PVM library
+ " --without-pvm"
"--without-pvm"
# compile with GTK
+ (if withGtk then "
--with-gtk --with-gtk2
" else "
--without-gtk --without-gtk2
")
# compile with TCL/TK
+ (lib.optionalString withTk "
--with-tk
--with-tcl-library=${tcl}/lib
--with-tcl-include=${tcl}/include
--with-tk-library=${tk}/lib
--with-tk-include=${tk}/include
")
# do not use Gtk widgets
+ " --without-gtk --without-gtk2"
(stdenv.lib.enableFeature withGtk "gtk")
(stdenv.lib.enableFeature withGtk "gtk2")
# compile with ocaml
+ (if withOCaml then " --with-ocaml" else " --without-ocaml")
(stdenv.lib.withFeature withOCaml "ocaml")
# do not compile Java interface
+ " --without-java"
"--without-java"
# use the X Window System
+ lib.optionalString withX "--with-x"
(stdenv.lib.withFeature withX "x")
# compile with TCL/TK
] ++ lib.optionals withTk [
"--with-tk"
"--with-tcl-library=${tcl}/lib"
"--with-tcl-include=${tcl}/include"
"--with-tk-library=${tk}/lib"
"--with-tk-include=${tk}/include"
] # use Xaw3d widgets given with Scilab
++ lib.optional (!withXaw3d) "--with-local-xaw"
;
makeFlags = "all";