components/zip/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 3817 30b42c38bbc4
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:
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     1
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     2
# CDDL HEADER START
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     3
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     7
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    11
# and limitations under the License.
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    12
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    18
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    19
# CDDL HEADER END
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    20
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    21
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    22
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    23
#
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    24
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    26
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    27
COMPONENT_NAME=		zip
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    28
COMPONENT_VERSION=	3.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 438
diff changeset
    29
COMPONENT_PROJECT_URL=	http://www.info-zip.org/Zip.html
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)30
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    33
    sha256:f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_BUGDB=	utility/zip
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1736
diff changeset
    37
TPNO=			17905
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1736
diff changeset
    38
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    39
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    40
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    41
include $(WS_MAKE_RULES)/ips.mk
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    42
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    43
# remove the unwanted file.
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    44
COMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    45
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    46
# The Makefile we want is under unix/Makefile
151
f9e42a3f7095 7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 132
diff changeset
    47
COMPONENT_BUILD_ARGS += -f unix/Makefile
1736
03b0c559040f 18181954 Fix zip update to be really 64-bit
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1657
diff changeset
    48
CC += $(CC_BITS)
03b0c559040f 18181954 Fix zip update to be really 64-bit
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1657
diff changeset
    49
COMPONENT_BUILD_TARGETS += generic CC="$(CC)"
151
f9e42a3f7095 7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 132
diff changeset
    50
COMPONENT_INSTALL_ARGS += -f unix/Makefile
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    51
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    52
# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
151
f9e42a3f7095 7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 132
diff changeset
    53
COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
f9e42a3f7095 7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 132
diff changeset
    54
COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    55
1657
5612d6ef4c2b 18054509 Update zip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    56
# Enable ASLR for this component
5612d6ef4c2b 18054509 Update zip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    57
ASLR_MODE = $(ASLR_ENABLE)
5612d6ef4c2b 18054509 Update zip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    58
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    59
# common targets
1657
5612d6ef4c2b 18054509 Update zip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    60
build:		$(BUILD_64)
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    61
1657
5612d6ef4c2b 18054509 Update zip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    62
install:	$(INSTALL_64)
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    63
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 151
diff changeset
    64
test:		$(NO_TESTS)
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    65
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    66
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    67
132
e42ee47fca04 7021788 Migrate Info-Zip (zip) to Userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    68
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    69
REQUIRED_PACKAGES += compress/bzip2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    70
REQUIRED_PACKAGES += system/library