author | pkidd <patrick.kidd@oracle.com> |
Fri, 29 Apr 2016 08:21:43 -0700 | |
branch | s11u3-sru |
changeset 5883 | e4ca97d40c81 |
parent 4993 | efe17d59c020 |
child 6164 | 66436ccdbe51 |
permissions | -rw-r--r-- |
2651 | 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 |
# |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
21 |
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
2651 | 22 |
# |
23 |
include ../../make-rules/shared-macros.mk |
|
24 |
||
25 |
COMPONENT_NAME= libarchive |
|
26 |
COMPONENT_VERSION= 3.0.4 |
|
27 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 |
COMPONENT_PROJECT_URL= http://github.com/ |
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
|
31 |
sha256:76e8d7c7b100ec4071e48c1b7d3f3ea1d22b39db3e45b7189f75b5ff4df90fac |
|
32 |
COMPONENT_ARCHIVE_URL= \ |
|
33 |
$(COMPONENT_PROJECT_URL)downloads/libarchive/libarchive/$(COMPONENT_ARCHIVE) |
|
34 |
COMPONENT_BUGDB= library/libarchive |
|
35 |
||
3661
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2651
diff
changeset
|
36 |
TPNO= 11624 |
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2651
diff
changeset
|
37 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/prep.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/configure.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/ips.mk |
2651 | 41 |
|
42 |
# Userland default includes -mt which links with libthread which we don't need. |
|
43 |
studio_MT = |
|
44 |
||
4993
efe17d59c020
20368257 Add Nettle to Userland
dongszha <dongsheng.zhang@oracle.com>
parents:
3996
diff
changeset
|
45 |
# Nettle is coming. Disable building with it until it actually arrives, at |
efe17d59c020
20368257 Add Nettle to Userland
dongszha <dongsheng.zhang@oracle.com>
parents:
3996
diff
changeset
|
46 |
# which point we can verify it works, then remove the following (and add a |
efe17d59c020
20368257 Add Nettle to Userland
dongszha <dongsheng.zhang@oracle.com>
parents:
3996
diff
changeset
|
47 |
# REQUIRED_PACKAGES entry below). |
efe17d59c020
20368257 Add Nettle to Userland
dongszha <dongsheng.zhang@oracle.com>
parents:
3996
diff
changeset
|
48 |
CONFIGURE_OPTIONS += --without-nettle |
efe17d59c020
20368257 Add Nettle to Userland
dongszha <dongsheng.zhang@oracle.com>
parents:
3996
diff
changeset
|
49 |
|
2651 | 50 |
# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then |
51 |
# appends CFLAGS to that. Reset the former here so we can build with Studio. |
|
52 |
COMPONENT_BUILD_ARGS += COMMON_CFLAGS='' |
|
53 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
|
54 |
COMPONENT_TEST_ARGS += COMMON_CFLAGS='' |
|
55 |
COMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS)" |
|
56 |
||
57 |
# We need GNU awk for the following to work; hence the PATH tweak. |
|
58 |
COMPONENT_PREP_ACTION = \ |
|
59 |
(cd $(@D)/doc/man ; rm *.[135] ; env PATH=/usr/gnu/bin:$$PATH gmake all) |
|
60 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man |
|
61 |
||
62 |
# common targets |
|
63 |
build: $(BUILD_32_and_64) |
|
64 |
||
65 |
install: $(INSTALL_32_and_64) |
|
66 |
||
67 |
test: $(TEST_32_and_64) |
|
68 |
||
69 |
||
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
70 |
REQUIRED_PACKAGES += compress/bzip2 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
71 |
REQUIRED_PACKAGES += compress/xz |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
72 |
REQUIRED_PACKAGES += library/libxml2 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
73 |
REQUIRED_PACKAGES += library/security/openssl |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
74 |
REQUIRED_PACKAGES += library/zlib |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
75 |
REQUIRED_PACKAGES += system/library |