rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / rtorrent / Makefile
bloba7f5be6154c11faa67429e029610660d99febb26
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.
26 BUILD_BITS= 64
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= rtorrent
30 COMPONENT_VERSION= 0.9.8
31 COMPONENT_REVISION= 3
32 COMPONENT_SUMMARY= rtorrent - a BitTorrent client for ncurses
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_PROJECT_URL= https://rakshasa.github.io/rtorrent/
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
36 COMPONENT_ARCHIVE_HASH= sha256:9edf0304bf142215d3bc85a0771446b6a72d0ad8218efbe184b41e4c9c7542af
37 COMPONENT_ARCHIVE_URL= http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
38 COMPONENT_FMRI= network/rtorrent
39 COMPONENT_CLASSIFICATION= Applications/Internet
40 COMPONENT_LICENSE= GPLv2
41 COMPONENT_LICENSE_FILE= COPYING
43 include $(WS_MAKE_RULES)/common.mk
45 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
47 LDFLAGS += -lnsl -lsocket
49 CXXFLAGS += -std=c++11
50 CXXFLAGS += $(gcc_OPT)
51 CXXFLAGS += -I/usr/include/ncurses
52 CPPFLAGS += $(XPG6MODE)
53 CPPFLAGS += -I/usr/include/ncurses
55 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
57 CONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_64)
58 CONFIGURE_OPTIONS += --disable-debug
60 PKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH64)/doc
62 COMPONENT_TEST_TRANSFORMS = $(CONFIGURE_TEST_TRANSFORMS)
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
66 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
67 REQUIRED_PACKAGES += library/libtorrent
68 REQUIRED_PACKAGES += library/ncurses
69 REQUIRED_PACKAGES += system/library
70 REQUIRED_PACKAGES += system/library/math
71 REQUIRED_PACKAGES += web/curl