# This file is part of MXE. See LICENSE.md for licensing information. PKG := libzmq $(PKG)_WEBSITE := https://github.com/zeromq/libzmq $(PKG)_DESCR := ZeroMQ core engine in C++, implements ZMTP/3.0 $(PKG)_IGNORE := $(PKG)_VERSION := 90b4f41 $(PKG)_CHECKSUM := 3ab20f8e7f1bd78ac5cfc0cd98eeb6131da28f55d68fd57df69af95448e27597 $(PKG)_GH_CONF := zeromq/libzmq/branches/master $(PKG)_DEPS := cc libsodium define $(PKG)_BUILD # -DCMAKE_CXX_FLAGS='-D_WIN32_WINNT=0x0601' # build and install the library cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \ -DBUILD_TESTS=OFF \ -DWITH_DOC=OFF \ -DWITH_LIBSODIUM=ON \ -DWITH_PERF_TOOL=OFF \ -DZMQ_HAVE_IPC=OFF \ -DZMQ_WIN32_WINNT_LIMIT="0x0601" $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MAKE) -C '$(BUILD_DIR)' -j 1 install # create pkg-config file $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' (echo 'Name: $(PKG)'; \ echo 'Version: $($(PKG)_VERSION)'; \ echo 'Description: $($(PKG)_DESCR)'; \ echo 'Requires: libsodium'; \ echo 'Libs: -lzmq'; \ echo 'Libs.private: -lws2_32 -lrpcrt4 -liphlpapi'; \ echo 'Cflags.private: -DZMQ_STATIC';) \ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' # test pkg-config '$(TARGET)-g++' \ -W -Wall -Werror -pedantic \ '$(SOURCE_DIR)/tools/curve_keygen.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ `'$(TARGET)-pkg-config' $(PKG) --cflags --libs` # test cmake mkdir '$(BUILD_DIR).test-cmake' cd '$(BUILD_DIR).test-cmake' && '$(TARGET)-cmake' \ -DPKG=$(PKG) \ -DPKG_VERSION=$($(PKG)_VERSION) \ -DCMAKE_PREFIX_PATH='$(PREFIX)/$(TARGET)/lib/cmake/zmq' \ '$(PWD)/src/cmake/test' $(MAKE) -C '$(BUILD_DIR).test-cmake' -j 1 install endef