Makefile revision 300
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# CDDL HEADER START
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# The contents of this file are subject to the terms of the
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Common Development and Distribution License (the "License").
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# You may not use this file except in compliance with the License.
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# or http://www.opensolaris.org/os/licensing.
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# See the License for the specific language governing permissions
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# and limitations under the License.
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# When distributing Covered Code, include this CDDL HEADER in each
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# If applicable, add the following below this CDDL HEADER, with the
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# fields enclosed by brackets "[]" replaced with your own identifying
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# information: Portions Copyright [yyyy] [name of copyright owner]
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# CDDL HEADER END
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara#
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
65e99be301d5a19db33f25841f671756e8dbb9b5ludovicpinclude ../../make-rules/shared-macros.mk
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludo
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_NAME= libtorrent
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_VERSION= 0.12.2
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludoCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
0f8553e2af5fc49a510ecfcfc93e66d06713f631ludoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_ARCHIVE_HASH= sha1:a53d2c671e9f2dd971d0622d5b3672da91c46ef9
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergarainclude ../../make-rules/prep.mk
2f9e866dc4cbcbfdc541e27291fee3f2435485ddchebrardinclude ../../make-rules/configure.mk
2f9e866dc4cbcbfdc541e27291fee3f2435485ddchebrardinclude ../../make-rules/ips.mk
2f9e866dc4cbcbfdc541e27291fee3f2435485ddchebrard
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergaraCOMPONENT_PRE_CONFIGURE_ACTION = \
27f8adec83293fb8bd3bfa37175322b0ee3bb933jvergara ($(CLONEY) $(SOURCE_DIR) $(@D))
COMPONENT_PREP_ACTION = \
(cd $(@D) ; \
aclocal-1.10 -I./scripts -I. ; \
autoheader; \
libtoolize --automake --copy --force; \
automake-1.10; \
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 += -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