jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / tdb / Makefile
blob00b108c52ba6d163bc7e04e8782a6b1a0476b7d9
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Alexander Pyhalov
14 # Copyright (c) 2022, Friedrich Kink
17 BUILD_BITS= 64_and_32
18 BUILD_STYLE= waf
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= tdb
22 COMPONENT_VERSION= 1.4.12
23 COMPONENT_SUMMARY= Trivial Database Library
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:6ce4b27498812d09237ece65a0d6dfac0941610e709848ecb822aa241084cd7a
27 COMPONENT_ARCHIVE_URL= https://download.samba.org/pub/tdb/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL = https://wiki.samba.org/index.php/TDB
29 COMPONENT_FMRI = library/tdb
30 COMPONENT_CLASSIFICATION = Development/Databases
31 # Binaries are GPLv3, but we don't ship them
32 COMPONENT_LICENSE = LGPLv3
34 include $(WS_MAKE_RULES)/common.mk
36 COMPONENT_PRE_CONFIGURE_ACTION += ( \
37 $(CLONEY) $(SOURCE_DIR) $(@D); \
38 cd $(@D); \
41 CFLAGS += $(CC_PIC) -D_POSIX_PTHREAD_SEMANTICS
42 CPPFLAGS += $(CPP_LARGEFILES) $(XPG6MODE)
43 # Flag is not picked up for lib/replace
44 LDFLAGS += $(LD_SSP)
46 WAF = PYTHONHASHSEED=1 $(PYTHON) ./buildtools/bin/waf
48 # Waf doesn't like variables passing via args, so we rewrite CONFIGURE_OPTIONS
49 CONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
50 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
51 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
52 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
53 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
54 CONFIGURE_OPTIONS += --without-gettext
55 CONFIGURE_OPTIONS += --disable-python
56 CONFIGURE_OPTIONS += --disable-rpath
58 COMPONENT_TEST_TRANSFORMS += \
59 '-n ' \
60 '-e "s/(.*s)//" ' \
61 '-e "s/Testing with.*//" '\
62 '-e "/finished/p" ' \
63 '-e "/returned/p" ' \
64 '-e "/tdb1-run/p" '
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES += system/library