Mercurial > mxe-octave
annotate src/vmime.mk @ 998:1b1c09973721
upgrade package vmime to 0.9.1-svn-r551
Also added missing zlib dependency for test-vmime.exe.
r551 merges our previously used patch.
r547 | vincent-richard | 2010-05-18 15:52:27 +0200 (Tue, 18 May 2010) | 1 line
Added helper function to construct parsed message from net message. Splitted IMAP source files.
r548 | vincent-richard | 2010-05-20 11:57:51 +0200 (Thu, 20 May 2010) | 1 line
Fixed type size.
r549 | vincent-richard | 2010-05-20 12:00:19 +0200 (Thu, 20 May 2010) | 1 line
Fixed unit tests build on OSX.
r550 | vincent-richard | 2010-05-20 17:28:51 +0200 (Thu, 20 May 2010) | 1 line
Fixed case-sensitive include.
r551 | vincent-richard | 2010-05-21 08:01:33 +0200 (Fri, 21 May 2010) | 1 line
Fixed missing #include.
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 21 May 2010 09:26:45 +0200 |
parents | ca1299bb06e3 |
children | 405738cf5761 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
474
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
704
diff
changeset
|
2 # See doc/index.html for further information. |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 # VMime |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := vmime |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_IGNORE := |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_VERSION := 0.9.0 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_CHECKSUM := 02215e1d8ea758f486c32e7bff63a04f71a9b736 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := libvmime-$($(PKG)_VERSION) |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := libvmime-$($(PKG)_VERSION).tar.bz2 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://vmime.sourceforge.net/ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/vmime/vmime/0.9/$($(PKG)_FILE) |
998
1b1c09973721
upgrade package vmime to 0.9.1-svn-r551
Mark Brand <mabrand@mabrand.nl>
parents:
995
diff
changeset
|
13 $(PKG)_DEPS := gcc libiconv gnutls libgsasl pthreads zlib |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 define $(PKG)_UPDATE |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/vmime/files/vmime/) | \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 $(SED) -n 's,.*vmime-\([0-9][^>]*\)\.tar\.bz2.*,\1,p' | \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 tail -1 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 endef |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
724
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
22 # The configure script will make the real configuration, but |
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
23 # we need scons to generate configure.in, Makefile.am etc. |
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
24 # ansi and pedantic are too strict for mingw. |
723
1d0d78bf2dd2
upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents:
719
diff
changeset
|
25 # http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435 |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
745
diff
changeset
|
26 $(SED) -i "s/'-ansi', //;" '$(1)/SConstruct' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
745
diff
changeset
|
27 $(SED) -i "s/'-pedantic', //;" '$(1)/SConstruct' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
745
diff
changeset
|
28 $(SED) -i 's/pkg-config/$(TARGET)-pkg-config/g;' '$(1)/SConstruct' |
723
1d0d78bf2dd2
upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents:
719
diff
changeset
|
29 |
724
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
30 cd '$(1)' && scons autotools \ |
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
31 prefix='$(PREFIX)/$(TARGET)' \ |
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
32 target='$(TARGET)' \ |
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
33 sendmail_path=/sbin/sendmail |
723
1d0d78bf2dd2
upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents:
719
diff
changeset
|
34 |
683
9a35ed88357b
use the autotools for package vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
35 cd '$(1)' && ./bootstrap |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 cd '$(1)' && ./configure \ |
728
786f0c619b86
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
727
diff
changeset
|
37 --prefix='$(PREFIX)/$(TARGET)' \ |
786f0c619b86
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
727
diff
changeset
|
38 --host='$(TARGET)' \ |
786f0c619b86
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
727
diff
changeset
|
39 --disable-shared \ |
786f0c619b86
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
727
diff
changeset
|
40 --enable-platform-windows \ |
786f0c619b86
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
727
diff
changeset
|
41 --disable-rpath \ |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
42 --disable-dependency-tracking |
719
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
43 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 # Disable VMIME_HAVE_MLANG_H |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 # We have the header, but there is no implementation for IMultiLanguage in MinGW |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
745
diff
changeset
|
46 $(SED) -i 's,^#define VMIME_HAVE_MLANG_H 1$$,,' '$(1)/vmime/config.hpp' |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
47 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 $(MAKE) -C '$(1)' -j '$(JOBS)' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 $(MAKE) -C '$(1)' install |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
50 |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
51 $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
52 i686-pc-mingw32-g++ -s -o '$(1)/examples/test-vmime.exe' \ |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
53 -I'$(PREFIX)/$(TARGET)/include' \ |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
54 '$(1)/examples/example6.cpp' \ |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
55 -L'$(PREFIX)/$(TARGET)/lib' \ |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
56 -lvmime -lgnutls -lgsasl -lntlm -lgcrypt -lgpg-error -liconv -lidn -lz -lpthread -lws2_32 |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
57 $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(PREFIX)/$(TARGET)/bin/' |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
58 endef |