components/rtorrent/Makefile
author akshay.kale@oracle.com <akshay.kale@oracle.com>
Fri, 14 Oct 2016 13:13:27 -0700
changeset 7112 dab9beb5bc49
parent 7075 a25f861f02f5
child 7687 1093e2a9adbd
permissions -rw-r--r--
24843178 Method of choosing ofports need to be improved in OVS
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: 4965
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: 4965
diff changeset
    25
BUILD_BITS= 64
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
1352
1358a1e1ff4c 16921386 move to parfait 1.2.0.1
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1058
diff changeset
    27
export PARFAIT_BUILD=no
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
    28
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    29
include ../../make-rules/shared-macros.mk
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    30
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_NAME=		rtorrent
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    32
COMPONENT_VERSION=	0.9.6
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    33
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
    34
COMPONENT_ARCHIVE_HASH=	\
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    35
    sha256:1e69c24f1f26f8f07d58d673480dc392bfc4317818c1115265b08a7813ff5b0e
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    37
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    38
TPNO=			24573
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4965
diff changeset
    40
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
    41
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
# 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
    43
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
    44
BUILD_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
INSTALL_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
    46
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
    47
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
    48
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4965
diff changeset
    49
include $(WS_MAKE_RULES)/common.mk
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    50
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
COMPONENT_PRE_CONFIGURE_ACTION = \
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
	($(CLONEY) $(SOURCE_DIR) $(@D))
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    53
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
    54
CXXFLAGS += -std=c++11
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
LDFLAGS += -L$(GNULIB64) -R$(GNULIB64)
4965
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    57
ifeq ($(OS_VERSION),5.11)
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    58
LDFLAGS += -lnsl -lsocket
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    59
endif
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    60
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    61
CXXFLAGS +=		-I$(USRINCDIR)/ncurses
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    62
CONFIGURE_OPTIONS.64 +=	--srcdir=$(BUILD_DIR_64)
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    63
CONFIGURE_OPTIONS +=	--enable-shared
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    64
CONFIGURE_OPTIONS +=	--disable-static
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    65
CONFIGURE_OPTIONS +=	--disable-debug
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    66
6932
ae9e3811b2ec 21849039 update libtorrent to 0.13.6
Rich Burridge <rich.burridge@oracle.com>
parents: 6583
diff changeset
    67
REQUIRED_PACKAGES += developer/build/automake-115
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    68
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
    69
REQUIRED_PACKAGES += library/libtorrent
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    70
REQUIRED_PACKAGES += library/ncurses
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
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    73
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    74
REQUIRED_PACKAGES += web/curl