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 2016 Denys Rtveliashvili. All rights reserved.
14 # Copyright 2020 Andreas Wacknitz
15 # Copyright 2023 Niklas Poslovski
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= libgit2
22 COMPONENT_VERSION
= 1.8.4
23 COMPONENT_SUMMARY
= Portable implementation of the Git core methods provided
as a library
24 COMPONENT_PROJECT_URL
= https
://libgit2.github.com
/
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
27 COMPONENT_ARCHIVE_HASH
= sha256
:49d0fc50ab931816f6bfc1ac68f8d74b760450eebdb5374e803ee36550f26774
28 COMPONENT_ARCHIVE_URL
= https
://github.com
/$(COMPONENT_NAME
)/$(COMPONENT_NAME
)/archive
/v
$(COMPONENT_VERSION
).
tar.gz
29 COMPONENT_FMRI
= library
/libgit2
30 COMPONENT_CLASSIFICATION
= Development
/Source Code Management
31 COMPONENT_LICENSE
= GPLv2 with Linking Exception
32 COMPONENT_LICENSE_FILE
= COPYING
34 include $(WS_MAKE_RULES
)/common.mk
36 CMAKE_OPTIONS
+= -DCMAKE_C_COMPILER
=$(CC
)
37 CMAKE_OPTIONS
+= -DBIN_INSTALL_DIR
=/usr
/$(CMAKE_LIBDIR.
$(BITS
))
38 CMAKE_OPTIONS
+= -DLIB_INSTALL_DIR
=/usr
/$(CMAKE_LIBDIR.
$(BITS
))
39 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
41 COMPONENT_TEST_TRANSFORMS
+= '-e "s/[0-9. ]*sec//g"'
43 # Auto-generated dependencies
44 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
45 REQUIRED_PACKAGES
+= library
/zlib
46 REQUIRED_PACKAGES
+= system
/library