Makefile revision 844
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# CDDL HEADER START
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar# The contents of this file are subject to the terms of the
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# Common Development and Distribution License (the "License").
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# You may not use this file except in compliance with the License.
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# or http://www.opensolaris.org/os/licensing.
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# See the License for the specific language governing permissions
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# and limitations under the License.
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# When distributing Covered Code, include this CDDL HEADER in each
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# If applicable, add the following below this CDDL HEADER, with the
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# fields enclosed by brackets "[]" replaced with your own identifying
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# information: Portions Copyright [yyyy] [name of copyright owner]
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# CDDL HEADER END
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7fb4c0766e858653c9776474005a6ae6d94828afgryzor#
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# we really need to use studio, mostly because that's what
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# sigc++ uses, so we don't like that parfait is g++ in disguise
7fb4c0766e858653c9776474005a6ae6d94828afgryzorPARFAIT_BUILD=no
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzorinclude ../../make-rules/shared-macros.mk
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
f6edf426ed6b8912be700db47d65a001d091909flgentisCOMPONENT_NAME= rtorrent
f6edf426ed6b8912be700db47d65a001d091909flgentisCOMPONENT_VERSION= 0.8.2
f6edf426ed6b8912be700db47d65a001d091909flgentisCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f6edf426ed6b8912be700db47d65a001d091909flgentisCOMPONENT_PROJECT_URL= http://libtorrent.rakshasa.no/
f6edf426ed6b8912be700db47d65a001d091909flgentisCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCOMPONENT_ARCHIVE_HASH= \
7fb4c0766e858653c9776474005a6ae6d94828afgryzor sha256:76135a63869e43fa0392829bb45d94c0aa55e94350dddc272685ccfac1bbb2ed
5a884cb4f4b177e207554c26334ef853c5665e79lgentisCOMPONENT_ARCHIVE_URL= http://libtorrent.rakshasa.no/downloads/$(COMPONENT_ARCHIVE)
5a884cb4f4b177e207554c26334ef853c5665e79lgentis
5a884cb4f4b177e207554c26334ef853c5665e79lgentisinclude ../../make-rules/prep.mk
5a884cb4f4b177e207554c26334ef853c5665e79lgentisinclude ../../make-rules/configure.mk
5a884cb4f4b177e207554c26334ef853c5665e79lgentisinclude ../../make-rules/ips.mk
5a884cb4f4b177e207554c26334ef853c5665e79lgentis
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentisCOMPONENT_PRE_CONFIGURE_ACTION = \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis ($(CLONEY) $(SOURCE_DIR) $(@D))
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentisCOMPONENT_PREP_ACTION = \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis (cd $(@D) ; \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis aclocal -I./scripts -I. ; \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis autoheader; \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis libtoolize --automake --copy --force; \
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis automake; \
5a884cb4f4b177e207554c26334ef853c5665e79lgentis autoconf )
5a884cb4f4b177e207554c26334ef853c5665e79lgentis
5a884cb4f4b177e207554c26334ef853c5665e79lgentis# this is needed or we can't compile the rak headers
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCC=$(CXX)
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzorLDFLAGS += -L/usr/gnu/lib -R/usr/gnu/lib -lnsl -lsocket
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCXXFLAGS += -i
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCXXFLAGS += -xspace
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCXXFLAGS += $(studio_XREGS)
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCXXFLAGS += -I/usr/include/ncurses
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCONFIGURE_OPTIONS += --disable-debug
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
7fb4c0766e858653c9776474005a6ae6d94828afgryzorCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzor
7fb4c0766e858653c9776474005a6ae6d94828afgryzor# common targets
7fb4c0766e858653c9776474005a6ae6d94828afgryzorbuild: $(BUILD_32)
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentisinstall: $(INSTALL_32)
ad338079daa7c8b4d59efe1c1ff40cdd6f7e2f5algentis
634e88689ee20ac2e1ed5569959882394201e7aegryzortest: $(NO_TESTS)
ef21ee4d200e5b4bf27de8fc1de569b3531412b2lgentis
ef21ee4d200e5b4bf27de8fc1de569b3531412b2lgentisBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
ef21ee4d200e5b4bf27de8fc1de569b3531412b2lgentis
ef21ee4d200e5b4bf27de8fc1de569b3531412b2lgentisinclude ../../make-rules/depend.mk
634e88689ee20ac2e1ed5569959882394201e7aegryzor