Bump opal to 3.10.10
[unleashed-userland.git] / components / rtorrent / Makefile
blob4cd7f2cca4ee55871ef25da3fa3006c7a19637ab
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 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= rtorrent
29 COMPONENT_VERSION= 0.9.4
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_PROJECT_URL= https://rakshasa.github.io/rtorrent/
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:bc0a2c1ee613b68f37021beaf4e64a9252f91ed06f998c1e897897c354ce7e84
35 COMPONENT_ARCHIVE_URL= http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/rtorrent
38 include ../../make-rules/prep.mk
39 include ../../make-rules/configure.mk
40 include ../../make-rules/ips.mk
42 COMPONENT_PRE_CONFIGURE_ACTION = \
43 ($(CLONEY) $(SOURCE_DIR) $(@D))
45 LDFLAGS += -lnsl -lsocket
47 CXXFLAGS += $(gcc_OPT)
48 LDFLAGS.32 += -L/usr/gnu/lib -R/usr/gnu/lib
49 LDFLAGS.64 += -L/usr/gnu/lib/$(MACH64) -R/usr/gnu/lib/$(MACH64)
50 LDFLAGS += $(LDFLAGS.$(BITS))
51 CXXFLAGS += -I/usr/include/ncurses
52 CONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
53 CONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
54 CONFIGURE_OPTIONS += --disable-debug
56 PKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH32)/doc
58 # common targets
59 build: $(BUILD_32)
61 install: $(INSTALL_32)
63 test: $(TEST_32)
65 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
67 include ../../make-rules/depend.mk