kumquat-buildroot/package/ace/ace.mk
Matt Weber 3621918d1b package/ace: new package
ACE is an open-source framework that provides many components and
patterns for developing high-performance, distributed real-time
and embedded systems. It provides powerful, yet efficient abstractions
for sockets, demultiplexing loops, threads, synchronization primitives.

Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Kalpesh Panchal <kalpesh.panchal@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-02-06 20:16:07 +01:00

62 lines
1.6 KiB
Makefile

################################################################################
#
# ace
#
################################################################################
ACE_VERSION = 7.0.1
ACE_SOURCE = ACE-$(ACE_VERSION).tar.gz
ACE_SITE = http://download.dre.vanderbilt.edu/previous_versions
ACE_LICENSE = DOC
ACE_LICENSE_FILES = COPYING
ACE_INSTALL_STAGING = YES
ACE_CPE_ID_VENDOR = vanderbilt
ACE_CPE_ID_PRODUCT = adaptive_communication_environment
# Note: We are excluding examples, apps and tests
# Only compiling ACE libraries (no TAO)
ACE_LIBARIES = ace ACEXML Kokyu netsvcs protocols/ace
ifeq ($(BR2_PACKAGE_OPENSSL),y)
ACE_LIBARIES += ace/SSL
ACE_DEPENDENCIES += openssl
define ACE_CONFIGURE_SSL
echo "ssl = 1" >> $(@D)/include/makeinclude/platform_macros.GNU
endef
endif
# configure the target build
# refer: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix
define ACE_CONFIGURE_CMDS
# create a config file
echo ' #include "ace/config-linux.h" ' >> $(@D)/ace/config.h
# Create platform/compiler-specific Makefile configurations
$(INSTALL) -m 0644 package/ace/platform_macros.GNU $(@D)/include/makeinclude/
$(ACE_CONFIGURE_SSL)
endef
define ACE_BUILD_CMDS
$(foreach lib,$(ACE_LIBARIES), \
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$(lib) ACE_ROOT="$(@D)" all
)
endef
define ACE_LIBARIES_INSTALL
mkdir -p $(1)/usr/share/ace
$(foreach lib,$(ACE_LIBARIES), \
$(MAKE) -C $(@D)/$(lib) ACE_ROOT="$(@D)" DESTDIR=$(1) install
)
endef
define ACE_INSTALL_TARGET_CMDS
$(call ACE_LIBARIES_INSTALL,$(TARGET_DIR))
endef
define ACE_INSTALL_STAGING_CMDS
$(call ACE_LIBARIES_INSTALL,$(STAGING_DIR))
endef
$(eval $(generic-package))