Mercurial > mxe-octave
annotate src/vmime.mk @ 724:20bb3a6a9c81
use prefixed pkg-config in package vmime
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 12 Feb 2010 15:53:51 +0100 |
parents | 1d0d78bf2dd2 |
children | ffb2ba1e62be |
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 |
1d0d78bf2dd2
upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents:
719
diff
changeset
|
26 $(SED) "s/'-ansi', //;" -i '$(1)/SConstruct' |
1d0d78bf2dd2
upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents:
719
diff
changeset
|
27 $(SED) "s/'-pedantic', //;" -i '$(1)/SConstruct' |
724
20bb3a6a9c81
use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
723
diff
changeset
|
28 $(SED) 's/pkg-config/$(TARGET)-pkg-config/g;' -i '$(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 |
704
93f1be1d2089
use glibtoolize instead of libtoolize where appropriate (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
683
diff
changeset
|
35 $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,' -i '$(1)'/bootstrap |
683
9a35ed88357b
use the autotools for package vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
36 cd '$(1)' && ./bootstrap |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 cd '$(1)' && ./configure \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --prefix='$(PREFIX)/$(TARGET)' \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --host='$(TARGET)' \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 --disable-shared \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 --enable-platform-windows \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 --disable-rpath \ |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 --disable-dependency-tracking |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 |
719
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
45 # Add the missing "a" suffix for the library. |
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
46 # Otherwise, we get a "libvmime.la" that refers to "libvimime." |
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
47 $(SED) 's/^libext=$$/libext=a/;' -i '$(1)/libtool' |
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
48 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 # Disable VMIME_HAVE_MLANG_H |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 # We have the header, but there is no implementation for IMultiLanguage in MinGW |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 $(SED) 's,^#define VMIME_HAVE_MLANG_H 1$$,,' -i '$(1)/vmime/config.hpp' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
52 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
53 $(MAKE) -C '$(1)' -j '$(JOBS)' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 $(MAKE) -C '$(1)' install |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
55 endef |