Aurelien Larcher
2020-06-05 1418b76f4f4a4d79c466f9d9a4c4cce671f8fc34
commit | author | age
7da859 1 #
JS 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
21 #
35e110 22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7da859 23 #
JS 24
768dcf 25 include ../../../make-rules/shared-macros.mk
7da859 26
JS 27 COMPONENT_NAME=        zip
28 COMPONENT_VERSION=    3.0
b0a243 29 COMPONENT_REVISION=    1
60e6e0 30 COMPONENT_PROJECT_URL=    http://www.info-zip.org/Zip.html
7da859 31 COMPONENT_SRC=        $(COMPONENT_NAME)30
JS 32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tgz
35e110 33 COMPONENT_ARCHIVE_HASH=    \
MS 34     sha256:f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
7da859 35 COMPONENT_ARCHIVE_URL=    ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
3b89c9 36 COMPONENT_BUGDB=    utility/zip
b0a243 37 COMPONENT_FMRI=        compress/zip
7da859 38
c35a11 39 LD_OPTIONS=
AP 40
b0a243 41 include $(WS_MAKE_RULES)/prep.mk
MN 42 include $(WS_MAKE_RULES)/justmake.mk
43 include $(WS_MAKE_RULES)/ips.mk
7da859 44
JS 45 # remove the unwanted file.
46 COMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
47
48 # The Makefile we want is under unix/Makefile
b0a243 49 COMPONENT_BUILD_ARGS    += -f unix/Makefile
MN 50 COMPONENT_BUILD_TARGETS += generic CC="$(CC) $(CC_BITS)"
51 COMPONENT_INSTALL_ARGS  += -f unix/Makefile
7da859 52
JS 53 # This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
9dfd18 54 COMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
NJ 55 COMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
7da859 56
JS 57 # common targets
b0a243 58 build:        $(BUILD_64)
7da859 59
b0a243 60 install:    $(INSTALL_64)
7da859 61
4158c0 62 test:        $(NO_TESTS)
7da859 63
b7b3f1 64 REQUIRED_PACKAGES += compress/bzip2
65 REQUIRED_PACKAGES += system/library