iigs
2024-03-27 32d98a3796b058e946d5d41ed5637129c312a8e9
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
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 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 2016 Denys Rtveliashvili.  All rights reserved.
# Copyright 2020 Andreas Wacknitz
# Copyright 2023 Niklas Poslovski
#
 
BUILD_STYLE= cmake
OPENSSL_VERSION= 3.1
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        libgit2
COMPONENT_VERSION=    1.8.0
COMPONENT_REVISION=    1
COMPONENT_SUMMARY=    Portable implementation of the Git core methods provided as a library
COMPONENT_PROJECT_URL=    https://libgit2.github.com/
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:9e1d6a880d59026b675456fbb1593c724c68d73c34c0d214d6eb848e9bbd8ae4
COMPONENT_ARCHIVE_URL=    https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz
COMPONENT_FMRI=        library/libgit2
COMPONENT_CLASSIFICATION=    Development/Source Code Management
COMPONENT_LICENSE=    GPLv2 with Linking Exception
COMPONENT_LICENSE_FILE=    COPYING
 
include $(WS_MAKE_RULES)/common.mk
 
CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
CMAKE_OPTIONS += -DBIN_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
CMAKE_OPTIONS += -DLIB_INSTALL_DIR=/usr/$(CMAKE_LIBDIR.$(BITS))
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
 
COMPONENT_TEST_TRANSFORMS += '-e "s/[0-9. ]*sec//g"'
 
# Auto-generated dependencies
REQUIRED_PACKAGES += library/security/openssl-31
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library