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