You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 vuotta sitten
12345678910111213141516171819202122232425262728293031323334
  1. package=zeromq
  2. $(package)_version=4.2.2
  3. $(package)_download_path=https://github.com/zeromq/libzmq/releases/download/v$($(package)_version)/
  4. $(package)_file_name=$(package)-$($(package)_version).tar.gz
  5. $(package)_sha256_hash=5b23f4ca9ef545d5bd3af55d305765e3ee06b986263b31967435d285a3e6df6b
  6. $(package)_patches=0001-fix-build-with-older-mingw64.patch
  7. define $(package)_set_vars
  8. $(package)_config_opts=--without-docs --disable-shared --without-libsodium --disable-curve --disable-curve-keygen --disable-perf
  9. $(package)_config_opts_linux=--with-pic
  10. $(package)_cxxflags=-std=c++11
  11. endef
  12. define $(package)_preprocess_cmds
  13. patch -p1 < $($(package)_patch_dir)/0001-fix-build-with-older-mingw64.patch && \
  14. ./autogen.sh
  15. endef
  16. define $(package)_config_cmds
  17. $($(package)_autoconf)
  18. endef
  19. define $(package)_build_cmds
  20. $(MAKE) src/libzmq.la
  21. endef
  22. define $(package)_stage_cmds
  23. $(MAKE) DESTDIR=$($(package)_staging_dir) install-libLTLIBRARIES install-includeHEADERS install-pkgconfigDATA
  24. endef
  25. define $(package)_postprocess_cmds
  26. sed -i.old "s/ -lstdc++//" lib/pkgconfig/libzmq.pc && \
  27. rm -rf bin share
  28. endef