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 --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) # use gcc C compiler and gnu Fortran compiler (g77 or gfortran)
+ " --with-gcc --with-g77" "--with-gcc" "--with-g77"
# use Xaw3d widgets given with Scilab # do not compile with PVM library
+ (lib.optionalString (!withXaw3d) " --with-local-xaw") "--without-pvm"
# do not compile with PVM library # compile with GTK
+ " --without-pvm" (stdenv.lib.enableFeature withGtk "gtk")
# compile with GTK (stdenv.lib.enableFeature withGtk "gtk2")
+ (if withGtk then " # compile with ocaml
--with-gtk --with-gtk2 (stdenv.lib.withFeature withOCaml "ocaml")
" else " # do not compile Java interface
--without-gtk --without-gtk2 "--without-java"
") # use the X Window System
# compile with TCL/TK (stdenv.lib.withFeature withX "x")
+ (lib.optionalString withTk " # compile with TCL/TK
--with-tk ] ++ lib.optionals withTk [
--with-tcl-library=${tcl}/lib "--with-tk"
--with-tcl-include=${tcl}/include "--with-tcl-library=${tcl}/lib"
--with-tk-library=${tk}/lib "--with-tcl-include=${tcl}/include"
--with-tk-include=${tk}/include "--with-tk-library=${tk}/lib"
") "--with-tk-include=${tk}/include"
# do not use Gtk widgets ] # use Xaw3d widgets given with Scilab
+ " --without-gtk --without-gtk2" ++ lib.optional (!withXaw3d) "--with-local-xaw"
# compile with ocaml
+ (if withOCaml then " --with-ocaml" else " --without-ocaml")
# do not compile Java interface
+ " --without-java"
# use the X Window System
+ lib.optionalString withX "--with-x"
; ;
makeFlags = "all"; makeFlags = "all";