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