# HG changeset patch # User John Donoghue # Date 1672515230 18000 # Node ID 2dfe73c0c492a5d72e32495059635979824f12b6 # Parent add737caf3a35649eb5bc7df9f1b6d7dc6fa8afd * tools/makeinst-script.sh.in: add install system/software opengl option diff -r add737caf3a3 -r 2dfe73c0c492 tools/makeinst-script.sh.in --- a/tools/makeinst-script.sh.in Thu Dec 29 08:58:40 2022 -0500 +++ b/tools/makeinst-script.sh.in Sat Dec 31 14:33:50 2022 -0500 @@ -375,6 +375,8 @@ Var RegisterOctaveFileTypeCtrl Var InstallBlasLibCtrl Var InstallBlasLib +Var InstallOpenGLCtrl +Var InstallOpenGL Function octaveOptionsPage @@ -410,6 +412,12 @@ \${NSD_CreateDropList} 100u 70u 100u 80u "" Pop \$InstallBlasLibCtrl + + \${NSD_CreateLabel} 0 90u 110u 12u "OpenGL implementation:" + Pop \$0 + + \${NSD_CreateDropList} 100u 110u 100u 80u "" + Pop \$InstallOpenGLCtrl EOF # add option to install libopenblas if we have the dll present if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/libopenblas.dll ]; then @@ -424,6 +432,11 @@ cat >> $OUTFILE << EOF \${NSD_CB_SelectString} \$InstallBlasLibCtrl "$DEFAULT_BLAS" + ; add option for opengl + \${NSD_CB_AddString} \$InstallOpenGLCtrl "System OpenGL" + \${NSD_CB_AddString} \$InstallOpenGLCtrl "Software OpenGL" + \${NSD_CB_SelectString} \$InstallOpenGLCtrl "Software OpenGL" + !insertmacro MUI_HEADER_TEXT "Install Options" "Choose options for installing" nsDialogs::Show Pop \$0 @@ -433,6 +446,7 @@ \${NSD_GetState} \$InstallShortcutsCtrl \$InstallShortcuts \${NSD_GetState} \$RegisterOctaveFileTypeCtrl \$RegisterOctaveFileType \${DropList_GetCurSel} \$InstallBlasLibCtrl \$InstallBlasLib + \${DropList_GetCurSel} \$InstallOpenGLCtrl \$InstallOpenGL FunctionEnd ###################################################################### @@ -567,6 +581,7 @@ StrCpy \$InstallShortcuts \${BST_CHECKED} StrCpy \$RegisterOctaveFileType \${BST_CHECKED} StrCpy \$InstallBlasLib 0 + StrCpy \$InstallOpenGL 1 ; process command line options \${GetParameters} \$R0 @@ -777,6 +792,13 @@ CopyFiles /SILENT "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\libopenblas.dll" "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\libblas.dll" \${EndIf} + ; OpenGL set up + \${If} \$InstallOpenGL == 0 + ; use system opengl - move opengl to backup + CopyFiles /SILENT "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.dll" "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.bak" + Delete "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.dll" + \${EndIf} + SectionEnd Section "FileTypeRego"