forked from sba1/simplemail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmmakefile.src
191 lines (162 loc) · 4.14 KB
/
mmakefile.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Meta-Makefile for AROS version of SimpleMail
include $(TOP)/config/make.cfg
#MM- contrib-simplemail : contrib-simplemail-bin
#MM contrib-simplemail-bin : includes linklibs linklibs-expat contrib-zune-classes-mailtext contrib-zune-classes-thebar \
#MM contrib-simplemail-arexx contrib-simplemail-charsets contrib-simplemail-images \
#MM contrib-simplemail-files contrib-simplemail-locale
#MM
contrib-simplemail-bin-quick : contrib-simplemail-bin
AMIGAMUI := \
vsnprintf \
utf8stringclass \
transwndclass \
tcpip \
sysprint \
support \
subthreads \
statuswnd \
startupwnd \
startup-aros \
smtoolbarclass \
signaturecycleclass \
shutdownwnd \
searchwnd \
readwnd \
progmonwnd \
popupmenuclass \
picturebuttonclass \
pgplistclass \
multistringclass \
muistuff \
mailtextview \
mainwnd \
mailtreelistclass \
mailtreelistclass-new \
mailinfoclass \
iconclass \
headers \
gui_main \
gettext \
folderwnd \
foldertreelistclass \
filterwnd \
filterruleclass \
filterlistclass \
errorwnd \
datatypesclass \
datatypescache \
configwnd_stuff \
configwnd \
composewnd \
composeeditorclass \
audioselectgroupclass \
attachmentlistclass \
archdebug \
arexx \
appicon \
amigasupport \
addressstringclass \
addressmatchlistclass \
addressgrouplistclass \
addressentrylistclass \
addressbookwnd \
accountpopclass
AMIGAMUIFILES := $(foreach f, $(AMIGAMUI), amiga-mui/$(f))
FILES := \
account \
addressbook \
atcleanup \
boyermoore \
codecs \
codesets \
configuration \
dbx \
debug \
estimate \
filter \
folder \
hash \
hmac_md5 \
http \
imap \
lists \
mail \
mbox \
md5 \
parse \
pgp \
phrase \
pop3 \
print \
progmon \
punycode \
signature \
simplemail \
smintl \
smtp \
spam \
status \
support_indep \
taglines \
tcp \
text2html \
trans \
$(AMIGAMUIFILES)
EXEDIR := $(AROS_CONTRIB)/Networking/Apps/SimpleMail
EXE := SimpleMail
USER_INCLUDES := -I$(SRCDIR)/$(CURDIR)/indep-include -I$(SRCDIR)/$(CURDIR)/amiga-mui -I$(SRCDIR)/$(CURDIR)
USER_CFLAGS := -DHAVE_OPENURL -DNO_SSL -D__USE_XOPEN2K8 -DSIMPLEMAIL_DATE=\"`date +%d.%m.%Y`\"
%build_prog mmake=contrib-simplemail-bin progname=$(EXE) files=$(FILES) \
targetdir=$(EXEDIR) uselibs="amiga arossupport mui expat"
# ############################################################################
LOCALEDIR := $(EXEDIR)/Locale/
#locale
LOCALEOBJS = $(LOCALEDIR)de.mo $(LOCALEDIR)fi.mo $(LOCALEDIR)ma.mo $(LOCALEDIR)pl.mo $(LOCALEDIR)es.mo $(LOCALEDIR)fr.mo
#MM
contrib-simplemail-locale: $(LOCALEOBJS)
$(LOCALEDIR)de.mo: po/de.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
$(LOCALEDIR)ma.mo: po/ma.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
$(LOCALEDIR)pl.mo: po/pl.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
$(LOCALEDIR)fi.mo: po/fi.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
$(LOCALEDIR)es.mo: po/es.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
$(LOCALEDIR)fr.mo: po/fr.po
@echo "Making $@..."
@mkdir -p $(LOCALEDIR)
@msgfmt $? -o $@
# ############################################################################
%copy_dir_recursive mmake=contrib-simplemail-arexx \
src=amiga-mui/ARexx dst=$(EXEDIR)/ARexx
%copy_dir_recursive mmake=contrib-simplemail-charsets \
src=Charsets dst=$(EXEDIR)/Charsets
%copy_dir_recursive mmake=contrib-simplemail-images \
src=amiga-mui/binaries/images/mason-24bit dst=$(EXEDIR)/Images
#MM
contrib-simplemail-files :
$(CP) $(SRCDIR)/$(CURDIR)/.taglines $(EXEDIR)/.taglines
$(CP) $(SRCDIR)/$(CURDIR)/doc/amiga/history.txt $(EXEDIR)/history.txt
$(CP) $(SRCDIR)/$(CURDIR)/doc/amiga/ReadMe $(EXEDIR)/ReadMe
$(CP) $(SRCDIR)/$(CURDIR)/amiga-mui/binaries/ReadMe.info $(EXEDIR)/ReadMe.info
$(CP) $(SRCDIR)/$(CURDIR)/doc/amiga/SimpleMail.guide $(EXEDIR)/SimpleMail.guide
$(CP) $(SRCDIR)/$(CURDIR)/amiga-mui/binaries/SimpleMail.guide.info $(EXEDIR)/SimpleMail.guide.info
$(CP) $(SRCDIR)/$(CURDIR)/amiga-mui/binaries/SimpleMail.info $(EXEDIR)/SimpleMail.info
# ############################################################################
#MM
contrib-simplemail-clean :
$(RM) $(EXEDIR)
$(RM) $(GENDIR)/$(CURDIR)
%common