Mercurial > mxe-octave
view src/vmime.mk @ 3442:ebe73c541a16
allow binary dist to work for gnu-linux target
* octave-wrapper.in: New file.
* bianry-dist-rules.mk: Install wrapper program for octave,
octave-config, and octave-cli binaries on gnu-linux systems.
Fix strip rules for gnu-linux systems.
Don't install Windows-specific files on gnu-linux systems.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Jan 2014 05:06:54 -0500 |
parents | 5ef49fb3299d |
children | 13be64f9f16d |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := vmime $(PKG)_IGNORE := $(PKG)_CHECKSUM := 670aaecfbab41747e3a8f1d80dd757eb01ac93cb $(PKG)_SUBDIR := kisli-vmime-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://github.com/kisli/vmime/tarball/$($(PKG)_VERSION)/$(PKG)_FILE $(PKG)_DEPS := libiconv gnutls libgsasl pthreads zlib define $(PKG)_UPDATE $(WGET) -q -O- 'https://github.com/kisli/vmime/commits/master' | \ $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\1#p' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && cmake \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DCMAKE_AR='$(MXE_AR)' \ -DCMAKE_RANLIB='$(MXE_RANLIB)' \ . # Disable VMIME_HAVE_MLANG_H # We have the header, but there is no implementation for IMultiLanguage in MinGW $(SED) -i 's,^#define VMIME_HAVE_MLANG_H 1$$,,' '$(1)/vmime/config.hpp' $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' install $(INSTALL) -m644 '$(1)/vmime/config.hpp' '$(HOST_INCDIR)/vmime/' $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' $(MXE_CXX) -s -o '$(1)/examples/test-vmime.exe' \ '$(1)/examples/example6.cpp' \ `'$(MXE_PKG_CONFIG)' libvmime --cflags --libs` $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(HOST_BINDIR)' endef