comparison Makefile.mingw @ 29533:daa02d44df13

Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 05 Mar 2010 03:53:52 +0000
parents b248178bc7b0
children 7fc10a9275ea
comparison
equal deleted inserted replaced
29532:406c2e1ef7ce 29533:daa02d44df13
39 39
40 # Any *.dll or *.exe files included in win32-install-dir that we don't compile 40 # Any *.dll or *.exe files included in win32-install-dir that we don't compile
41 # should be included in this list so they don't get stripped 41 # should be included in this list so they don't get stripped
42 EXTERNAL_DLLS = \ 42 EXTERNAL_DLLS = \
43 comerr32.dll \ 43 comerr32.dll \
44 exchndl.dll \
44 freebl3.dll \ 45 freebl3.dll \
45 gssapi32.dll \ 46 gssapi32.dll \
46 k5sprt32.dll \ 47 k5sprt32.dll \
47 krb5_32.dll \ 48 krb5_32.dll \
48 libenchant.dll \ 49 libenchant.dll \
91 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install 92 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install
92 mkdir -p $(PIDGIN_INSTALL_DIR)/spellcheck 93 mkdir -p $(PIDGIN_INSTALL_DIR)/spellcheck
93 cp $(GTKSPELL_TOP)/bin/libgtkspell-0.dll $(PIDGIN_INSTALL_DIR)/spellcheck 94 cp $(GTKSPELL_TOP)/bin/libgtkspell-0.dll $(PIDGIN_INSTALL_DIR)/spellcheck
94 cp $(ENCHANT_TOP)/bin/libenchant.dll $(PIDGIN_INSTALL_DIR)/spellcheck 95 cp $(ENCHANT_TOP)/bin/libenchant.dll $(PIDGIN_INSTALL_DIR)/spellcheck
95 cp -R $(ENCHANT_TOP)/lib $(PIDGIN_INSTALL_DIR)/spellcheck 96 cp -R $(ENCHANT_TOP)/lib $(PIDGIN_INSTALL_DIR)/spellcheck
97 cp $(WIN32_DEV_TOP)/pidgin-inst-deps-20100223/exchndl.dll $(PIDGIN_INSTALL_DIR)
96 98
97 pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip: 99 pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip:
98 pidgin/win32/nsis/generate_gtk_zip.sh `pwd` 100 pidgin/win32/nsis/generate_gtk_zip.sh `pwd`
99 101
100 generate_installer_includes: create_release_install_dir pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip 102 generate_installer_includes: create_release_install_dir pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip debug_symbols_zip
101 rm -f pidgin/win32/nsis/pidgin-translations.nsh 103 rm -f pidgin/win32/nsis/pidgin-translations.nsh pidgin/win32/nsis/pidgin-spellcheck.nsh pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
102 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \ 104 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \
103 -exec basename {} ';' \ 105 -exec basename {} ';' \
104 | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \ 106 | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \
105 > pidgin/win32/nsis/pidgin-translations.nsh 107 > pidgin/win32/nsis/pidgin-translations.nsh
108 #Convert the available.lst lines to "!insertmacro SPELLCHECK_SECTION lang lang_name lang_file"
109 sed -e "/^#/d" -e "s/^[^,]\{1,\},[^,]\{1,\},/\"/" \
110 -e "s/,/\"\ \"/" -e "s/,/\"\ \"/" -e "s/[\ \t]*$$/\"/" \
111 -e "s/^/\!insertmacro\ SPELLCHECK_SECTION\ /" \
112 pidgin/win32/nsis/available.lst \
113 > pidgin/win32/nsis/pidgin-spellcheck.nsh
114 #Convert the lines to "!insertmacro CHECK_SPELLCHECK_SECTION lang"
115 iconv -f latin1 -t utf-8 pidgin/win32/nsis/pidgin-spellcheck.nsh | \
116 sed -e "s/SPELLCHECK_SECTION/CHECK_SPELLCHECK_SECTION/" \
117 -e "s/ \"[^\"]*\"\ \"[^\"]*\"[\t\ ]*$$//" | \
118 iconv -f utf-8 -t latin1 \
119 > pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh
106 120
107 create_release_install_dir: install 121 create_release_install_dir: install
108 rm -rf $(STRIPPED_RELEASE_DIR) 122 rm -rf $(STRIPPED_RELEASE_DIR)
109 mkdir $(STRIPPED_RELEASE_DIR) 123 mkdir $(STRIPPED_RELEASE_DIR)
110 tar -cf - $(PIDGIN_INSTALL_DIR) --exclude=Gtk --exclude=exchndl.dll --exclude=spellcheck \ 124 tar -cf - $(PIDGIN_INSTALL_DIR) --exclude=Gtk --exclude=spellcheck/share \
111 | tar --strip 2 -xC $(STRIPPED_RELEASE_DIR) -f - 125 | tar --strip 2 -xC $(STRIPPED_RELEASE_DIR) -f -
112 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \ 126 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \
113 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \ 127 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \
114 -exec $(STRIP) --strip-unneeded {} ';' 128 -exec $(STRIP) --strip-unneeded {} ';'
115 129
116 installer: create_release_install_dir generate_installer_includes 130 installer: generate_installer_includes
117 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi 131 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi
118 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./ 132 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./
119 133
120 installer_offline: create_release_install_dir generate_installer_includes debug_symbols_zip 134 installer_offline: generate_installer_includes
121 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DOFFLINE_INSTALLER $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi 135 $(MAKENSIS) $(MAKENSISOPT)V3 $(MAKENSISOPT)DPIDGIN_VERSION="$(PIDGIN_VERSION)" $(MAKENSISOPT)DPIDGIN_PRODUCT_VERSION="$(PIDGIN_PRODUCT_VERSION)" $(MAKENSISOPT)DOFFLINE_INSTALLER $(MAKENSISOPT)DPIDGIN_INSTALL_DIR="$(STRIPPED_RELEASE_DIR)" $(MAKENSISOPT)DGTK_INSTALL_VERSION="$(GTK_INSTALL_VERSION)" pidgin/win32/nsis/pidgin-installer.nsi
122 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./ 136 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./
123 137
124 installer_zip: create_release_install_dir 138 installer_zip: create_release_install_dir
125 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip 139 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip