Fixed bug #830: pkg-config support. YAZ installs yaz.pc for Debian
[yaz-moved-to-github.git] / win / yaz.nsi
index 1879dfe..a2034ce 100644 (file)
@@ -1,7 +1,14 @@
-; $Id: yaz.nsi,v 1.84 2006-06-02 13:17:23 adam Exp $
+; $Id: yaz.nsi,v 1.103 2007-01-23 19:31:12 adam Exp $
 
-!define VERSION "2.1.20"
-!define VS_RUNTIME_LOCATION "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin"
+!define VERSION "2.1.48"
+
+; Microsoft runtime CRT
+; VS 2003
+!define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
+
+; VS 2005
+;!define VS_RUNTIME_DLL      "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
+;!define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest"
 
 !include "MUI.nsh"
 
@@ -84,12 +91,14 @@ Section "YAZ Runtime" YAZ_Runtime
        ExecWait '"$INSTDIR\bin\yaz-ztest.exe" -remove'
 Noservice:
        SetOutPath $INSTDIR\bin
-       File "${VS_RUNTIME_LOCATION}\msvcr71.dll"
+       File "${VS_RUNTIME_DLL}"
+;      File "${VS_RUNTIME_MANIFEST}"
        File ..\bin\iconv.dll
        File ..\bin\zlib1.dll
        File ..\bin\libxml2.dll
        File ..\bin\libxslt.dll
        File ..\bin\yaz.dll
+;      File ..\bin\*.manifest
        File ..\bin\*.exe
        SetOutPath $SMPROGRAMS\YAZ
        CreateShortCut "$SMPROGRAMS\YAZ\YAZ Client.lnk" \
@@ -109,17 +118,12 @@ Section "YAZ Development" YAZ_Development
        File ..\include\yaz\*.h
        SetOutPath $INSTDIR\lib
        File ..\lib\yaz.lib
-       File ..\lib\yazd.lib
-       SetOutPath $INSTDIR\bin
-       File ..\bin\yazd.dll
 SectionEnd
 
 Section "YAZ Documentation" YAZ_Documentation
        SectionIn 1 2
        SetOutPath $INSTDIR\doc
        File /r ..\doc\*.css
-       File /r ..\doc\*.dcl
-       File /r ..\doc\*.dsl
        File /r ..\doc\*.ent
        File /r ..\doc\*.html
        File /r ..\doc\*.xml