Mercurial > mxe-octave
annotate src/vmime.mk @ 933:4c802d4d71ca
disable threading support explicitly because it doesn't work anyway in package vmime
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 02 May 2010 17:23:55 +0200 |
parents | d6fee27eaaa0 |
children | ca1299bb06e3 |
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) |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(PKG)_DEPS := gcc libiconv gnutls libgsasl |
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 \ |
933
4c802d4d71ca
disable threading support explicitly because it doesn't work anyway in package vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
830
diff
changeset
|
42 --disable-dependency-tracking \ |
4c802d4d71ca
disable threading support explicitly because it doesn't work anyway in package vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
830
diff
changeset
|
43 --without-pthread |
719
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
44 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 # Disable VMIME_HAVE_MLANG_H |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 # 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
|
47 $(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
|
48 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 $(MAKE) -C '$(1)' -j '$(JOBS)' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 $(MAKE) -C '$(1)' install |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 endef |