glib-networking: bump to version 2.48.1
[buildroot-gz.git] / package / zmqpp / zmqpp.mk
blob18da709691c8f14de7b8a55b047e0931b37ed14a
1 ################################################################################
3 # zmqpp
5 ################################################################################
7 ZMQPP_VERSION = 4.1.2
8 ZMQPP_SITE = $(call github,zeromq,zmqpp,$(ZMQPP_VERSION))
9 ZMQPP_INSTALL_STAGING = YES
10 ZMQPP_DEPENDENCIES = zeromq
11 ZMQPP_LICENSE = MIT
12 ZMQPP_LICENSE_FILES = LICENSE
13 ZMQPP_MAKE_OPTS = LD="$(TARGET_CXX)" BUILD_PATH=./build PREFIX=/usr
14 ZMQPP_LDFLAGS = $(TARGET_LDFLAGS) -lpthread
16 ifeq ($(BR2_PACKAGE_ZMQPP_CLIENT),y)
17 ZMQPP_DEPENDENCIES += boost
18 endif
20 ifeq ($(BR2_STATIC_LIBS),y)
21 ZMQPP_MAKE_OPTS += BUILD_STATIC=yes BUILD_SHARED=no
22 else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
23 ZMQPP_MAKE_OPTS += BUILD_STATIC=yes BUILD_SHARED=yes
24 else ifeq ($(BR2_SHARED_LIBS),y)
25 ZMQPP_MAKE_OPTS += BUILD_STATIC=no BUILD_SHARED=yes
26 endif
28 define ZMQPP_BUILD_CMDS
29 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
30 LDFLAGS="$(ZMQPP_LDFLAGS)" \
31 $(ZMQPP_MAKE_OPTS) $(if $(BR2_PACKAGE_ZMQPP_CLIENT),client,library) -C $(@D)
32 endef
34 define ZMQPP_INSTALL_TARGET_CMDS
35 $(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/include/zmqpp
36 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
37 $(ZMQPP_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install -C $(@D)
38 endef
40 define ZMQPP_INSTALL_STAGING_CMDS
41 $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/zmqpp
42 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
43 $(ZMQPP_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install -C $(@D)
44 endef
46 $(eval $(generic-package))