Makefile revision 248
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# See the License for the specific language governing permissions
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER END
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/shared-macros.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_NAME= rtorrent
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_VERSION= 0.8.2
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_HASH= sha1:891093c5d600c2e3853eadbbec369a12dfe6ec11
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/configure.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/ips.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_CONFIGURE_ACTION = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ($(CLONEY) $(SOURCE_DIR) $(@D))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PREP_ACTION = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (cd $(@D) ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein aclocal-1.10 -I./scripts -I. ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein autoheader; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein libtoolize --automake --copy --force; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein automake-1.10; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein autoconf )
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# this is needed or we can't compile the rak headers
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCC=$(CXX)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLDFLAGS += -L/usr/gnu/lib -R/usr/gnu/lib -lnsl -lsocket
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCXXFLAGS += -i
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCXXFLAGS += -xspace
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCXXFLAGS += -mr
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCXXFLAGS += $(studio_XREGS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCXXFLAGS += -I/usr/include/ncurses
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --disable-debug
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# common targets
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinbuild: $(BUILD_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssoninstall: $(INSTALL_32)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssontest: $(NO_TESTS)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/depend.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein