21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 BUILD_BITS= 64_and_32 |
25 BUILD_BITS= 64_and_32 |
|
26 COMPILER= gcc |
26 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
27 |
28 |
28 COMPONENT_NAME= libtorrent |
29 COMPONENT_NAME= libtorrent |
29 COMPONENT_VERSION= 0.12.2 |
30 COMPONENT_VERSION= 0.12.2 |
30 COMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/ |
31 COMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/ |
34 COMPONENT_BUGDB= utility/rtorrent |
35 COMPONENT_BUGDB= utility/rtorrent |
35 |
36 |
36 TPNO= 9038 |
37 TPNO= 9038 |
37 |
38 |
38 TEST_TARGET= $(NO_TESTS) |
39 TEST_TARGET= $(NO_TESTS) |
|
40 |
|
41 # Needs updated sigcpp, not available on S11. |
|
42 ifeq ($(BUILD_TYPE), evaluation) |
|
43 BUILD_32_and_64= |
|
44 INSTALL_32_and_64= |
|
45 PUBLISH_STAMP= |
|
46 endif |
|
47 |
39 include $(WS_MAKE_RULES)/common.mk |
48 include $(WS_MAKE_RULES)/common.mk |
40 |
49 |
41 COMPONENT_PRE_CONFIGURE_ACTION = \ |
50 COMPONENT_PRE_CONFIGURE_ACTION = \ |
42 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
51 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
43 |
52 |
44 # requires an older automake to reconfigure. |
53 # requires an older automake to reconfigure. |
45 COMPONENT_PREP_ACTION = \ |
54 COMPONENT_PREP_ACTION = \ |
46 (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv) |
55 (cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv) |
47 |
56 |
48 # Although -norunpath is set for CXXFLAGS, we need to put -norunpath |
57 CXXFLAGS += -std=c++11 |
49 # here, otherwise -norunpath doesn't get set when creating the shared |
|
50 # libraries (CC -G). |
|
51 CXX+= $(studio_NORUNPATH) |
|
52 |
|
53 # this is needed or we can't compile the rak headers |
|
54 CC=$(CXX) |
|
55 |
|
56 CXXFLAGS.studio += -i |
|
57 |
58 |
58 CONFIGURE_OPTIONS += --enable-shared |
59 CONFIGURE_OPTIONS += --enable-shared |
59 CONFIGURE_OPTIONS += --disable-debug |
60 CONFIGURE_OPTIONS += --disable-debug |
60 CONFIGURE_OPTIONS += --disable-static |
61 CONFIGURE_OPTIONS += --disable-static |
61 CONFIGURE_OPTIONS += --with-ports |
62 CONFIGURE_OPTIONS += --with-ports |
66 |
67 |
67 REQUIRED_PACKAGES += developer/build/automake-111 |
68 REQUIRED_PACKAGES += developer/build/automake-111 |
68 REQUIRED_PACKAGES += library/c++/sigcpp |
69 REQUIRED_PACKAGES += library/c++/sigcpp |
69 REQUIRED_PACKAGES += library/security/openssl |
70 REQUIRED_PACKAGES += library/security/openssl |
70 REQUIRED_PACKAGES += system/library/c++-runtime |
71 REQUIRED_PACKAGES += system/library/c++-runtime |
|
72 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
73 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
|
74 REQUIRED_PACKAGES += system/library/math |
|
75 |