Makefile revision 3661
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# CDDL HEADER START
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# The contents of this file are subject to the terms of the
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Common Development and Distribution License (the "License").
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# You may not use this file except in compliance with the License.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# or http://www.opensolaris.org/os/licensing.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# See the License for the specific language governing permissions
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# and limitations under the License.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# When distributing Covered Code, include this CDDL HEADER in each
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico# If applicable, add the following below this CDDL HEADER, with the
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# fields enclosed by brackets "[]" replaced with your own identifying
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# information: Portions Copyright [yyyy] [name of copyright owner]
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# CDDL HEADER END
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico#
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# we really need to use studio, mostly because that's what
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# sigc++ uses, so we don't like that parfait is g++ in disguise
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoexport PARFAIT_BUILD=no
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoinclude ../../make-rules/shared-macros.mk
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_NAME= libtorrent
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_VERSION= 0.12.2
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_ARCHIVE_HASH= \
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico sha256:cf9d2cd667fd6939a3e0bd27e48d0c7f35d9ab2f7affbb3214da03fd2c1360a8
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCOMPONENT_BUGDB= utility/rtorrent
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoTPNO= 9038
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoinclude ../../make-rules/prep.mk
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoinclude ../../make-rules/configure.mk
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoinclude ../../make-rules/ips.mk
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCOMPONENT_PRE_CONFIGURE_ACTION = \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico ($(CLONEY) $(SOURCE_DIR) $(@D))
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCOMPONENT_PREP_ACTION = \
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico (cd $(@D) ; \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico aclocal -I./scripts -I. ; \
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico autoheader; \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico libtoolize --automake --copy --force; \
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico automake; \
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico autoconf )
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico# here, otherwise -norunpath doesn't get set when creating the shared
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# libraries (CC -G).
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCXX+= $(studio_NORUNPATH)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico# this is needed or we can't compile the rak headers
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCC=$(CXX)
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCXXFLAGS += $(studio_OPT)
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCXXFLAGS += -i
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCXXFLAGS += -xspace
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCXXFLAGS += $(studio_XREGS)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS += --enable-shared
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCONFIGURE_OPTIONS += --disable-debug
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS += --disable-static
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS += --with-ports
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS += --disable-libtool-lock
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNicoCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNico
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico# common targets
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicobuild: $(BUILD_32_and_64)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoinstall: $(INSTALL_32_and_64)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicotest: $(NO_TESTS)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico
ddf046d1880605a31698f3a4ebe20acce6de2127JazzyNicoinclude ../../make-rules/depend.mk
1df8cf8012766394a0ec6b36010e236e9a9415b1JazzyNico