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 2019 Rouven Weiler
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 0.9.33
22 COMPONENT_SUMMARY
= Lightning memory-mapped database library
23 COMPONENT_SRC
= openldap-LMDB_
$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
25 COMPONENT_PROJECT_URL
= https
://www.symas.com
/lmdb
26 COMPONENT_ARCHIVE_URL
= https
://git.openldap.org
/openldap
/openldap
/-/archive
/LMDB_
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_ARCHIVE_HASH
= sha256
:d19d52725800177b89d235161c0af8ae8b2932207e3c9eb87e95b61f1925206d
28 COMPONENT_FMRI
= database
/lmdb
29 COMPONENT_CLASSIFICATION
= System
/Databases
30 COMPONENT_LICENSE
= OpenLDAP Public License
31 COMPONENT_LICENSE_FILE
= libraries
/liblmdb
/LICENSE
33 include $(WS_MAKE_RULES
)/common.mk
35 COMPONENT_COPY_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
)/libraries
/liblmdb
/ $(@D
) )
37 COMPONENT_BUILD_ARGS
+= CC
="$(CC)"
38 COMPONENT_BUILD_ARGS
+= CFLAGS
="$(CFLAGS) -pthread"
39 COMPONENT_BUILD_ARGS
+= LDFLAGS
="$(LDFLAGS)"
40 COMPONENT_BUILD_ARGS
+= SOVERSION
="$(COMPONENT_VERSION)"
42 COMPONENT_INSTALL_ARGS
+= bindir="$(USRBINDIR)"
43 COMPONENT_INSTALL_ARGS
+= includedir="$(USRINCDIR)"
44 COMPONENT_INSTALL_ARGS
+= libdir="$(USRLIBDIR.$(BITS))"
45 COMPONENT_INSTALL_ARGS
+= mandir="$(USRSHAREMANDIR)"
46 COMPONENT_INSTALL_ARGS
+= SOVERSION
="$(COMPONENT_VERSION)"
48 COMPONENT_TEST_TARGETS
= test
49 COMPONENT_TEST_ARGS
+= CC
="$(CC)"
50 COMPONENT_TEST_ARGS
+= CFLAGS
="$(CFLAGS) -pthread"
51 COMPONENT_TEST_ARGS
+= LDFLAGS
="$(LDFLAGS)"
52 COMPONENT_TEST_ARGS
+= SOVERSION
="$(COMPONENT_VERSION)"
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES
+= system
/library