Mercurial > mxe-octave
comparison src/vmime.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 053e00ca567e |
children | b6c7244a2f66 |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
16 endef | 16 endef |
17 | 17 |
18 define $(PKG)_BUILD | 18 define $(PKG)_BUILD |
19 cd '$(1)' && cmake \ | 19 cd '$(1)' && cmake \ |
20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ | 20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
21 -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ | 21 -DCMAKE_AR='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-ar' \ |
22 -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ | 22 -DCMAKE_RANLIB='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-ranlib' \ |
23 . | 23 . |
24 | 24 |
25 # Disable VMIME_HAVE_MLANG_H | 25 # Disable VMIME_HAVE_MLANG_H |
26 # We have the header, but there is no implementation for IMultiLanguage in MinGW | 26 # We have the header, but there is no implementation for IMultiLanguage in MinGW |
27 $(SED) -i 's,^#define VMIME_HAVE_MLANG_H 1$$,,' '$(1)/vmime/config.hpp' | 27 $(SED) -i 's,^#define VMIME_HAVE_MLANG_H 1$$,,' '$(1)/vmime/config.hpp' |
28 | 28 |
29 $(MAKE) -C '$(1)' -j '$(JOBS)' | 29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
30 $(MAKE) -C '$(1)' install | 30 $(MAKE) -C '$(1)' install |
31 $(INSTALL) -m644 '$(1)/vmime/config.hpp' '$(PREFIX)/$(TARGET)/include/vmime/' | 31 $(INSTALL) -m644 '$(1)/vmime/config.hpp' '$(HOST_PREFIX)/include/vmime/' |
32 | 32 |
33 $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' | 33 $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' |
34 $(TARGET)-g++ -s -o '$(1)/examples/test-vmime.exe' \ | 34 $(TARGET)-g++ -s -o '$(1)/examples/test-vmime.exe' \ |
35 '$(1)/examples/example6.cpp' \ | 35 '$(1)/examples/example6.cpp' \ |
36 `'$(TARGET)-pkg-config' libvmime --cflags --libs` | 36 `'$(TARGET)-pkg-config' libvmime --cflags --libs` |
37 $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(PREFIX)/$(TARGET)/bin/' | 37 $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(HOST_PREFIX)/bin/' |
38 endef | 38 endef |