author | Huie-Ying Lee <huieying.lee@oracle.com> |
Thu, 17 Nov 2011 16:59:01 -0800 | |
changeset 588 | a72cfdd57701 |
parent 375 | 78733b0e767a |
child 774 | d0cbca26a17c |
permissions | -rw-r--r-- |
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 |
# |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
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 |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= sha1:d575eb5cae7a815798220c3afeff5649d3e8b4ab |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/librsync/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
# librsync documentation as originally found at: |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
# http://librsync.sourcefrog.net/doc/librsync.html |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
# http://librsync.sourcefrog.net/doc/librsync.pdf |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
# 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
|
37 |
# archive has been created for them. |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
COMPONENT_NAME_1= librsync-docs |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH_1= sha1:87b947aa4312bcf776d442abc23e142eb35c16da |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
include ../../make-rules/prep.mk |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
include ../../make-rules/configure.mk |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
include ../../make-rules/ips.mk |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
($(CLONEY) $(SOURCE_DIR) $(@D)) ; \ |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
tar -xvf $(COMPONENT_ARCHIVE_1) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
CFLAGS += -features=no%extinl |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
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 |
CONFIGURE_OPTIONS += --enable-shared |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/librsync-0.9.7 |
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 |
PATCH_LEVEL = 1 |
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 |
build: $(BUILD_32_and_64) |
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 |
install: $(INSTALL_32_and_64) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
$(MKDIR) -p $(PROTOUSRSHAREDOCDIR) ; \ |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
$(CP) librsync-docs/librsync.pdf $(PROTOUSRSHAREDOCDIR) ; \ |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
$(CP) -r librsync-docs/html $(PROTOUSRSHAREDOCDIR) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
test: $(TEST_32_and_64) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
|
78733b0e767a
7062798 Move librsync to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
include ../../make-rules/depend.mk |