Makefile revision 6854
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER START
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The contents of this file are subject to the terms of the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Common Development and Distribution License (the "License").
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You may not use this file except in compliance with the License.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# or http://www.opensolaris.org/os/licensing.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# See the License for the specific language governing permissions
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# and limitations under the License.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# If applicable, add the following below this CDDL HEADER, with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER END
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncBUILD_BITS= 64_and_32
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude ../../make-rules/shared-macros.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_NAME= librsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_VERSION= 0.9.7
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_PROJECT_URL= http://librsync.sourceforge.net/
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_HASH= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:6633e4605662763a03bb6388529cbdfd3b11a9ec55b8845351c1bd9a92bc41d6
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/librsync/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_BUGDB= library/librsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# librsync documentation as originally found at:
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# http://librsync.sourcefrog.net/doc/librsync.html
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# http://librsync.sourcefrog.net/doc/librsync.pdf
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The files there are not in an easily downloadable format so a local
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# archive has been created for them.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_NAME_1= librsync-docs
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_HASH_1= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sha256:e805819272f71b06823ee13f2dd7ddb92e75d75de18c33b7fd32133847c52afe
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_POST_UNPACK_ACTION_1 = $(MV) $(COMPONENT_NAME_1) $(@D)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncTPNO= 9087
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCLEAN_PATHS += $(COMPONENT_NAME_1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude $(WS_MAKE_RULES)/common.mk
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync ($(CLONEY) $(SOURCE_DIR) $(@D)) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync tar -xvf $(COMPONENT_ARCHIVE_1)
c679f5c447cd6925763c50493cd83bd9aa032d17vboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCFLAGS += -features=no%extinl
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCONFIGURE_OPTIONS += --enable-shared
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncPROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/librsync-0.9.7
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Master test results are the same for 32-bit and 64-bit, so override
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# here, rather than create multiple identical master files.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The additional librsync specific set of transforms to be applied to the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# test results to try to normalize them.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_TEST_TRANSFORMS += \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync '-e "/^XXX_CC_XXX$$/d" '
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncCOMPONENT_POST_INSTALL_ACTION += \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(MKDIR) -p $(PROTOUSRSHAREDOCDIR) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) librsync-docs/librsync.pdf $(PROTOUSRSHAREDOCDIR) ; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(CP) -r librsync-docs/html $(PROTOUSRSHAREDOCDIR)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
c679f5c447cd6925763c50493cd83bd9aa032d17vboxsyncREQUIRED_PACKAGES += library/popt
c679f5c447cd6925763c50493cd83bd9aa032d17vboxsync