Makefile revision 814
c313914d0e66b20969215e519bbf2ab4ecf39512Tinderbox User#
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# CDDL HEADER START
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User#
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# The contents of this file are subject to the terms of the
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Common Development and Distribution License (the "License").
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt# You may not use this file except in compliance with the License.
d77cb075aae5595e460e3299bfc1e8ea5d42b560Evan Hunt#
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# or http://www.opensolaris.org/os/licensing.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# See the License for the specific language governing permissions
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# and limitations under the License.
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews#
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7ec97ae74e42ec21b354fd2d1366313b41d947d6Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
002f1373374a0b72fc0329baa682917929bef168Tony Finch# information: Portions Copyright [yyyy] [name of copyright owner]
002f1373374a0b72fc0329baa682917929bef168Tony Finch#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# CDDL HEADER END
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews#
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews#
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# we really need to use studio, mostly because that's what
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# sigc++ uses, so we don't like that parfait is g++ in disguise
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark AndrewsPARFAIT_BUILD=no
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Huntinclude ../../make-rules/shared-macros.mk
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt
5c78f1f50e53d8e2ed51a187efc2c9a0f43b4b1bMark AndrewsCOMPONENT_NAME= libtorrent
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_VERSION= 0.12.2
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f1740da065d4555039fe8bb53beb4153e3f94de3Mark AndrewsCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:a53d2c671e9f2dd971d0622d5b3672da91c46ef9
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark AndrewsCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrewsinclude ../../make-rules/prep.mk
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Huntinclude ../../make-rules/configure.mk
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Huntinclude ../../make-rules/ips.mk
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews
635e4351b04fd61ca6d853bdac6268c090b55129Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = \
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews ($(CLONEY) $(SOURCE_DIR) $(@D))
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark AndrewsCOMPONENT_PREP_ACTION = \
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews (cd $(@D) ; \
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews aclocal -I./scripts -I. ; \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt autoheader; \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt libtoolize --automake --copy --force; \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt automake; \
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt autoconf )
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# Although -norunpath is set for CXXFLAGS, we need to put -norunpath
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# here, otherwise -norunpath doesn't get set when creating the shared
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# libraries (CC -G).
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund SivaramanCXX+= $(studio_NORUNPATH)
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman# this is needed or we can't compile the rak headers
fd82c70695888c134287b8018296028c252d100eMukund SivaramanCC=$(CXX)
fd82c70695888c134287b8018296028c252d100eMukund Sivaraman
fd82c70695888c134287b8018296028c252d100eMukund SivaramanCXXFLAGS += $(studio_OPT)
fd82c70695888c134287b8018296028c252d100eMukund SivaramanCXXFLAGS += -i
4a53e3c2b83c476a93148eaee0272649beb221caMark AndrewsCXXFLAGS += -xspace
4a53e3c2b83c476a93148eaee0272649beb221caMark AndrewsCXXFLAGS += $(studio_XREGS)
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsCONFIGURE_OPTIONS += --enable-shared
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsCONFIGURE_OPTIONS += --disable-debug
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsCONFIGURE_OPTIONS += --disable-static
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark AndrewsCONFIGURE_OPTIONS += --with-ports
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS += --disable-libtool-lock
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
4221d9cd1d02311fbf9b5f08a038f5af78b10b4aEvan HuntCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupont# common targets
f9c410d93711fbf312a0162f1e2d3f2a5ede69afFrancis Dupontbuild: $(BUILD_32_and_64)
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępieńinstall: $(INSTALL_32_and_64)
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępień
e526027287b849f0b6ab6e069156697cbafa22c1Michał Kępieńtest: $(NO_TESTS)
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman
929329d2d66a7e1083c70a9c918381935bf12799Mukund SivaramanBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark Andrewsinclude ../../make-rules/depend.mk
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews