Makefile revision 1273
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamson
fa9e4066f08beec538e775443c5be79dd423fcabahrens# we really need to use studio, mostly because that's what
fa9e4066f08beec538e775443c5be79dd423fcabahrens# sigc++ uses, so we don't like that parfait is g++ in disguise
fa9e4066f08beec538e775443c5be79dd423fcabahrensPARFAIT_BUILD=no
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamson
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamsoninclude ../../make-rules/shared-macros.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_NAME= libtorrent
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_VERSION= 0.12.2
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_HASH= \
fa9e4066f08beec538e775443c5be79dd423fcabahrens sha256:cf9d2cd667fd6939a3e0bd27e48d0c7f35d9ab2f7affbb3214da03fd2c1360a8
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_BUGDB= utility/rtorrent
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/prep.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/configure.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/ips.mk
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamson
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_PRE_CONFIGURE_ACTION = \
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamson ($(CLONEY) $(SOURCE_DIR) $(@D))
2c601221f598e1c7737ee1128853af2a7be2acb2Chris Williamson
2c601221f598e1c7737ee1128853af2a7be2acb2Chris WilliamsonCOMPONENT_PREP_ACTION = \
fa9e4066f08beec538e775443c5be79dd423fcabahrens (cd $(@D) ; \
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock aclocal -I./scripts -I. ; \
fa9e4066f08beec538e775443c5be79dd423fcabahrens autoheader; \
fa9e4066f08beec538e775443c5be79dd423fcabahrens libtoolize --automake --copy --force; \
fa9e4066f08beec538e775443c5be79dd423fcabahrens automake; \
fa9e4066f08beec538e775443c5be79dd423fcabahrens autoconf )
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
fa9e4066f08beec538e775443c5be79dd423fcabahrens# 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 += $(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