Makefile revision 2345
188N/A#
188N/A# CDDL HEADER START
188N/A#
188N/A# The contents of this file are subject to the terms of the
188N/A# Common Development and Distribution License (the "License").
188N/A# You may not use this file except in compliance with the License.
188N/A#
188N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
188N/A# or http://www.opensolaris.org/os/licensing.
188N/A# See the License for the specific language governing permissions
188N/A# and limitations under the License.
188N/A#
188N/A# When distributing Covered Code, include this CDDL HEADER in each
188N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
188N/A# If applicable, add the following below this CDDL HEADER, with the
188N/A# fields enclosed by brackets "[]" replaced with your own identifying
188N/A# information: Portions Copyright [yyyy] [name of copyright owner]
188N/A#
188N/A# CDDL HEADER END
188N/A
188N/A#
2345N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
188N/A#
188N/A
188N/Ainclude ../../make-rules/shared-macros.mk
188N/A
188N/ACOMPONENT_NAME= unzip
188N/ACOMPONENT_VERSION= 6.0
188N/ACOMPONENT_SRC= $(COMPONENT_NAME)60
188N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
188N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
188N/ACOMPONENT_PROJECT_URL=http://www.info-zip.org/UnZip.html
1258N/ACOMPONENT_BUGDB= utility/zip
188N/A
188N/Ainclude ../../make-rules/prep.mk
188N/Ainclude ../../make-rules/justmake.mk
188N/Ainclude ../../make-rules/ips.mk
188N/A
188N/A# remove the unwanted file.
188N/ACOMPONENT_PREP_ACTION = $(RM) $(SOURCE_DIR)/crc_i386.S
188N/A
189N/ACOMPONENT_BUILD_ENV += \
189N/A "LOCAL_UNZIP=-DUNICODE_SUPPORT -DNO_WORKING_ISPRINT -DUNICODE_WCHAR"
188N/A
188N/A# The Makefile we want is under unix/Makefile
188N/ACOMPONENT_BUILD_ARGS += -f unix/Makefile
438N/ACOMPONENT_BUILD_TARGETS += generic CC="$(CC)"
188N/ACOMPONENT_INSTALL_ARGS += -f unix/Makefile
188N/A
188N/A# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
188N/ACOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
188N/ACOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
188N/A
2345N/A# Enable ASLR for this component
2345N/AASLR_MODE = $(ASLR_ENABLE)
2345N/A
188N/A# common targets
188N/A
2345N/Abuild: $(BUILD_64)
188N/A
2345N/Ainstall: $(INSTALL_64)
188N/A
188N/Atest: $(NO_TESTS)
188N/A
188N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
188N/A
188N/Ainclude ../../make-rules/depend.mk