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