Mercurial > pidgin
comparison Makefile.mingw @ 29819:10bf97a36be0
propagate from branch 'im.pidgin.pidgin' (head 96b27a20c7250b87761a8bd4f5540bf1fa32b6f4)
to branch 'im.pidgin.cpw.malu.ft_thumbnails' (head 230fd6c21fdf1ed459a653bcd9808880a36204c3)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Tue, 09 Mar 2010 21:41:55 +0000 |
parents | daa02d44df13 |
children | 7fc10a9275ea |
comparison
equal
deleted
inserted
replaced
29818:fd354d0bfbc0 | 29819:10bf97a36be0 |
---|---|
29 } \ | 29 } \ |
30 printf("%s.%s.%s.%s", $$1, $$2, int($$3), $$4); \ | 30 printf("%s.%s.%s.%s", $$1, $$2, int($$3), $$4); \ |
31 exit; \ | 31 exit; \ |
32 }' VERSION) | 32 }' VERSION) |
33 | 33 |
34 GTK_INSTALL_VERSION = $(shell \ | 34 GTK_INSTALL_VERSION = 2.14.7.0 |
35 source ../gtk_installer/version.sh; \ | |
36 echo $$gtk_version \ | |
37 ) | |
38 | 35 |
39 STRIPPED_RELEASE_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-win32bin | 36 STRIPPED_RELEASE_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-win32bin |
40 DEBUG_SYMBOLS_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-dbgsym | 37 DEBUG_SYMBOLS_DIR = $(PIDGIN_TREE_TOP)/pidgin-$(PIDGIN_VERSION)-dbgsym |
41 | 38 |
42 | 39 |
43 # 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 |
44 # 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 |
45 EXTERNAL_DLLS = \ | 42 EXTERNAL_DLLS = \ |
46 comerr32.dll \ | 43 comerr32.dll \ |
44 exchndl.dll \ | |
47 freebl3.dll \ | 45 freebl3.dll \ |
48 gssapi32.dll \ | 46 gssapi32.dll \ |
49 k5sprt32.dll \ | 47 k5sprt32.dll \ |
50 krb5_32.dll \ | 48 krb5_32.dll \ |
51 libgtkspell.dll \ | 49 libenchant.dll \ |
50 libgtkspell-0.dll \ | |
52 libmeanwhile-1.dll \ | 51 libmeanwhile-1.dll \ |
52 libnspr4.dll \ | |
53 libplc4.dll \ | |
54 libplds4.dll \ | |
53 libsasl.dll \ | 55 libsasl.dll \ |
54 libxml2.dll \ | 56 libxml2.dll \ |
55 nspr4.dll \ | |
56 nss3.dll \ | 57 nss3.dll \ |
57 nssckbi.dll \ | 58 nssckbi.dll \ |
58 plc4.dll \ | 59 nssutil3.dll \ |
59 plds4.dll \ | |
60 saslANONYMOUS.dll \ | 60 saslANONYMOUS.dll \ |
61 saslCRAMMD5.dll \ | 61 saslCRAMMD5.dll \ |
62 saslDIGESTMD5.dll \ | 62 saslDIGESTMD5.dll \ |
63 saslGSSAPI.dll \ | 63 saslGSSAPI.dll \ |
64 saslLOGIN.dll \ | 64 saslLOGIN.dll \ |
65 saslPLAIN.dll \ | 65 saslPLAIN.dll \ |
66 libsilc-1-1-2.dll \ | 66 libsilc-1-1-2.dll \ |
67 libsilcclient-1-1-2.dll \ | 67 libsilcclient-1-1-2.dll \ |
68 smime3.dll \ | 68 smime3.dll \ |
69 softokn3.dll \ | 69 softokn3.dll \ |
70 sqlite3.dll \ | |
70 ssl3.dll | 71 ssl3.dll |
71 | 72 |
72 #build an expression for `find` to use to ignore the above files | 73 #build an expression for `find` to use to ignore the above files |
73 EXTERNAL_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(EXTERNAL_DLLS)) | 74 EXTERNAL_DLLS_FIND_EXP = $(patsubst %,-o -name %,$(EXTERNAL_DLLS)) |
74 | 75 |
75 .PHONY: all docs install installer installer_offline installer_zip debug_symbols_zip installers clean uninstall create_release_install_dir generate_translations_installer_include $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT) | 76 .PHONY: all docs install installer installer_offline installer_zip debug_symbols_zip installers clean uninstall create_release_install_dir generate_installer_includes $(PIDGIN_REVISION_H) $(PIDGIN_REVISION_RAW_TXT) |
76 | 77 |
77 all: $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H) | 78 all: $(PIDGIN_CONFIG_H) $(PIDGIN_REVISION_H) |
78 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) | 79 $(MAKE) -C $(PURPLE_TOP) -f $(MINGW_MAKEFILE) |
79 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) | 80 $(MAKE) -C $(PIDGIN_TOP) -f $(MINGW_MAKEFILE) |
80 ifndef DISABLE_NLS | 81 ifndef DISABLE_NLS |
87 ifndef DISABLE_NLS | 88 ifndef DISABLE_NLS |
88 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) install | 89 $(MAKE) -C $(PURPLE_PO_TOP) -f $(MINGW_MAKEFILE) install |
89 endif | 90 endif |
90 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) install | 91 $(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) install |
91 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install | 92 $(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install |
93 mkdir -p $(PIDGIN_INSTALL_DIR)/spellcheck | |
94 cp $(GTKSPELL_TOP)/bin/libgtkspell-0.dll $(PIDGIN_INSTALL_DIR)/spellcheck | |
95 cp $(ENCHANT_TOP)/bin/libenchant.dll $(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) | |
92 | 98 |
93 generate_translations_installer_include: create_release_install_dir | 99 pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip: |
94 rm -f pidgin/win32/nsis/pidgin-translations.nsh | 100 pidgin/win32/nsis/generate_gtk_zip.sh `pwd` |
101 | |
102 generate_installer_includes: create_release_install_dir pidgin/win32/nsis/gtk-runtime-$(GTK_BUNDLE_VERSION).zip debug_symbols_zip | |
103 rm -f pidgin/win32/nsis/pidgin-translations.nsh pidgin/win32/nsis/pidgin-spellcheck.nsh pidgin/win32/nsis/pidgin-spellcheck-preselect.nsh | |
95 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \ | 104 find $(STRIPPED_RELEASE_DIR)/locale -maxdepth 1 -mindepth 1 \ |
96 -exec basename {} ';' \ | 105 -exec basename {} ';' \ |
97 | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \ | 106 | sed -e s/^/\!insertmacro\ LANG_SECTION\ \"/ -e s/$$/\"/ \ |
98 > 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 | |
99 | 120 |
100 create_release_install_dir: install | 121 create_release_install_dir: install |
101 rm -rf $(STRIPPED_RELEASE_DIR) | 122 rm -rf $(STRIPPED_RELEASE_DIR) |
102 cp -R $(PIDGIN_INSTALL_DIR) $(STRIPPED_RELEASE_DIR) | 123 mkdir $(STRIPPED_RELEASE_DIR) |
124 tar -cf - $(PIDGIN_INSTALL_DIR) --exclude=Gtk --exclude=spellcheck/share \ | |
125 | tar --strip 2 -xC $(STRIPPED_RELEASE_DIR) -f - | |
103 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \ | 126 find $(STRIPPED_RELEASE_DIR) \( -name '*.dll' -o -name '*.exe' \) \ |
104 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \ | 127 -not \( -false $(EXTERNAL_DLLS_FIND_EXP) \) \ |
105 -exec $(STRIP) --strip-unneeded {} ';' | 128 -exec $(STRIP) --strip-unneeded {} ';' |
106 | 129 |
107 installer: create_release_install_dir generate_translations_installer_include | 130 installer: generate_installer_includes |
108 $(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 |
109 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./ | 132 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION).exe ./ |
110 | 133 |
111 installer_offline: create_release_install_dir generate_translations_installer_include debug_symbols_zip | 134 installer_offline: generate_installer_includes |
112 $(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 |
113 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./ | 136 mv pidgin/win32/nsis/pidgin-$(PIDGIN_VERSION)-offline.exe ./ |
114 | 137 |
115 installer_zip: create_release_install_dir | 138 installer_zip: create_release_install_dir |
116 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip | 139 rm -f pidgin-$(PIDGIN_VERSION)-win32-bin.zip |