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