2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 14:28:03 +01:00
|
|
|
#
|
|
|
|
# zmqpp
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 14:28:03 +01:00
|
|
|
|
2015-03-14 18:01:28 +01:00
|
|
|
ZMQPP_VERSION = 3.2.0
|
|
|
|
ZMQPP_SITE = $(call github,zeromq,zmqpp,$(ZMQPP_VERSION))
|
2013-03-25 14:28:03 +01:00
|
|
|
ZMQPP_INSTALL_STAGING = YES
|
|
|
|
ZMQPP_DEPENDENCIES = zeromq
|
2015-04-05 18:48:24 +02:00
|
|
|
ZMQPP_LICENSE = MIT
|
|
|
|
ZMQPP_LICENSE_FILES = LICENSE
|
2015-11-20 21:54:40 +01:00
|
|
|
ZMQPP_PATCH = https://github.com/zeromq/zmqpp/commit/260a9304f6c74272bd3c396f6cca685657b4aff1.patch
|
2013-03-25 14:28:03 +01:00
|
|
|
|
2014-09-27 21:32:38 +02:00
|
|
|
ZMQPP_MAKE_OPTS = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr
|
2013-11-10 21:58:33 +01:00
|
|
|
ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread
|
2013-03-25 14:28:03 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y)
|
|
|
|
ZMQPP_DEPENDENCIES += boost
|
|
|
|
endif
|
|
|
|
|
2015-11-23 23:23:21 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
ZMQPP_MAKE_OPTS += BUILD_STATIC=yes BUILD_SHARED=no
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
ZMQPP_MAKE_OPTS += BUILD_STATIC=yes BUILD_SHARED=yes
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
ZMQPP_MAKE_OPTS += BUILD_STATIC=no BUILD_SHARED=yes
|
|
|
|
endif
|
|
|
|
|
2013-03-25 14:28:03 +01:00
|
|
|
define ZMQPP_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2013-11-10 21:58:33 +01:00
|
|
|
LDFLAGS="$(ZMQPP_LDFLAGS)" \
|
2015-11-23 23:23:21 +01:00
|
|
|
$(ZMQPP_MAKE_OPTS) $(if $(BR2_PACKAGE_ZMQPP_CLIENT),client,library) -C $(@D)
|
2013-03-25 14:28:03 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define ZMQPP_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/include/zmqpp
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2014-09-27 21:32:38 +02:00
|
|
|
$(ZMQPP_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install -C $(@D)
|
2013-03-25 14:28:03 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define ZMQPP_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/zmqpp
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2014-09-27 21:32:38 +02:00
|
|
|
$(ZMQPP_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install -C $(@D)
|
2013-03-25 14:28:03 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|