~ubuntu-branches/ubuntu/precise/csound/precise

« back to all changes in this revision

Viewing changes to installer/windows/csoundd.nsi

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2012-04-19 09:26:46 UTC
  • mfrom: (3.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20120419092646-96xbj1n6atuqosk2
Tags: 1:5.17.6~dfsg-1
* New upstream release
 - Do not build the wiimote opcodes (we need wiiuse).
* Add new API function to symbols file
* Disable lua opcodes, they were broken. Requires OpenMP to be enabled.
* Backport fixes from upstream:
  - Link dssi4cs with dl. Backport
  - Fix building of CsoundAC

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#######################################################################
19
19
 
20
20
!define PRODUCT "Csound"
21
 
!define PROGRAM "Csound5.14.0"
 
21
!define PROGRAM "Csound5.17"
22
22
!echo "Building installer for: ${PROGRAM}"
23
23
!ifdef FLOAT
24
24
!ifdef NONFREE
350
350
            WriteRegExpandStr ${NT_all_env} "PATH" $3
351
351
            Goto un_write_path_NT_resume
352
352
         un_write_path_NT_current:
353
 
            WriteRegExpandStr ${NT_current_env} "PATH" $3
354
 
         un_write_path_NT_resume:
355
 
         SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
 
353
                        StrLen $0 $3
 
354
                        IntCmp $0 0 unDeletePath
 
355
               WriteRegExpandStr ${NT_current_env} "PATH" $3
 
356
                           Goto un_write_path_NT_resume
 
357
                        unDeletePath:
 
358
                           DeleteRegValue ${NT_current_env} "PATH"
 
359
        un_write_path_NT_resume:
 
360
           SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
 
361
 
356
362
   unRemoveFromPath_done:
357
363
   Pop $4
358
364
   Pop $3
360
366
   Pop $1
361
367
   Pop $0
362
368
FunctionEnd
 
369
 
 
370
;====================================================
 
371
; RemoveFromPythonPath - Remove a given dir from the python path
 
372
;     Input: head of the stack
 
373
;====================================================
 
374
Function un.RemoveFromPythonPath
 
375
   Exch $0
 
376
   Push $1
 
377
   Push $2
 
378
   Push $3
 
379
   
 
380
   StrLen $2 $0
 
381
   ReadEnvStr $1 "PYTHONPATH"
 
382
   Push $1
 
383
   Push $0        
 
384
   Call un.StrStr ; Find $0 in $1
 
385
   Pop $0 ; pos of our dir
 
386
   IntCmp $0 -1 unRemoveFromPythonPath_done
 
387
      ; else, it is in python path               
 
388
      StrCpy $3 $1 $0 ; $3 now has the part of the python path before our dir
 
389
      IntOp $2 $2 + $0 ; $2 now contains the pos after our dir in the python path (';')
 
390
      IntOp $2 $2 + 1 ; $2 now containts the pos after our dir and the semicolon.
 
391
      StrLen $0 $1
 
392
      StrCpy $1 $1 $0 $2
 
393
      StrCpy $3 "$3$1"
 
394
 
 
395
          StrLen $0 $3
 
396
          IntCmp $0 0 unDeletePythonPath
 
397
             WriteRegExpandStr ${WriteEnvStr_RegKey} "PYTHONPATH" $3
 
398
                 Goto un_write_pythonpath_NT_resume
 
399
          unDeletePythonPath:
 
400
             DeleteRegValue ${WriteEnvStr_RegKey} "PYTHONPATH"
 
401
      un_write_pythonpath_NT_resume:
 
402
             SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
 
403
 
 
404
   unRemoveFromPythonPath_done:
 
405
   Pop $3
 
406
   Pop $2
 
407
   Pop $1
 
408
   Pop $0
 
409
FunctionEnd
 
410
 
363
411
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
364
412
; Uninstall sutff
365
413
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
501
549
        # link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]]
502
550
        CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
503
551
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Csound.lnk" "cmd" "/K $INSTDIR\bin\csound.exe" "" "" "" "" "Csound"
 
552
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\pa_devs.lnk" "cmd" "/K $INSTDIR\bin\pa_devs.exe" "" "" "" "" "List PortAudio devices"
504
553
!ifdef NONFREE
505
554
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\README.lnk" "$INSTDIR\readme-csound5-complete.txt" "" "" "" "" "" "Csound README"
506
555
!else
527
576
      # Csound itself.
528
577
      File ..\..\csound.exe
529
578
      File ..\..\cs.exe
 
579
      File ..\..\csbeats.exe
 
580
      File ..\..\csb64enc.exe
530
581
!ifdef FLOAT
531
582
      File ..\..\csound32.dll.5.2
532
583
!else
536
587
      # libsndfile
537
588
      File C:\utah\opt\Mega-Nerd\libsndfile\libsndfile-1.dll
538
589
      # Pthreads
539
 
      File C:\utah\opt\pthreads\Pre-built.2\lib\pthreadGC2.dll
540
 
      File C:\utah\opt\MinGW\bin\libpthread-2.dll
 
590
      File C:\utah\opt\MinGW\bin\pthreadGC2.dll
541
591
      # FLTK
542
592
      File C:\utah\opt\fltk-1.1.10\src\mgwfltknox-1.1.dll
543
593
      File C:\utah\opt\fltk-1.1.10\src\mgwfltknox_forms-1.1.dll
545
595
      File C:\utah\opt\fltk-1.1.10\src\mgwfltknox_images-1.1.dll
546
596
      # PortAudio
547
597
      #File C:\utah\opt\portaudio\portaudio.dll
 
598
      File C:\utah\opt\portaudio\pa_devs.exe
548
599
      # PortMIDI
549
600
      File C:\utah\opt\portmidi\libportmidi.dll
550
601
      #File C:\utah\opt\portmidi\porttime.dll
558
609
      # MusicXML
559
610
      File C:\utah\opt\musicxml-v2\win32\codeblocks\libmusicxml2.dll
560
611
      # pthreads
561
 
      # Now static. File C:\utah\opt\pthreads\Pre-built.2\lib\pthreadGC2.dll
562
612
      File c:\utah\opt\MinGW\bin\libgomp-1.dll
563
613
      # C runtime library
564
614
      File C:\windows\system32\MSVCRT.DLL
565
615
      # GNU
566
 
      File C:\utah\opt\MinGW\bin\libgettextsrc-0-17.dll
567
616
      File C:\utah\opt\MinGW\bin\libstdc++-6.dll
568
617
      File C:\utah\opt\MinGW\bin\mingwm10.dll
569
618
      File C:\utah\opt\MinGW\bin\libgcc_s_dw2-1.dll
571
620
      File C:\utah\msys\1.0\local\bin\intl.dll
572
621
      File C:\utah\msys\1.0\local\bin\libgthread-2.0-0.dll
573
622
    # Opcodes, drivers, and other modules:
574
 
    SetOutPath $INSTDIR\${OPCODEDIR_VAL}
575
 
      File ..\..\LuaCsound.dll
576
 
      File ..\..\ambicode1.dll
 
623
    SetOutPath $INSTDIR\${OPCODEDIR_VAL}    
577
624
      File ..\..\ampmidid.dll
578
 
      File ..\..\babo.dll
579
 
      File ..\..\barmodel.dll
580
625
      File ..\..\chua.dll
581
 
      File ..\..\compress.dll
582
 
      File ..\..\crossfm.dll
583
626
      File ..\..\cs_date.dll
584
 
      File ..\..\cs_pan2.dll
585
 
      File ..\..\cs_pvs_ops.dll
 
627
      File ..\..\csladspa.dll
586
628
      File ..\..\doppler.dll
587
 
      File ..\..\eqfil.dll
588
629
      File ..\..\fareygen.dll
589
 
      File ..\..\fareyseq.dll
590
630
      File ..\..\fluidOpcodes.dll
591
 
      File ..\..\ftest.dll
592
 
      File ..\..\gabnew.dll
593
 
      File ..\..\grain4.dll
594
 
      File ..\..\harmon.dll
595
 
      File ..\..\hrtferX.dll
596
 
      File ..\..\hrtfnew.dll
 
631
      File ..\..\fractalnoise.dll
597
632
      File ..\..\image.dll
598
633
!ifndef FLOAT
599
634
      File ..\..\linear_algebra.dll
600
635
!endif
601
 
      File ..\..\loscilx.dll
602
 
      File ..\..\minmax.dll
603
636
      File ..\..\mixer.dll
604
 
      File ..\..\modal4.dll
605
 
      File ..\..\modmatrix.dll
606
 
      File ..\..\mutexops.dll
607
637
      File ..\..\osc.dll
608
 
      File ..\..\partikkel.dll
609
 
      File ..\..\phisem.dll
610
 
      File ..\..\physmod.dll
611
 
      File ..\..\pitch.dll
612
638
      File ..\..\pmidi.dll
613
 
      File ..\..\ptrack.dll
614
 
      File ..\..\pvlock.dll
615
 
      File ..\..\pvoc.dll
616
 
      File ..\..\pvsbuffer.dll
617
639
      File ..\..\rtpa.dll
618
640
      File ..\..\rtwinmm.dll
619
641
      File ..\..\scansyn.dll
620
 
      File ..\..\scoreline.dll
621
 
      File ..\..\sfont.dll
622
 
      File ..\..\shape.dll
 
642
      File ..\..\serial.dll
623
643
      File ..\..\signalflowgraph.dll
624
 
      File ..\..\stackops.dll
625
 
      File ..\..\stdopcod.dll
626
644
      File ..\..\stdutil.dll
627
645
      File ..\..\stk.dll
628
646
      File ..\..\system_call.dll
629
 
      File ..\..\tabsum.dll
630
 
      File ..\..\ugakbari.dll
631
 
      File ..\..\vaops.dll
632
 
      File ..\..\vbap.dll
633
647
      File ..\..\virtual.dll
634
 
      File ..\..\vosim.dll
635
648
!ifdef NONFREE
636
649
      File ..\..\vst4cs.dll
637
650
!endif
715
728
  SectionGroupEnd
716
729
SectionGroupEnd
717
730
SectionGroup "Front ends"
718
 
  #Section "CsoundQt (user-defined widgets)"
719
 
  Section "QuteCsound(user-defined widgets)"
 
731
  Section "CsoundQt (user-defined widgets)"
720
732
    SectionIn 2 3
721
733
!ifdef FLOAT
722
 
#    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\CsoundQt-f.exe" "" "" "" "" "" " CsoundQt"
723
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\qutecsound-f.exe" "" "" "" "" "" " QuteCsound"
 
734
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\CsoundQt-f.exe" "" "" "" "" "" " CsoundQt"
724
735
!else
725
 
#    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\CsoundQt-d.exe" "" "" "" "" "" " CsoundQt"
726
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\qutecsound-d.exe" "" "" "" "" "" " QuteCsound"
 
736
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt.lnk" "$INSTDIR\bin\CsoundQt-d.exe" "" "" "" "" "" " CsoundQt"
727
737
!endif
728
738
    SetOutPath $INSTDIR\bin
729
739
      File ..\..\csnd.dll
730
740
      # CsoundQt
731
 
      File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtCore4.dll
732
 
      File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtGui4.dll
733
 
      File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtXml4.dll
 
741
      File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtCore4.dll
 
742
      File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtGui4.dll
 
743
      File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtXml4.dll
734
744
!ifdef FLOAT
735
 
      #File C:\utah\opt\qcs-build-desktop\bin\CsoundQt-f.exe
736
 
      File C:\utah\opt\qutecsound-0.6.1\qutecsound-0.6.1\bin\qutecsound-f.exe
 
745
      File C:\utah\opt\qutecsound\bin\CsoundQt-f.exe
737
746
!else
738
 
      #File C:\utah\opt\qcs-build-desktop\bin\CsoundQt-d.exe
739
 
      File C:\utah\opt\qutecsound-0.6.1\qutecsound-0.6.1\bin\qutecsound-d.exe
 
747
      File C:\utah\opt\qutecsound\bin\CsoundQt-d.exe
740
748
!endif
741
749
  SectionEnd
742
750
!ifdef NONFREE
761
769
#   SectionEnd
762
770
  Section /o "tclcsound (requires TCL/Tk)"
763
771
    SectionIn 2
 
772
    SetOutPath $INSTDIR\${OPCODEDIR_VAL}    
 
773
      File ..\..\tclcsound.dll
764
774
    SetOutPath $INSTDIR\bin
765
775
      File ..\..\cswish.exe
766
776
      CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\cswish.lnk" "$INSTDIR\bin\cswish.exe" "" "" "" "" "" "Csound wish (tcl/tk)"
821
831
  SectionGroup "Lua (luajit included)"
822
832
    Section "luaCsnd: Lua interface to Csound"
823
833
      SectionIn 2 3
 
834
        SetOutPath $INSTDIR\${OPCODEDIR_VAL}    
 
835
        File ..\..\LuaCsound.dll
824
836
      SetOutPath $INSTDIR\bin
825
837
        File C:\utah\opt\luajit\src\lua51.dll
826
838
        File C:\utah\opt\luajit\src\luajit.exe
832
844
    Section "luaCsoundAC: Lua interface to CsoundAC"
833
845
      SectionIn 2 3
834
846
      CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\luajit.lnk" "$INSTDIR\bin\luajit.exe" "" "" "" "" "" "Lua JIT shell"
 
847
        SetOutPath $INSTDIR\${OPCODEDIR_VAL}    
 
848
        File ..\..\LuaCsound.dll
835
849
      SetOutPath $INSTDIR\bin
836
850
        File C:\utah\opt\luajit\src\lua51.dll
837
851
        File C:\utah\opt\luajit\src\luajit.exe
871
885
        File ..\..\_CsoundAC.pyd  
872
886
        File ..\..\CsoundAC.py
873
887
    SectionEnd
874
 
    #Section /o "CsoundQt-Py (user-defined widgets with PythonQt support)"
875
 
    Section /o "QuteCsound-Py (user-defined widgets with PythonQt support)"
 
888
    Section /o "CsoundQt-Py (user-defined widgets with PythonQt support)"
876
889
      SectionIn 2
877
890
    !ifdef FLOAT
878
 
        #CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\CsoundQt-f-py.exe" "" "" "" "" "" " CsoundQt-py"
879
 
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\qutecsound-f-py.exe" "" "" "" "" "" " QuteCsound-py"
 
891
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\CsoundQt-f-py.exe" "" "" "" "" "" " CsoundQt-py"
880
892
    !else
881
 
        #CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\CsoundQt-d-py.exe" "" "" "" "" "" " CsoundQt-py"
882
 
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\qutecsound-d-py.exe" "" "" "" "" "" " QuteCsound-py"
 
893
        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\csoundqt-py.lnk" "$INSTDIR\bin\CsoundQt-d-py.exe" "" "" "" "" "" " CsoundQt-py"
883
894
    !endif
884
895
        SetOutPath $INSTDIR\bin
885
896
          File ..\..\csnd.dll
886
897
          # CsoundQt
887
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtCore4.dll
888
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtGui4.dll
889
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtXml4.dll
890
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtNetwork4.dll
891
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtOpenGL4.dll
892
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtSql4.dll
893
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtSvg4.dll
894
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\QtWebKit4.dll
895
 
          File C:\utah\opt\Qt\Desktop\Qt\4.7.4\mingw\bin\phonon4.dll
 
898
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtCore4.dll
 
899
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtGui4.dll
 
900
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtXml4.dll
 
901
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtNetwork4.dll
 
902
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtOpenGL4.dll
 
903
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtSql4.dll
 
904
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtSvg4.dll
 
905
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\QtWebKit4.dll
 
906
          File C:\utah\opt\Qt\Desktop\Qt\4.8.0\mingw\bin\phonon4.dll
896
907
          File C:\utah\opt\PythonQt-build-desktop\lib\PythonQt_QtAll.dll
897
908
          File C:\utah\opt\PythonQt-build-desktop\lib\PythonQt.dll
898
909
    !ifdef FLOAT
899
 
          #File C:\utah\opt\qcs-build-desktop\bin\CsoundQt-f-py.exe
900
 
          File C:\utah\opt\qutecsound-0.6.1\qutecsound-0.6.1\bin\qutecsound-f-py.exe
 
910
          File C:\utah\opt\qutecsound\bin\CsoundQt-f-py.exe
901
911
    !else
902
 
          #File C:\utah\opt\qcs-build-desktop\bin\CsoundQt-d-py.exe
903
 
          File C:\utah\opt\qutecsound-0.6.1\qutecsound-0.6.1\bin\qutecsound-d-py.exe
 
912
          File C:\utah\opt\qutecsound\bin\CsoundQt-d-py.exe
904
913
    !endif
905
914
      SectionEnd
906
915
  SectionGroupEnd 
930
939
        RMDir /r $INSTDIR
931
940
        !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
932
941
        Delete "$SMPROGRAMS\$MUI_TEMP\Csound.lnk"
 
942
        Delete "$SMPROGRAMS\$MUI_TEMP\pa_devs.lnk"
933
943
        Delete "$SMPROGRAMS\$MUI_TEMP\License.lnk"
934
944
        Delete "$SMPROGRAMS\$MUI_TEMP\Manual.lnk"
935
945
        Delete "$SMPROGRAMS\$MUI_TEMP\Tutorial.lnk"
951
961
        IfErrors startMenuDeleteLoopDone
952
962
        StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
953
963
startMenuDeleteLoopDone:
954
 
        Push $INSTDIR
 
964
        Push $INSTDIR\bin
955
965
        Call un.RemoveFromPath
956
966
        Push "CSOUNDRC"
957
967
        Call un.DeleteEnvStr 
958
968
        Push ${OPCODEDIR_ENV}
959
969
        Call un.DeleteEnvStr 
960
 
!ifdef NONFREE
961
 
        Push "RAWWAVE_PATH"
962
 
        Call un.DeleteEnvStr 
963
 
!endif
 
970
    Push "RAWWAVE_PATH"
 
971
    Call un.DeleteEnvStr 
 
972
        Push ";$INSTDIR\bin"
 
973
        Call un.RemoveFromPythonPath
964
974
        Push "SFOUTYP"
965
975
        Call un.DeleteEnvStr
966
976
        DeleteRegKey /ifempty HKCU "Software\${PRODUCT}"