components/libtorrent/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 29 Sep 2016 09:48:10 -0700
changeset 6999 1238e930f8af
parent 6932 ae9e3811b2ec
child 7687 1093e2a9adbd
permissions -rw-r--r--
24752134 cppunit missing from libtorrent's REQUIRED_PACKAGES
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     1
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     3
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     7
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    12
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    18
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    20
#
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    21
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    25
BUILD_BITS= 64_and_32
6583
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    26
COMPILER= gcc
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    28
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		libtorrent
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    30
COMPONENT_VERSION=	0.13.6
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    31
COMPONENT_PROJECT_URL=	https://rakshasa.github.io/rtorrent/
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    33
    sha256:2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_BUGDB=	utility/rtorrent
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    36
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    37
TPNO=			24572
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    38
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    39
TEST_TARGET= $(NO_TESTS)
6583
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    40
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    41
# Needs updated sigcpp, not available on S11.
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    42
ifeq ($(BUILD_TYPE), evaluation)
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    43
BUILD_32_and_64=
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    44
INSTALL_32_and_64=
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    45
PUBLISH_STAMP=
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    46
endif
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    47
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    48
include $(WS_MAKE_RULES)/common.mk
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    49
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    50
COMPONENT_PRE_CONFIGURE_ACTION = \
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
	($(CLONEY) $(SOURCE_DIR) $(@D))
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    53
# Uses aclocal-1.14 by default, which we don't have.
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    54
COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -fiv)
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
6583
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    56
CXXFLAGS += -std=c++11
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    57
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  +=	--enable-shared
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
CONFIGURE_OPTIONS  +=	--disable-debug
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    60
CONFIGURE_OPTIONS  +=	--disable-static
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4760
diff changeset
    61
CONFIGURE_OPTIONS  +=	--srcdir=$(BUILD_DIR_$(BITS))
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1352
diff changeset
    63
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    64
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    65
REQUIRED_PACKAGES += developer/build/automake-115
6999
1238e930f8af 24752134 cppunit missing from libtorrent's REQUIRED_PACKAGES
Rich Burridge <rich.burridge@oracle.com>
parents: 6932
diff changeset
    66
REQUIRED_PACKAGES += developer/c++/cppunit
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    67
REQUIRED_PACKAGES += library/c++/sigcpp
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    68
REQUIRED_PACKAGES += library/security/openssl
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    69
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    70
REQUIRED_PACKAGES += library/zlib
6583
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    71
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    72
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    73
REQUIRED_PACKAGES += system/library/math