Mercurial > mxe-octave
annotate src/vmime.mk @ 2988:aca8511e7751
qt.mk: link to correct files in bin directory
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 May 2013 13:32:57 -0400 |
parents | 053e00ca567e |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1668
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See 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 PKG := vmime |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
2851 | 6 $(PKG)_CHECKSUM := 670aaecfbab41747e3a8f1d80dd757eb01ac93cb |
2847
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
7 $(PKG)_SUBDIR := kisli-vmime-$($(PKG)_VERSION) |
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
9 $(PKG)_URL := https://github.com/kisli/vmime/tarball/$($(PKG)_VERSION)/$(PKG)_FILE |
998
1b1c09973721
upgrade package vmime to 0.9.1-svn-r551
Mark Brand <mabrand@mabrand.nl>
parents:
995
diff
changeset
|
10 $(PKG)_DEPS := gcc libiconv gnutls libgsasl pthreads zlib |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2847
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
13 $(WGET) -q -O- 'https://github.com/kisli/vmime/commits/master' | \ |
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
14 $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\1#p' | \ |
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
15 head -1 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
2848 | 19 cd '$(1)' && cmake \ |
20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | |
21 -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ | |
22 -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ | |
23 . | |
719
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
24 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 # Disable VMIME_HAVE_MLANG_H |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 # 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
|
27 $(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
|
28 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 $(MAKE) -C '$(1)' install |
2848 | 31 $(INSTALL) -m644 '$(1)/vmime/config.hpp' '$(PREFIX)/$(TARGET)/include/vmime/' |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
32 |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
33 $(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
|
34 $(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
|
35 '$(1)/examples/example6.cpp' \ |
2848 | 36 `'$(TARGET)-pkg-config' libvmime --cflags --libs` |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
37 $(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
|
38 endef |