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
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
19 include ..
/..
/..
/make-rules
/shared-macros.mk
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
); \
41 CFLAGS
+= $(CC_PIC
) -D_POSIX_PTHREAD_SEMANTICS
42 CPPFLAGS
+= $(CPP_LARGEFILES
) $(XPG6MODE
)
43 # Flag is not picked up for lib/replace
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
+= \
61 '-e "s/Testing with.*//" '\
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES
+= system
/library