Makefile revision 2238
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# we really need to use studio, mostly because that's what
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# sigc++ uses, so we don't like that parfait is g++ in disguise
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsexport PARFAIT_BUILD=no
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/shared-macros.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= libtorrent
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_VERSION= 0.12.2
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_ARCHIVE_HASH= \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User sha256:cf9d2cd667fd6939a3e0bd27e48d0c7f35d9ab2f7affbb3214da03fd2c1360a8
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_BUGDB= utility/rtorrent
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userinclude ../../make-rules/prep.mk
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userinclude ../../make-rules/configure.mk
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userinclude ../../make-rules/ips.mk
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_PRE_CONFIGURE_ACTION = \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User ($(CLONEY) $(SOURCE_DIR) $(@D))
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCOMPONENT_PREP_ACTION = \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User (cd $(@D) ; \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User aclocal -I./scripts -I. ; \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User autoheader; \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User libtoolize --automake --copy --force; \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User automake; \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User autoconf )
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# here, otherwise -norunpath doesn't get set when creating the shared
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# libraries (CC -G).
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCXX+= $(studio_NORUNPATH)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# this is needed or we can't compile the rak headers
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCC=$(CXX)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCXXFLAGS += $(studio_OPT)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCXXFLAGS += -i
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCXXFLAGS += -xspace
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCXXFLAGS += $(studio_XREGS)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONFIGURE_OPTIONS += --enable-shared
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += --disable-debug
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += --disable-static
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += --with-ports
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += --disable-libtool-lock
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# common targets
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userbuild: $(BUILD_32_and_64)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userinstall: $(INSTALL_32_and_64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Usertest: $(NO_TESTS)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userinclude ../../make-rules/depend.mk
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User