1 ################################################################################
5 ################################################################################
8 ZMQPP_SITE
= $(call github
,zeromq
,zmqpp
,$(ZMQPP_VERSION
))
9 ZMQPP_INSTALL_STAGING
= YES
10 ZMQPP_DEPENDENCIES
= zeromq
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
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
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
)
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
)
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
)
46 $(eval
$(generic-package
))