Mercurial > mxe-octave
annotate src/vmime.mk @ 5545:78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 02 Oct 2020 13:54:27 +0200 |
parents | d862fd40cc42 |
children | b19fb3ed330c |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := fc9bc26 |
2851 | 7 $(PKG)_CHECKSUM := 670aaecfbab41747e3a8f1d80dd757eb01ac93cb |
2847
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
8 $(PKG)_SUBDIR := kisli-vmime-$($(PKG)_VERSION) |
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
3480
diff
changeset
|
10 $(PKG)_URL := https://github.com/kisli/vmime/archive/v$($(PKG)_VERSION).tar.gz |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := libiconv gnutls libgsasl pthreads zlib |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
4618
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
3480
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/kisli/vmime/tags' | \ |
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
3480
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \ |
de2eedecd6ba
update broken PKG_UPDATE rules, handle missing update rules
John Donoghue
parents:
3480
diff
changeset
|
16 $(SORT) -Vr | \ |
2847
d37122aa7a10
package vmime: use github tarball
Mark Brand <mabrand@mabrand.nl>
parents:
2573
diff
changeset
|
17 head -1 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
2848 | 21 cd '$(1)' && cmake \ |
5541
d862fd40cc42
Use ccache for packages built with cmake.
Markus Mützel <markus.muetzel@gmx.de>
parents:
4618
diff
changeset
|
22 $(CMAKE_CCACHE_FLAGS) \ |
2848 | 23 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
24 -DCMAKE_AR='$(MXE_AR)' \ |
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
25 -DCMAKE_RANLIB='$(MXE_RANLIB)' \ |
2848 | 26 . |
719
bfc3a4937bcb
restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
714
diff
changeset
|
27 |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 # Disable VMIME_HAVE_MLANG_H |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 # 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
|
30 $(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
|
31 |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 $(MAKE) -C '$(1)' -j '$(JOBS)' |
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 $(MAKE) -C '$(1)' install |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
34 $(INSTALL) -m644 '$(1)/vmime/config.hpp' '$(HOST_INCDIR)/vmime/' |
995
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
35 |
ca1299bb06e3
fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
933
diff
changeset
|
36 $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
37 $(MXE_CXX) -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
|
38 '$(1)/examples/example6.cpp' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
39 `'$(MXE_PKG_CONFIG)' libvmime --cflags --libs` |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
40 $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(HOST_BINDIR)' |
474
624e75610f23
new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |