2007-07-03 Marcus Brinkmann <marcus@g10code.de>
[gpg4win.git] / src / inst-sections.nsi
index df01609..d52751f 100644 (file)
@@ -62,6 +62,9 @@
 !ifdef HAVE_PKG_REGEX
 !include "inst-regex.nsi"
 !endif
+!ifdef HAVE_PKG_DIRMNGR
+!include "inst-dirmngr.nsi"
+!endif
 !ifdef HAVE_PKG_PTHREADS_W32
 !include "inst-pthreads-w32.nsi"
 !endif
 #!ifdef HAVE_PKG_EUDORAGPG
 #!include "uninst-eudoragpg.nsi"
 #!endif
-!ifdef HAVE_PKG_SYLPHEED_CLAWS
-!include "uninst-sylpheed-claws.nsi"
-!endif
 !ifdef HAVE_PKG_CLAWS_MAIL
 !include "uninst-claws-mail.nsi"
 !endif
+!ifdef HAVE_PKG_SYLPHEED_CLAWS
+!include "uninst-sylpheed-claws.nsi"
+!endif
 !ifdef HAVE_PKG_GPGEE
 !include "uninst-gpgee.nsi"
 !endif
 !ifdef HAVE_PKG_PTHREADS_W32
 !include "uninst-pthreads-w32.nsi"
 !endif
+!ifdef HAVE_PKG_DIRMNGR
+!include "uninst-dirmngr.nsi"
+!endif
 !ifdef HAVE_PKG_REGEX
 !include "uninst-regex.nsi"
 !endif
@@ -261,6 +267,9 @@ Function CalcDepends
 !ifdef HAVE_PKG_REGEX
   !insertmacro UnselectSection ${SEC_regex}
 !endif
+!ifdef HAVE_PKG_DIRMNGR
+  !insertmacro UnselectSection ${SEC_dirmngr}
+!endif
 !ifdef HAVE_PKG_PTHREADS_W32
   !insertmacro UnselectSection ${SEC_pthreads_w32}
 !endif
@@ -446,6 +455,16 @@ Function CalcDepends
   skip_libpng:
 !endif
 
+!ifdef HAVE_PKG_DIRMNGR
+  !insertmacro SectionFlagIsSet ${SEC_dirmngr} ${SF_SELECTED} have_dirmngr skip_dirmngr
+  have_dirmngr:
+  !insertmacro SelectSection ${SEC_libgcrypt}
+  !insertmacro SelectSection ${SEC_libksba}
+  !insertmacro SelectSection ${SEC_libassuan}
+  !insertmacro SelectSection ${SEC_libgpg_error}
+  skip_dirmngr:
+!endif
+
 !ifdef HAVE_PKG_GLIB
   !insertmacro SectionFlagIsSet ${SEC_glib} \
                ${SF_SELECTED} have_glib skip_glib