components/rtorrent/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 08 Sep 2016 09:15:40 -0700
changeset 6861 6110892450ff
parent 6583 d6703a724425
child 6932 ae9e3811b2ec
permissions -rw-r--r--
22890928 deliver gawk section 3am man pages in /usr/share/man/man3
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
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=	0.8.2
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://libtorrent.rakshasa.no/
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=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    35
    sha256:76135a63869e43fa0392829bb45d94c0aa55e94350dddc272685ccfac1bbb2ed
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    38
TPNO=			8824
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
4088
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    54
# requires an older automake to reconfigure
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
COMPONENT_PREP_ACTION = \
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    56
        (cd $(@D) ; \
4088
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    57
	    aclocal-1.11 -I./scripts -I. ; \
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
	    autoheader; \
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
	    libtoolize --automake --copy --force; \
4088
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    60
	    automake-1.11; \
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    61
	    autoconf )
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
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
    63
CXXFLAGS += -std=c++11
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    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
    65
LDFLAGS += -L$(GNULIB64) -R$(GNULIB64)
4965
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    66
ifeq ($(OS_VERSION),5.11)
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    67
LDFLAGS += -lnsl -lsocket
67c57c9b2e63 21959710 libsocket tweak needed for rtorrent
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    68
endif
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    69
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4965
diff changeset
    70
CXXFLAGS +=	-I$(USRINCDIR)/ncurses
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
    71
CONFIGURE_OPTIONS.64 +=         --srcdir=$(BUILD_DIR_64)
248
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS +=		--disable-debug
3011f7a1ed77 7046137 move *torrent to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    73
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
    74
# Delete this when libtorrent is updated in the build servers
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    75
LIBTORRENT_BASE = $(WS_COMPONENTS)/libtorrent/build/prototype/$(MACH)
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    76
PKG_CONFIG_PATHS += $(LIBTORRENT_BASE)$(PKG_CONFIG_PATH.$(BITS)) 
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    77
LD_OPTIONS += -L$(LIBTORRENT_BASE)$(USRLIB.$(BITS)) 
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    78
CXXFLAGS += -I$(LIBTORRENT_BASE)$(USRINCDIR)/torrent 
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    79
COMPONENT_BUILD_ENV += LD_LIBRARY_PATH_$(BITS)="$(LIBTORRENT_BASE)$(USRLIB.$(BITS))" 
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    80
#end Delete
d6703a724425 24400179 libtorrent/rtorrent needs to be updated to work with an updated sigcpp
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5682
diff changeset
    81
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4965
diff changeset
    82
REQUIRED_PACKAGES += developer/build/automake-111
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    83
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
    84
REQUIRED_PACKAGES += library/libtorrent
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    85
REQUIRED_PACKAGES += library/ncurses
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3768
diff changeset
    86
REQUIRED_PACKAGES += system/library/c++-runtime
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
    87
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
    88
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
    89
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
    90
REQUIRED_PACKAGES += web/curl