Marcel Telka
2024-04-03 72d66ff28ec33bc2c05b355c6218d98d13b79450
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2013 Adam Stevko. All rights reserved.
# Copyright 2019 Andreas Grueninger, Grueninger GmbH, (grueni) 
#
 
BUILD_STYLE=configure
BUILD_BITS=64
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=         libqb
COMPONENT_VERSION=      1.0.5
COMPONENT_REVISION=     1
COMPONENT_FMRI=         library/$(COMPONENT_NAME)
COMPONENT_CLASSIFICATION=Applications/System Utilities
COMPONENT_PROJECT_URL=  https://github.com/ClusterLabs/libqb
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= sha256:89fe0c743e5be15f2fa25849f107df41cb144928259752d5c797c13644eba6b1
COMPONENT_ARCHIVE_URL=  \
    https://github.com/ClusterLabs/libqb/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
COMPONENT_LICENSE=      LGPLv2
COMPONENT_SUMMARY=      libqb is a library providing high performance logging, tracing, ipc, and poll.
 
include $(WS_MAKE_RULES)/common.mk
 
unexport SHELLOPTS
 
CFLAGS += -DNAME_MAX=255 -DHOST_NAME_MAX=255 \
    -I/usr/include  -I/usr/include/heartbeat \
    -lsocket -lnsl -ldladm -lssp_nonshared -lssp \
    -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
 
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += --localstatedir=/var
CONFIGURE_OPTIONS += --with-socket-dir=/var/run/hacluster
CONFIGURE_OPTIONS += --enable-slow-tests
CONFIGURE_OPTIONS += --disable-rpath
 
CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
 
COMPONENT_PREP_ACTION=(cd $(@D); $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) autogen.sh)
 
COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D)) 
 
COMPONENT_TEST_TARGETS = check
 
#
# Please note for the target test 
#    /var/run/hacluster must exist and must be writable for the build user
#
 
# Build dependencies
REQUIRED_PACKAGES += developer/documentation-tool/doxygen
# Auto-generated dependencies
REQUIRED_PACKAGES += system/library