David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
commit | author | age
6d3641 1 #
AL 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 2016 Predrag Zečević
773076 22 # Copyright (c) 2020 Michal Nowak
6d3641 23 #
daee0d 24
7194e0 25 BUILD_BITS= 64
AW 26 USE_DEFAULT_TEST_TRANSFORMS= yes
6d3641 27 include ../../../make-rules/shared-macros.mk
AL 28
7194e0 29 COMPONENT_NAME=            aria2
AW 30 COMPONENT_VERSION=        1.37.0
31 COMPONENT_SUMMARY=        aria2 - lightweight multi-protocol and multi-source download utility
32 COMPONENT_PROJECT_URL=    https://aria2.github.io/
33 COMPONENT_SRC=            $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
35 COMPONENT_ARCHIVE_HASH=    sha256:60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b
50eaaf 36 COMPONENT_ARCHIVE_URL=    https://github.com/aria2/aria2/releases/download/release-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7194e0 37 COMPONENT_FMRI=            web/aria2
AW 38 COMPONENT_CLASSIFICATION= Applications/Internet
39 COMPONENT_LICENSE=        GPLv3
6d3641 40
773076 41 include $(WS_MAKE_RULES)/common.mk
6d3641 42
7194e0 43 PATH= $(PATH.gnu)
a9be8f 44
AP 45 LDFLAGS += -lsocket -lnsl
6d3641 46
daee0d 47 CONFIGURE_OPTIONS += --disable-static
5035e8 48 CONFIGURE_OPTIONS += --with-ca-bundle=/etc/certs/ca-certificates.crt
daee0d 49 CONFIGURE_OPTIONS += --with-bashcompletiondir=/usr/share/bash-completion/completions/
a9be8f 50
AP 51 CONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
52
53 COMPONENT_TEST_ENV += LD_OPTIONS="$(LD_OPTIONS)"
50eaaf 54
AW 55 # We have one failing test (from test-suite.log):
56 # 09/26 19:19:47 [INFO] Processing metaurl group metaurl=README.torrent
57 # 09/26 19:19:47 [ERROR] Unrecognized URI or unsupported protocol: README.torrent
58
daee0d 59 # cppunit is for tests
MN 60 REQUIRED_PACKAGES += developer/cppunit
50eaaf 61
AW 62 # Auto-generated dependencies
63 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
64 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
65 REQUIRED_PACKAGES += database/sqlite-3
6d3641 66 REQUIRED_PACKAGES += library/gmp
a9be8f 67 REQUIRED_PACKAGES += library/gnutls-3
7194e0 68 REQUIRED_PACKAGES += library/libcares
6d3641 69 REQUIRED_PACKAGES += library/libssh2
AL 70 REQUIRED_PACKAGES += library/libxml2
71 REQUIRED_PACKAGES += library/nettle
72 REQUIRED_PACKAGES += library/zlib
73 REQUIRED_PACKAGES += system/library
74 REQUIRED_PACKAGES += system/library/math