4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2022, Daniel Chan
24 # Copyright (c) 2023 Niklas Poslovski
29 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_NAME
= libtorrent-rasterbar
32 COMPONENT_VERSION
= 2.0.10
34 COMPONENT_SUMMARY
= An open source C
++ library implementing the BitTorrent protocol
35 COMPONENT_GIT_URL
= https
://github.com
/arvidn
36 COMPONENT_PROJECT_URL
= $(COMPONENT_GIT_URL
)/libtorrent
37 COMPONENT_SRC
= libtorrent-
$(COMPONENT_VERSION
)
38 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
39 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
40 COMPONENT_ARCHIVE_HASH
= sha256
:3f1a489ac520d89b051a254e453c82535ea0f73457a4686281c9031107c3a9ac
41 COMPONENT_FMRI
= network
/libtorrent-rasterbar
42 COMPONENT_CLASSIFICATION
= System
/Libraries
43 COMPONENT_LICENSE
= BSLv1
44 COMPONENT_LICENSE_FILE
= LICENSE
46 GIT_BRANCH_1
=66ac6cc0b248e4655b8d21004fd24e3b62b5908d
47 COMPONENT_SRC_1
= libsimulator-
$(GIT_BRANCH_1
)
48 COMPONENT_ARCHIVE_1
= $(COMPONENT_SRC_1
).
tar.gz
49 COMPONENT_ARCHIVE_URL_1
= $(COMPONENT_GIT_URL
)/libsimulator
/archive
/$(GIT_BRANCH_1
).
tar.gz
50 COMPONENT_ARCHIVE_HASH_1
= sha256
:beb0a48ad26ed91d6508ce14d2c8f7b17034f75683dd156c247d1c7d60799216
52 GIT_BRANCH_2
=105cce59972f925a33aa6b1c3109e4cd3caf583d
53 COMPONENT_SRC_2
= try_signal-
$(GIT_BRANCH_2
)
54 COMPONENT_ARCHIVE_2
= $(COMPONENT_SRC_2
).
tar.gz
55 COMPONENT_ARCHIVE_URL_2
= $(COMPONENT_GIT_URL
)/try_signal
/archive
/$(GIT_BRANCH_2
).
tar.gz
56 COMPONENT_ARCHIVE_HASH_2
= sha256
:6f111b0d77429a8051be4faed06cf23fb03cf6ee233967c84fdd9d8d3b42ba8e
58 GIT_BRANCH_3
=a57d4d36923c5fafa9698e14be16b8bc2913700a
59 COMPONENT_SRC_3
= boost-asio-gnutls-
$(GIT_BRANCH_3
)
60 COMPONENT_ARCHIVE_3
= $(COMPONENT_SRC_3
).
tar.gz
61 COMPONENT_ARCHIVE_URL_3
= $(COMPONENT_GIT_URL
)/boost-asio-gnutls
/archive
/$(GIT_BRANCH_3
).
tar.gz
62 COMPONENT_ARCHIVE_HASH_3
= sha256
:865a21256de08945b79ebdc66270f10afb928a638e2c1829e7948c5976f289d5
64 COMPONENT_POST_UNPACK_ACTION_1
= \
65 mv
$(COMPONENT_SRC_1
)/* $(SOURCE_DIR
)/simulation
/libsimulator
/
66 COMPONENT_POST_UNPACK_ACTION_2
= \
67 mv
$(COMPONENT_SRC_2
)/* $(SOURCE_DIR
)/deps
/try_signal
/
68 COMPONENT_POST_UNPACK_ACTION_3
= \
69 mv
$(COMPONENT_SRC_3
)/* $(SOURCE_DIR
)/deps
/asio-gnutls
/
71 include $(WS_MAKE_RULES
)/common.mk
73 # Provide paths for OpenSSL 3.1
74 CFLAGS
+= -I
$(OPENSSL_INCDIR
)
75 LDFLAGS
+= -L
$(OPENSSL_LIBDIR
)
77 CMAKE_OPTION
+=-DCMAKE_INSTALL_PREFIX
:PATH
='/usr'
79 # Auto-generated dependencies
80 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
81 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
82 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
83 REQUIRED_PACKAGES
+= system
/library