Makefile revision 189
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#
188N/A# Copyright (c) 2011, 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
188N/ACOMPONENT_ARCHIVE_HASH= sha1:abf7de8a4018a983590ed6f5cbd990d4740f8a22
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
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
188N/ACOMPONENT_BUILD_TARGETS += generic
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
188N/A# common targets
188N/A
188N/Abuild: $(BUILD_32)
188N/A
188N/Ainstall: $(INSTALL_32)
188N/A
188N/Atest: $(NO_TESTS)
188N/A
188N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
188N/A
188N/Ainclude ../../make-rules/depend.mk