Makefile revision 1273
394N/A#
394N/A# CDDL HEADER START
394N/A#
394N/A# The contents of this file are subject to the terms of the
394N/A# Common Development and Distribution License (the "License").
394N/A# You may not use this file except in compliance with the License.
394N/A#
394N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
394N/A# or http://www.opensolaris.org/os/licensing.
394N/A# See the License for the specific language governing permissions
394N/A# and limitations under the License.
394N/A#
394N/A# When distributing Covered Code, include this CDDL HEADER in each
394N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
394N/A# If applicable, add the following below this CDDL HEADER, with the
394N/A# fields enclosed by brackets "[]" replaced with your own identifying
394N/A# information: Portions Copyright [yyyy] [name of copyright owner]
394N/A#
394N/A# CDDL HEADER END
394N/A#
844N/A
394N/A#
394N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
394N/A#
394N/A
394N/A# we really need to use studio, mostly because that's what
394N/A# sigc++ uses, so we don't like that parfait is g++ in disguise
394N/APARFAIT_BUILD=no
394N/A
394N/Ainclude ../../make-rules/shared-macros.mk
844N/A
844N/ACOMPONENT_NAME= rtorrent
394N/ACOMPONENT_VERSION= 0.8.2
394N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
394N/ACOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
394N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
394N/ACOMPONENT_ARCHIVE_HASH= \
394N/A sha256:76135a63869e43fa0392829bb45d94c0aa55e94350dddc272685ccfac1bbb2ed
394N/ACOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
394N/ACOMPONENT_BUGDB= utility/rtorrent
394N/A
394N/Ainclude ../../make-rules/prep.mk
394N/Ainclude ../../make-rules/configure.mk
394N/Ainclude ../../make-rules/ips.mk
394N/A
394N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
394N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
394N/A
394N/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)"
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk