components/librsync/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 4196 d697072a92f5
child 5682 94c0ca64c022
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3725
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    21
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		librsync
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	0.9.7
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://librsync.sourceforge.net/
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    31
    sha256:6633e4605662763a03bb6388529cbdfd3b11a9ec55b8845351c1bd9a92bc41d6
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/$(COMPONENT_NAME)/files/librsync/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    33
COMPONENT_BUGDB=	library/librsync
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
# librsync documentation as originally found at:
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
# http://librsync.sourcefrog.net/doc/librsync.html
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
# http://librsync.sourcefrog.net/doc/librsync.pdf
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
# The files there are not in an easily downloadable format so a local
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
# archive has been created for them.
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
COMPONENT_NAME_1=	librsync-docs
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
COMPONENT_SRC_1=	$(COMPONENT_NAME_1)-$(COMPONENT_VERSION)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
COMPONENT_ARCHIVE_1=	$(COMPONENT_SRC_1).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    43
COMPONENT_ARCHIVE_HASH_1=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    44
    sha256:e805819272f71b06823ee13f2dd7ddb92e75d75de18c33b7fd32133847c52afe
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPONENT_ARCHIVE_URL_1=	$(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
4196
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3854
diff changeset
    46
COMPONENT_POST_UNPACK_ACTION_1 = $(MV) $(COMPONENT_NAME_1) $(@D)
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1303
diff changeset
    47
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1303
diff changeset
    48
TPNO=			9087
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1303
diff changeset
    49
4196
d697072a92f5 19782029 userland should be able to build from SCM repositories
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3854
diff changeset
    50
CLEAN_PATHS += $(COMPONENT_NAME_1)
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    52
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    53
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    54
include $(WS_MAKE_RULES)/ips.mk
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
COMPONENT_PRE_CONFIGURE_ACTION = \
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
	($(CLONEY) $(SOURCE_DIR) $(@D)) ; \
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
	tar -xvf $(COMPONENT_ARCHIVE_1)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
CFLAGS += -features=no%extinl
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
CONFIGURE_OPTIONS  +=	--enable-shared
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/librsync-0.9.7
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
PATCH_LEVEL = 1
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    70
ASLR_MODE = $(ASLR_ENABLE)
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1058
diff changeset
    71
3725
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    72
# Master test results are the same for 32-bit and 64-bit, so override
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    73
# here, rather than create multiple identical master files.
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    74
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    75
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    76
# The additional librsync specific set of transforms to be applied to the
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    77
# test results to try to normalize them.
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    78
COMPONENT_TEST_TRANSFORMS += \
3854
9d8d138d52ca 20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    79
	'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
9d8d138d52ca 20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    80
	'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
9d8d138d52ca 20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    81
	'-e "/^XXX_CC_XXX$$/d" '
3725
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    82
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    83
configure:	$(CONFIGURE_32_and_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    84
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
build: $(BUILD_32_and_64)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
install: $(INSTALL_32_and_64)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
	$(MKDIR) -p $(PROTOUSRSHAREDOCDIR) ; \
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
	$(CP) librsync-docs/librsync.pdf $(PROTOUSRSHAREDOCDIR) ; \
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
	$(CP) -r librsync-docs/html $(PROTOUSRSHAREDOCDIR)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
test: $(TEST_32_and_64)
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    93
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4196
diff changeset
    94
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4196
diff changeset
    95
375
78733b0e767a 7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    97
REQUIRED_PACKAGES += library/popt
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    98
REQUIRED_PACKAGES += system/library