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