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