author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Thu, 17 Dec 2015 17:50:05 -0800 | |
changeset 5213 | 68d34c2581d6 |
parent 4997 | 714545171c17 |
child 5349 | aad9f1baf245 |
permissions | -rw-r--r-- |
1316 | 1 |
# |
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 |
# |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
21 |
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
1316 | 22 |
# |
23 |
include ../../make-rules/shared-macros.mk |
|
24 |
||
25 |
COMPONENT_NAME= libarchive |
|
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
26 |
COMPONENT_VERSION= 3.1.2 |
1316 | 27 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
28 |
COMPONENT_PROJECT_URL= http://www.libarchive.org/ |
1316 | 29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
30 |
COMPONENT_ARCHIVE_HASH= \ |
|
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
31 |
sha256:eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e |
1316 | 32 |
COMPONENT_ARCHIVE_URL= \ |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
33 |
$(COMPONENT_PROJECT_URL)downloads/$(COMPONENT_ARCHIVE) |
1316 | 34 |
COMPONENT_BUGDB= library/libarchive |
35 |
||
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
36 |
TPNO= 24584 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
37 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/ips.mk |
1316 | 41 |
|
42 |
# Userland default includes -mt which links with libthread which we don't need. |
|
43 |
studio_MT = |
|
44 |
||
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
45 |
CONFIGURE_OPTIONS += --disable-static |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --enable-shared |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
47 |
CONFIGURE_OPTIONS += --enable-largefile |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
48 |
# We prefer openssl over nettle. |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --without-nettle |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
50 |
CONFIGURE_OPTIONS += --with-openssl |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
51 |
CONFIGURE_OPTIONS += --with-pic |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --with-xml2 |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --with-zlib |
4684
6c8208a08539
21481012 libarchive fails to build when nettle is installed
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
54 |
|
1316 | 55 |
# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then |
56 |
# appends CFLAGS to that. Reset the former here so we can build with Studio. |
|
57 |
COMPONENT_BUILD_ARGS += COMMON_CFLAGS='' |
|
58 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
|
59 |
COMPONENT_TEST_ARGS += COMMON_CFLAGS='' |
|
60 |
COMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS)" |
|
61 |
||
62 |
# We need GNU awk for the following to work; hence the PATH tweak. |
|
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
63 |
# We then convert BSD-style section numbers in the libarchive man pages to |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
64 |
# Solaris-style section numbers. |
1316 | 65 |
COMPONENT_PREP_ACTION = \ |
4997
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
66 |
cd $(@D)/doc/man ; rm *.[135] ; env PATH=/usr/gnu/bin:$$PATH gmake all ; \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
67 |
cd $(@D)/libarchive ; \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
68 |
find . -name "*\.[35]" | xargs /usr/bin/gsed -i 's/\(Xr.*\|Dt.*\)3/\13ARCHIVE/' ; \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
69 |
find . -name "*\.[35]" | xargs /usr/bin/gsed -i \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
70 |
-e 's/Xr \(malloc\|getpwuid\|getgrgud\|strerror\|printf\|getpwnam\|getgrnam\) 3ARCHIVE/Xr \13C/' \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
71 |
-e 's/\(Dt.*LIBARCHIVE.*\)3ARCHIVE/\13LIB/' \ |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
72 |
-e 's/Xr \(libarchive\|archive\) 3ARCHIVE/Xr libarchive 3LIB/'; |
714545171c17
21834505 update libarchive to 3.1.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4684
diff
changeset
|
73 |
|
1316 | 74 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man |
75 |
||
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1316
diff
changeset
|
76 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1316
diff
changeset
|
77 |
|
3845
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
78 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
79 |
COMPONENT_TEST_TRANSFORMS += \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
80 |
'-e "s|/tmp/.*_test.*|\\$$(TESTDIR)|g"' \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
81 |
'-e "s|^.*$(CC).*$$|XXX_CC_XXX|"' \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
82 |
'-e "s/ld: warning: symbol .* has differing sizes:$$/XXX_CC_XXX/"' \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
83 |
'-e "s/.*value=0x[0-9a-f]\+.*$$/XXX_CC_XXX/"' \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
84 |
'-e "s/.* definition taken$$/XXX_CC_XXX/"' \ |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
85 |
'-e "/^XXX_CC_XXX$$/d"' |
1316 | 86 |
|
3845
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
87 |
configure: $(CONFIGURE_32_and_64) |
660b1766a5b4
20460435 libarchive should have some master test results to compare against
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
88 |
build: $(BUILD_32_and_64) |
1316 | 89 |
install: $(INSTALL_32_and_64) |
90 |
test: $(TEST_32_and_64) |
|
91 |
||
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3845
diff
changeset
|
92 |
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:
3845
diff
changeset
|
93 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
94 |
REQUIRED_PACKAGES += compress/bzip2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
95 |
REQUIRED_PACKAGES += compress/xz |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
96 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
97 |
REQUIRED_PACKAGES += library/security/openssl |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
98 |
REQUIRED_PACKAGES += library/zlib |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
99 |
REQUIRED_PACKAGES += system/library |