ce6b23a2ee
Tarball download from github is preferred, because: - download size is smaller - git clone may be blocked in some corporate environments Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# zmqpp
|
|
#
|
|
################################################################################
|
|
|
|
ZMQPP_VERSION = 36413487f05b165dfc82ad307a5a1c36a795e607
|
|
ZMQPP_SITE = $(call github,benjamg,zmqpp,$(ZMQPP_VERSION))
|
|
ZMQPP_INSTALL_STAGING = YES
|
|
ZMQPP_DEPENDENCIES = zeromq
|
|
ZMQPP_LICENSE = LGPLv3+ with exceptions
|
|
ZMQPP_LICENSE_FILES = COPYING COPYING.LESSER
|
|
|
|
ZMQPP_MAKE_OPT = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr
|
|
ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread
|
|
|
|
ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y)
|
|
ZMQPP_DEPENDENCIES += boost
|
|
endif
|
|
|
|
define ZMQPP_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
LDFLAGS="$(ZMQPP_LDFLAGS)" \
|
|
$(ZMQPP_MAKE_OPT) $(if $(BR2_PACKAGE_ZMQPP_CLIENT),all) -C $(@D)
|
|
endef
|
|
|
|
define ZMQPP_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/include/zmqpp
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
$(ZMQPP_MAKE_OPT) DESTDIR=$(TARGET_DIR) install -C $(@D)
|
|
endef
|
|
|
|
define ZMQPP_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/zmqpp
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
$(ZMQPP_MAKE_OPT) DESTDIR=$(STAGING_DIR) install -C $(@D)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|