248N/A#
248N/A# CDDL HEADER START
248N/A#
248N/A# The contents of this file are subject to the terms of the
248N/A# Common Development and Distribution License (the "License").
248N/A# You may not use this file except in compliance with the License.
248N/A#
248N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
248N/A# or http://www.opensolaris.org/os/licensing.
248N/A# See the License for the specific language governing permissions
248N/A# and limitations under the License.
248N/A#
248N/A# When distributing Covered Code, include this CDDL HEADER in each
248N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
248N/A# If applicable, add the following below this CDDL HEADER, with the
248N/A# fields enclosed by brackets "[]" replaced with your own identifying
248N/A# information: Portions Copyright [yyyy] [name of copyright owner]
248N/A#
248N/A# CDDL HEADER END
248N/A#
248N/A
248N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
248N/A#
248N/A
814N/A# we really need to use studio, mostly because that's what
814N/A# sigc++ uses, so we don't like that parfait is g++ in disguise
2238N/Aexport PARFAIT_BUILD=no
814N/A
248N/Ainclude ../../make-rules/shared-macros.mk
248N/A
248N/ACOMPONENT_NAME= rtorrent
248N/ACOMPONENT_VERSION= 0.8.2
248N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
248N/ACOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
248N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:76135a63869e43fa0392829bb45d94c0aa55e94350dddc272685ccfac1bbb2ed
248N/ACOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/rtorrent
248N/A
3661N/ATPNO= 8824
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
248N/A
248N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
248N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
248N/A
248N/ACOMPONENT_PREP_ACTION = \
248N/A (cd $(@D) ; \
690N/A aclocal -I./scripts -I. ; \
248N/A autoheader; \
248N/A libtoolize --automake --copy --force; \
690N/A automake; \
248N/A autoconf )
248N/A
248N/A# this is needed or we can't compile the rak headers
248N/ACC=$(CXX)
248N/A
248N/ALDFLAGS += -L/usr/gnu/lib -R/usr/gnu/lib -lnsl -lsocket
248N/A
248N/ACXXFLAGS += -i
248N/ACXXFLAGS += -xspace
248N/ACXXFLAGS += $(studio_XREGS)
248N/ACXXFLAGS += -I/usr/include/ncurses
248N/ACONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
248N/ACONFIGURE_OPTIONS += --disable-debug
248N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
248N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
248N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
248N/A
2490N/AASLR_MODE = $(ASLR_ENABLE)
248N/A
248N/A# common targets
248N/Abuild: $(BUILD_32)
248N/A
248N/Ainstall: $(INSTALL_32)
248N/A
248N/Atest: $(NO_TESTS)
248N/A
248N/A
3996N/AREQUIRED_PACKAGES += library/c++/sigcpp
3996N/AREQUIRED_PACKAGES += library/libtorrent
3996N/AREQUIRED_PACKAGES += library/ncurses
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/c++-runtime
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += web/curl