Makefile revision 814
6588a2b404365cea59e71a3f639349272600f68dMark Andrews#
6588a2b404365cea59e71a3f639349272600f68dMark Andrews# CDDL HEADER START
6588a2b404365cea59e71a3f639349272600f68dMark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# The contents of this file are subject to the terms of the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Common Development and Distribution License (the "License").
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# You may not use this file except in compliance with the License.
56ebb560a135323cb0a9da33426b229278e642f6Mukund Sivaraman#
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman# or http://www.opensolaris.org/os/licensing.
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman# See the License for the specific language governing permissions
930719e8767e0a58ca1b57cfbbb2b07b885afd14Mukund Sivaraman# and limitations under the License.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# CDDL HEADER END
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
a625502bdd149be06bd0cc06000c3dc9e4a813b9Tinderbox User#
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecickiinclude ../../make-rules/shared-macros.mk
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecicki
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark AndrewsCOMPONENT_NAME= librsync
65d59a4307d00f6b4e278b730c278502e5449da8Mark AndrewsCOMPONENT_VERSION= 0.9.7
65d59a4307d00f6b4e278b730c278502e5449da8Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark AndrewsCOMPONENT_PROJECT_URL= http://librsync.sourceforge.net/
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:d575eb5cae7a815798220c3afeff5649d3e8b4ab
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark AndrewsCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/librsync/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews# librsync documentation as originally found at:
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark Andrews# http://librsync.sourcefrog.net/doc/librsync.html
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrews# http://librsync.sourcefrog.net/doc/librsync.pdf
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark Andrews# The files there are not in an easily downloadable format so a local
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrews# archive has been created for them.
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark AndrewsCOMPONENT_NAME_1= librsync-docs
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark AndrewsCOMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION)
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark AndrewsCOMPONENT_ARCHIVE_HASH_1= sha1:87b947aa4312bcf776d442abc23e142eb35c16da
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark AndrewsCOMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark AndrewsCLOBBER_PATHS += $(COMPONENT_NAME_1)
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark Andrews
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Huntinclude ../../make-rules/prep.mk
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Huntinclude ../../make-rules/configure.mk
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Huntinclude ../../make-rules/ips.mk
87e7d08a8bae58ab8edacaa990a4234063c23793Mar Andrews
87e7d08a8bae58ab8edacaa990a4234063c23793Mar AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = \
87e7d08a8bae58ab8edacaa990a4234063c23793Mar Andrews ($(CLONEY) $(SOURCE_DIR) $(@D)) ; \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt tar -xvf $(COMPONENT_ARCHIVE_1)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCFLAGS += -features=no%extinl
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntCONFIGURE_OPTIONS += --enable-shared
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/librsync-0.9.7
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntPATCH_LEVEL = 1
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntbuild: $(BUILD_32_and_64)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecickiinstall: $(INSTALL_32_and_64)
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki $(MKDIR) -p $(PROTOUSRSHAREDOCDIR) ; \
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki $(CP) librsync-docs/librsync.pdf $(PROTOUSRSHAREDOCDIR) ; \
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki $(CP) -r librsync-docs/html $(PROTOUSRSHAREDOCDIR)
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrewstest: $(TEST_32_and_64)
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews
8d80b4939dd27dc3136ab152706160c613baa93aMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrewsinclude ../../make-rules/depend.mk
3836539e8747c65b789037b8ca8cd47badbb991fJeremy C. Reed