# This file is part of MXE. See LICENSE.md for licensing information. PKG := vmime $(PKG)_WEBSITE := https://www.vmime.org/ $(PKG)_DESCR := VMime $(PKG)_IGNORE := $(PKG)_VERSION := 43b262b $(PKG)_CHECKSUM := 849cc4452e0da4ff9b7025ac26c9500183f677ec1b6ed5b41f98c98d7874a87d $(PKG)_GH_CONF := kisli/vmime/branches/master $(PKG)_DEPS := cc gnutls libgsasl libiconv pthreads zlib define $(PKG)_BUILD # The following hint is probably needed for ICU: # -DICU_LIBRARIES="`'$(TARGET)-pkg-config' --libs-only-l icu-i18n`" cd '$(1)' && '$(TARGET)-cmake' \ -DCMAKE_CXX_FLAGS='-D_POSIX_C_SOURCE' \ -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ -DVMIME_HAVE_MESSAGING_PROTO_SENDMAIL=False \ -DVMIME_HAVE_MLANG_H=False \ -DVMIME_BUILD_STATIC_LIBRARY=$(CMAKE_STATIC_BOOL) \ -DVMIME_BUILD_SHARED_LIBRARY=$(CMAKE_SHARED_BOOL) \ -DVMIME_BUILD_SAMPLES=OFF \ -DVMIME_BUILD_DOCUMENTATION=OFF \ -DCMAKE_MODULE_PATH='$(1)/cmake' \ -DVMIME_CHARSETCONV_LIB=iconv \ -DVMIME_TLS_SUPPORT_LIB=gnutls \ -C '$(PWD)/src/vmime-TryRunResults.cmake' \ . $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install $(SED) -i 's,^\(Libs.private:.* \)$(PREFIX)/$(TARGET)/lib/libiconv\.a,\1-liconv,g' '$(PREFIX)/$(TARGET)/lib/pkgconfig/vmime.pc' $(if $(BUILD_STATIC),$(SED) -i 's/^\(Cflags:.* \)/\1 -DVMIME_STATIC /g' '$(PREFIX)/$(TARGET)/lib/pkgconfig/vmime.pc') $(if $(BUILD_SHARED),$(INSTALL) -m644 '$(1)/build/bin/libvmime.dll' '$(PREFIX)/$(TARGET)/bin/') $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp' $(TARGET)-g++ -s -std=c++0x -o '$(1)/examples/test-vmime.exe' \ '$(1)/examples/example6.cpp' \ `'$(TARGET)-pkg-config' vmime --cflags --libs` $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(PREFIX)/$(TARGET)/bin/' endef