Mercurial > mxe-octave
annotate src/vmime.mk @ 1668:4ee38be1b1cd
package vmime: fix and use .pc file
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 17 Mar 2011 01:22:52 +0100 |
parents | 9e587ca588dc |
children | f653602a0500 |
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 := |
1379
5daa178344e4
upgrade package vmime to 0.9.1
Mark Brand <mabrand@mabrand.nl>
parents:
1354
diff
changeset
|
7 $(PKG)_VERSION := 0.9.1 |
5daa178344e4
upgrade package vmime to 0.9.1
Mark Brand <mabrand@mabrand.nl>
parents:
1354
diff
changeset
|
8 $(PKG)_CHECKSUM := 3e8dd8855e423db438d465777efeb523c4abb5f3 |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1392
diff
changeset
|
9 $(PKG)_SUBDIR := lib$(PKG)-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1466
diff
changeset
|
10 $(PKG)_FILE := lib$(PKG)-$($(PKG)_VERSION).tar.bz2 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://vmime.sourceforge.net/ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1392
diff
changeset
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(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 |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1392
diff
changeset
|
16 wget -q -O- 'http://sourceforge.net/projects/vmime/files/vmime/' | \ |
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1392
diff
changeset
|
17 $(SED) -n 's,.*libvmime-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
474
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' |
1392
d9e9cd58ca3a
bugfix in package vmime: use $(TARGET) instead of i686-pc-mingw32
Volker Grabsch <vog@notjusthosting.com>
parents:
1379
diff
changeset
|
52 $(TARGET)-g++ -s -o '$(1)/examples/test-vmime.exe' \ |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
53 '$(1)/examples/example6.cpp' \ |
1668
4ee38be1b1cd
package vmime: fix and use .pc file
Mark Brand <mabrand@mabrand.nl>
parents:
1499
diff
changeset
|
54 `'$(TARGET)-pkg-config' vmime --cflags --libs` |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
55 $(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
|
56 endef |