json-c: add 32 bit library, needed in order to be able to build fontconfig in 32...
[oi-userland.git] / components / library / libtorrent / Makefile
blobeb5e6965c250d33dfa53f5f4027801db3147d5b5
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2020, Aurelien Larcher
27 BUILD_BITS= 64
28 USE_PARALLEL_BUILD= yes
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= libtorrent
32 COMPONENT_VERSION= 0.13.8
33 COMPONENT_REVISION= 2
34 COMPONENT_SUMMARY= libtorrent - a Bittorrent library for rtorrent
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_PROJECT_URL= https://rakshasa.github.io/rtorrent/
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
38 COMPONENT_ARCHIVE_HASH= sha256:ed115a28f4ae8cfcd33b94a597c076ca74fd549867a26e4fac9505c27288e983
39 COMPONENT_ARCHIVE_URL= http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
40 COMPONENT_CLASSIFICATION= System/Libraries
41 COMPONENT_FMRI= library/libtorrent
42 COMPONENT_LICENSE= GPLv2
43 COMPONENT_LICENSE_FILE= COPYING
45 include $(WS_MAKE_RULES)/common.mk
47 COMPONENT_PREP_ACTION = ( \
48 cd $(@D) && \
49 PATH="$(PATH)" sh autogen.sh )
51 COMPONENT_PRE_CONFIGURE_ACTION = \
52 ($(CLONEY) $(SOURCE_DIR) $(@D))
54 # this is needed or we can't compile the rak headers
55 CC= $(CXX)
57 CXXFLAGS += -std=c++11
58 CXXFLAGS += $(gcc_OPT)
60 # Find issues with undefined symbols in build time
61 LD_OPTIONS += $(LD_Z_DEFS)
63 LDFLAGS += -lnsl -lsocket
64 LDFLAGS += -lz
66 CONFIGURE_OPTIONS += --enable-shared
67 CONFIGURE_OPTIONS += --disable-debug
68 CONFIGURE_OPTIONS += --disable-static
69 #CONFIGURE_OPTIONS += --with-ports
70 CONFIGURE_OPTIONS += --disable-libtool-lock
71 CONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
73 COMPONENT_TEST_ENV += "LDFLAGS=-lnsl -lcppunit -lsocket -lz"
74 COMPONENT_TEST_TRANSFORMS = $(CONFIGURE_TEST_TRANSFORMS)
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
78 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
79 REQUIRED_PACKAGES += library/security/openssl-31
80 REQUIRED_PACKAGES += library/zlib
81 REQUIRED_PACKAGES += system/library