Andrzej Szeszo
2013-06-04 453bf5a3004107204e1858532a38b3e703e32995
commit | author | age
75ed40 1 #
RB 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
6f9d8e 21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
75ed40 22 #
RB 23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=        librsync
26 COMPONENT_VERSION=    0.9.7
27 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_PROJECT_URL=    http://librsync.sourceforge.net/
29 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 30 COMPONENT_ARCHIVE_HASH=    \
MS 31     sha256:6633e4605662763a03bb6388529cbdfd3b11a9ec55b8845351c1bd9a92bc41d6
75ed40 32 COMPONENT_ARCHIVE_URL=    http://sourceforge.net/projects/$(COMPONENT_NAME)/files/librsync/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
3b89c9 33 COMPONENT_BUGDB=    library/librsync
75ed40 34
RB 35 # librsync documentation as originally found at:
36 # http://librsync.sourcefrog.net/doc/librsync.html
37 # http://librsync.sourcefrog.net/doc/librsync.pdf
38 # The files there are not in an easily downloadable format so a local
39 # archive has been created for them.
40 COMPONENT_NAME_1=    librsync-docs
41 COMPONENT_SRC_1=    $(COMPONENT_NAME_1)-$(COMPONENT_VERSION)
42 COMPONENT_ARCHIVE_1=    $(COMPONENT_SRC_1).tar.gz
35e110 43 COMPONENT_ARCHIVE_HASH_1=    \
MS 44     sha256:e805819272f71b06823ee13f2dd7ddb92e75d75de18c33b7fd32133847c52afe
75ed40 45 COMPONENT_ARCHIVE_URL_1=    $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
7999b2 46 CLOBBER_PATHS += $(COMPONENT_NAME_1)
75ed40 47
RB 48 include ../../make-rules/prep.mk
49 include ../../make-rules/configure.mk
50 include ../../make-rules/ips.mk
51
52 COMPONENT_PRE_CONFIGURE_ACTION = \
53     ($(CLONEY) $(SOURCE_DIR) $(@D)) ; \
54     tar -xvf $(COMPONENT_ARCHIVE_1)
55
56 CFLAGS += -features=no%extinl
57
58 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
59
60 CONFIGURE_OPTIONS  +=    --enable-shared
61
62 PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/librsync-0.9.7
63
64 PATCH_LEVEL = 1
65
6f9d8e 66 ASLR_MODE = $(ASLR_ENABLE)
BC 67
75ed40 68 build: $(BUILD_32_and_64)
RB 69
70 install: $(INSTALL_32_and_64)
71     $(MKDIR) -p $(PROTOUSRSHAREDOCDIR) ; \
72     $(CP) librsync-docs/librsync.pdf $(PROTOUSRSHAREDOCDIR) ; \
73     $(CP) -r librsync-docs/html $(PROTOUSRSHAREDOCDIR)
74
75 test: $(TEST_32_and_64)
76
77 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
78
79 include ../../make-rules/depend.mk