Makefile revision 844
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER START
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# The contents of this file are subject to the terms of the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Common Development and Distribution License (the "License").
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# You may not use this file except in compliance with the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
7eaaa8a4480370b82ef3735994f986f338fb4df2vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# or http://www.opensolaris.org/os/licensing.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# See the License for the specific language governing permissions
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# and limitations under the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# When distributing Covered Code, include this CDDL HEADER in each
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# If applicable, add the following below this CDDL HEADER, with the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER END
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync#
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# we really need to use studio, mostly because that's what
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# sigc++ uses, so we don't like that parfait is g++ in disguise
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncPARFAIT_BUILD=no
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../../make-rules/shared-macros.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_NAME= libtorrent
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_VERSION= 0.12.2
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE_HASH= \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync sha256:cf9d2cd667fd6939a3e0bd27e48d0c7f35d9ab2f7affbb3214da03fd2c1360a8
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../../make-rules/prep.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../../make-rules/configure.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../../make-rules/ips.mk
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOMPONENT_PREP_ACTION = \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync (cd $(@D) ; \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync aclocal -I./scripts -I. ; \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync autoheader; \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync libtoolize --automake --copy --force; \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync automake; \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync autoconf )
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# here, otherwise -norunpath doesn't get set when creating the shared
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# libraries (CC -G).
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCXX+= $(studio_NORUNPATH)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# this is needed or we can't compile the rak headers
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCC=$(CXX)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCXXFLAGS += $(studio_OPT)
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsyncCXXFLAGS += -i
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCXXFLAGS += -xspace
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCXXFLAGS += $(studio_XREGS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --enable-shared
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --disable-debug
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --disable-static
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --with-ports
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += --disable-libtool-lock
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsyncCONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# common targets
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncbuild: $(BUILD_32_and_64)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinstall: $(INSTALL_32_and_64)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsynctest: $(NO_TESTS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../../make-rules/depend.mk
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync