Makefile revision 3661
2605N/A#
2605N/A# CDDL HEADER START
2605N/A#
2605N/A# The contents of this file are subject to the terms of the
2605N/A# Common Development and Distribution License (the "License").
2605N/A# You may not use this file except in compliance with the License.
2605N/A#
2605N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2605N/A# or http://www.opensolaris.org/os/licensing.
2605N/A# See the License for the specific language governing permissions
2605N/A# and limitations under the License.
2605N/A#
2605N/A# When distributing Covered Code, include this CDDL HEADER in each
2605N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2605N/A# If applicable, add the following below this CDDL HEADER, with the
2605N/A# fields enclosed by brackets "[]" replaced with your own identifying
2605N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2605N/A#
2605N/A# CDDL HEADER END
2605N/A#
2605N/A
2605N/A#
2605N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
2605N/A#
2605N/A
2605N/A# we really need to use studio, mostly because that's what
2605N/A# sigc++ uses, so we don't like that parfait is g++ in disguise
2900N/Aexport PARFAIT_BUILD=no
2605N/A
2605N/Ainclude ../../make-rules/shared-macros.mk
2605N/A
2900N/ACOMPONENT_NAME= libtorrent
2605N/ACOMPONENT_VERSION= 0.12.2
2605N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2605N/ACOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
2605N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3661N/ACOMPONENT_ARCHIVE_HASH= \
3661N/A sha256:cf9d2cd667fd6939a3e0bd27e48d0c7f35d9ab2f7affbb3214da03fd2c1360a8
2605N/ACOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
2605N/ACOMPONENT_BUGDB= utility/rtorrent
2605N/A
2605N/ATPNO= 9038
2605N/A
2605N/Ainclude ../../make-rules/prep.mk
2605N/Ainclude ../../make-rules/configure.mk
2605N/Ainclude ../../make-rules/ips.mk
2605N/A
2605N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2605N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2605N/A
2605N/ACOMPONENT_PREP_ACTION = \
2605N/A (cd $(@D) ; \
2605N/A aclocal -I./scripts -I. ; \
2605N/A autoheader; \
2605N/A libtoolize --automake --copy --force; \
2605N/A automake; \
2605N/A autoconf )
# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
# here, otherwise -norunpath doesn't get set when creating the shared
# libraries (CC -G).
CXX+= $(studio_NORUNPATH)
# this is needed or we can't compile the rak headers
CC=$(CXX)
CXXFLAGS += $(studio_OPT)
CXXFLAGS += -i
CXXFLAGS += -xspace
CXXFLAGS += $(studio_XREGS)
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-debug
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-ports
CONFIGURE_OPTIONS += --disable-libtool-lock
CONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
CONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk