eea4acfec8bce0ae0fb9f931ab061d7d3e4366a2
[gpg4win.git] / patches / claws-mail-3.0.0-rc2 / 02-w32-icon.patch
1 #! /bin/sh
2 patch -p1 -f $* < $0
3 exit $?
4
5 For the logo, see actually 01-w32-logo.patch.
6
7 2007-07-02  Marcus Brinkmann <mb@g10code.com>
8
9         * w32-resource.rc: New file.
10         * w32-logo.ico: New file.
11         * src/Makefile.am: Define rules to compile resource files.
12         (claws_mail_LDFLAGS): Add $(claws_mail_res_ldflag).
13         (claws_mail_DEPENDENCIES): Add $(claws_mail_deps).
14         (EXTRA_DIST): Add w32-logo.ico and w32-resource.rc.
15
16 diff -rupN claws-mail-3.0.0-rc2-after-01/src/Makefile.am claws-mail-3.0.0-rc2/src/Makefile.am
17 --- claws-mail-3.0.0-rc2-after-01/src/Makefile.am       2007-08-10 12:58:31.000000000 +0200
18 +++ claws-mail-3.0.0-rc2/src/Makefile.am        2007-08-10 16:31:35.000000000 +0200
19 @@ -14,6 +14,21 @@ install-exec-hook:
20         @rm -f $(DESTDIR)$(bindir)/sylpheed-claws
21         @ln -s claws-mail $(DESTDIR)$(bindir)/sylpheed-claws
22  
23 +if PLATFORM_WIN32
24 +LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
25 +     `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
26 +     sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
27 +
28 +%.o : %.rc
29 +       $(LTRCCOMPILE) -i $< -o $@
30 +
31 +claws_mail_res_ldflag = -Wl,w32-resource.o
32 +claws_mail_deps = w32-resource.o
33 +else
34 +claws_mail_res_ldflag =
35 +claws_mail_deps =
36 +endif
37 +
38  claws_mail_SOURCES = \
39         account.c \
40         action.c \
41 @@ -305,6 +320,7 @@ BUILT_SOURCES = \
42         quote_fmt_parse.h
43  
44  EXTRA_DIST = \
45 +       w32-logo.ico w32-resource.rc \
46         pixmaps/addr_one.xpm \
47         pixmaps/addr_two.xpm \
48         pixmaps/address_book.xpm \
49 @@ -464,7 +480,11 @@ arch_ldflags :=
50  endif
51  
52  claws_mail_LDFLAGS = \
53 -       $(arch_ldflags) -export-dynamic
54 +       $(arch_ldflags) -export-dynamic $(claws_mail_res_ldflag)
55 +
56 +claws_mail_DEPENDENCIES = $(claws_mail_deps) \
57 +       $(etpan_library) \
58 +       gtk/libclawsgtk.la
59  
60  claws_mail_LDADD = \
61         $(etpan_library) \
62 diff -rupN claws-mail-3.0.0-rc2-after-01/src/w32-resource.rc claws-mail-3.0.0-rc2/src/w32-resource.rc
63 --- claws-mail-3.0.0-rc2-after-01/src/w32-resource.rc   1970-01-01 01:00:00.000000000 +0100
64 +++ claws-mail-3.0.0-rc2/src/w32-resource.rc    2007-08-10 16:31:35.000000000 +0200
65 @@ -0,0 +1 @@
66 +1 ICON "w32-logo.ico"