components/unzip/Makefile
author Jiri Sasek <jurasek@opensolaris.org>
Wed, 20 Apr 2011 01:53:37 +0200
changeset 188 64b262c9d53f
child 189 824c82e11871
permissions -rw-r--r--
7036934 Move unzip to userland. 6862438 Incorporate unzip 6.0 into Solaris 10, for 256k encryption 7008244 zipinfo -h failed to report the total number of files when zip file contain more than 65535 files
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
#
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    22
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
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
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	sha1:abf7de8a4018a983590ed6f5cbd990d4740f8a22
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    32
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
    33
COMPONENT_PROJECT_URL=http://www.info-zip.org/UnZip.html
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    34
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    35
include ../../make-rules/prep.mk
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    36
include ../../make-rules/justmake.mk
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    37
include ../../make-rules/ips.mk
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    38
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    39
# remove the unwanted file.
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    40
COMPONENT_PREP_ACTION = $(RM) $(SOURCE_DIR)/crc_i386.S
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    41
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    42
TARGET_ENV +=   "LOCAL_UNZIP=-DUNICODE_SUPPORT"
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    43
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    44
# The Makefile we want is under unix/Makefile
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    45
COMPONENT_BUILD_ARGS += -f unix/Makefile
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    46
COMPONENT_BUILD_TARGETS += generic
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    47
COMPONENT_INSTALL_ARGS += -f unix/Makefile
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
# 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
    50
COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    51
COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    52
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    53
# common targets
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
build:		$(BUILD_32)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    56
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    57
install:	$(INSTALL_32)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    58
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    59
test:		$(NO_TESTS)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    60
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    61
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    62
64b262c9d53f 7036934 Move unzip to userland.
Jiri Sasek <jurasek@opensolaris.org>
parents:
diff changeset
    63
include ../../make-rules/depend.mk