components/desktop/thunderbird/Makefile
changeset 5258 b65b95ac3d37
parent 5256 1c3e20e70cc3
child 5307 7e9a56e73fc8
equal deleted inserted replaced
5257:0da26ce015ab 5258:b65b95ac3d37
    45 TPNO=			22326
    45 TPNO=			22326
    46 
    46 
    47 # There are a set of .xpi files (as given in the LANG_LIST definition below)
    47 # There are a set of .xpi files (as given in the LANG_LIST definition below)
    48 # that we need. These are available under:
    48 # that we need. These are available under:
    49 # http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
    49 # http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/31.6.0/linux-i686/xpi/
    50 # This downloads the xpis. 
    50 # We could download and unpack them individually, but instead I've created
       
    51 # a compressed tarball of them, and made that available locally for download.
       
    52 # Downloading them individually can be a problem because firefox/thunderbird 
       
    53 # collide due to different files with identical .xpi names. 
       
    54 COMPONENT_ARCHIVE_1 =   thunderbird-31.6.0-xpi.tar.gz
       
    55 COMPONENT_ARCHIVE_HASH_1 = \
       
    56     sha256:80e9cc4b152d75f5c3887c01ad1767680aff5ca7c3aee87254bdc1574590b95e
       
    57 COMPONENT_ARCHIVE_URL_1 =       $(INTERNAL_ARCHIVE_MIRROR)/source-archives/$(COMPONENT_ARCHIVE_1)
    51 
    58 
    52 LANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
    59 LANG_LIST = ar bg ca cs da de el es-AR es-ES et eu fi \
    53 	fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
    60 	fr gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl \
    54 	pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-TW
    61 	pt-BR pt-PT ro ru sk sl sq sv-SE tr uk zh-CN zh-TW
    55 
       
    56 COMPONENT_PREP_ACTION += \
       
    57         ($(MKDIR) xpi ; \
       
    58         cd xpi ; \
       
    59         for l in $(LANG_LIST) ; do \
       
    60                 $(WS_TOOLS)/userland-fetch --file $$l.xpi --url $(MOZILLA_FTP)/linux-i686/xpi/ ; \
       
    61         done ; )
       
    62 
    62 
    63 include $(WS_MAKE_RULES)/prep.mk
    63 include $(WS_MAKE_RULES)/prep.mk
    64 include $(WS_MAKE_RULES)/configure.mk
    64 include $(WS_MAKE_RULES)/configure.mk
    65 include $(WS_MAKE_RULES)/ips.mk
    65 include $(WS_MAKE_RULES)/ips.mk
    66 
    66 
   129 COMPONENT_POST_INSTALL_ACTION += \
   129 COMPONENT_POST_INSTALL_ACTION += \
   130 	$(CP) -r $(BUILD_DIR_32)/mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
   130 	$(CP) -r $(BUILD_DIR_32)/mozilla/dist/bin/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} \
   131 		$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} ;
   131 		$(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103} ;
   132 
   132 
   133 COMPONENT_POST_INSTALL_ACTION += \
   133 COMPONENT_POST_INSTALL_ACTION += \
       
   134         $(RM) -rf xpi ; \
       
   135         /usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) > /dev/null 2>&1 ; \
   134         list1='$(LANG_LIST)' ; for f in $$list1 ; do \
   136         list1='$(LANG_LIST)' ; for f in $$list1 ; do \
   135             $(CP) xpi/$$f.xpi \
   137             $(CP) xpi/$$f.xpi \
   136                 $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/[email protected] ; \
   138                 $(PROTOUSRLIBDIR)/thunderbird-$(COMPONENT_VERSION)/extensions/[email protected] ; \
   137         done ;
   139         done ;
   138 
   140