components/unzip/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:
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     1
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     2
# CDDL HEADER START
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     3
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     7
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    11
# and limitations under the License.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    12
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    18
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    19
# CDDL HEADER END
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    20
64b262c9d53f 7036934 Move unzip 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: 2085
diff changeset
    22
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    23
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    24
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    26
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    27
COMPONENT_NAME=		unzip
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    28
COMPONENT_VERSION=	6.0
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)60
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    30
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: 438
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 438
diff changeset
    32
    sha256:036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=http://www.info-zip.org/UnZip.html
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
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    36
2085
a1f782a3a05f 19603499 Unzip TPNO shall be corrected
Jan Noha <jan.noha@oracle.com>
parents: 1948
diff changeset
    37
TPNO=			16388
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1737
diff changeset
    38
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2085
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: 2085
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: 2085
diff changeset
    41
include $(WS_MAKE_RULES)/ips.mk
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    42
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    43
# remove the unwanted file.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    44
COMPONENT_PREP_ACTION = $(RM) $(SOURCE_DIR)/crc_i386.S
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    45
189
824c82e11871 7036934 Move unzip to userland. (fix build-env macro)
Jiri Sasek <jurasek@opensolaris.org>
parents: 188
diff changeset
    46
COMPONENT_BUILD_ENV += \
824c82e11871 7036934 Move unzip to userland. (fix build-env macro)
Jiri Sasek <jurasek@opensolaris.org>
parents: 188
diff changeset
    47
 "LOCAL_UNZIP=-DUNICODE_SUPPORT -DNO_WORKING_ISPRINT -DUNICODE_WCHAR"
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    48
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    49
# The Makefile we want is under unix/Makefile
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    50
COMPONENT_BUILD_ARGS += -f unix/Makefile
1737
e1540de314ca 18181982 Fix unzip update to be really 64-bit
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1659
diff changeset
    51
CC += $(CC_BITS) 
438
e8c5625b8284 7070613 (Un)Zip is compiled with gcc in Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents: 189
diff changeset
    52
COMPONENT_BUILD_TARGETS += generic CC="$(CC)"
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    53
COMPONENT_INSTALL_ARGS += -f unix/Makefile
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    54
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    55
# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    56
COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    57
COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    58
1659
2ee68e9ab496 18056014 Update unzip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    59
# Enable ASLR for this component
2ee68e9ab496 18056014 Update unzip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    60
ASLR_MODE = $(ASLR_ENABLE)
2ee68e9ab496 18056014 Update unzip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    61
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    62
# common targets
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    63
1659
2ee68e9ab496 18056014 Update unzip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    64
build:		$(BUILD_64)
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    65
1659
2ee68e9ab496 18056014 Update unzip to ASLR + 64b
Jiri Kukacka <jiri.kukacka@oracle.com>
parents: 1058
diff changeset
    66
install:	$(INSTALL_64)
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    67
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    68
test:		$(NO_TESTS)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    69
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
    70
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
    71
188
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    72
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2085
diff changeset
    73
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2085
diff changeset
    74
REQUIRED_PACKAGES += system/library