open-plc-utils: new package
[buildroot-gz.git] / package / zmqpp / zmqpp.mk
blob7efd04b7d0938171b76fff0dc71356a7e2463772
1 ################################################################################
3 # zmqpp
5 ################################################################################
7 ZMQPP_VERSION = 3.2.0
8 ZMQPP_SITE = $(call github,zeromq,zmqpp,$(ZMQPP_VERSION))
9 ZMQPP_INSTALL_STAGING = YES
10 ZMQPP_DEPENDENCIES = zeromq
11 ZMQPP_LICENSE = LGPLv3+ with exceptions
12 ZMQPP_LICENSE_FILES = COPYING COPYING.LESSER
14 ZMQPP_MAKE_OPTS = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr
15 ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread
17 ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y)
18 ZMQPP_DEPENDENCIES += boost
19 endif
21 define ZMQPP_BUILD_CMDS
22 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
23 LDFLAGS="$(ZMQPP_LDFLAGS)" \
24 $(ZMQPP_MAKE_OPTS) $(if $(BR2_PACKAGE_ZMQPP_CLIENT),all) -C $(@D)
25 endef
27 define ZMQPP_INSTALL_TARGET_CMDS
28 $(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/include/zmqpp
29 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
30 $(ZMQPP_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install -C $(@D)
31 endef
33 define ZMQPP_INSTALL_STAGING_CMDS
34 $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/zmqpp
35 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
36 $(ZMQPP_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install -C $(@D)
37 endef
39 $(eval $(generic-package))