Makefile revision 188
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# CDDL HEADER START
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# The contents of this file are subject to the terms of the
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Common Development and Distribution License (the "License").
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# You may not use this file except in compliance with the License.
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco#
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# or http://www.opensolaris.org/os/licensing.
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# See the License for the specific language governing permissions
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco# and limitations under the License.
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Kosco#
34ce5c2f0e9b0f6bf05895501c9f7171d4a5bab7Lubos Kosco# When distributing Covered Code, include this CDDL HEADER in each
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# If applicable, add the following below this CDDL HEADER, with the
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# fields enclosed by brackets "[]" replaced with your own identifying
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# information: Portions Copyright [yyyy] [name of copyright owner]
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# CDDL HEADER END
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco#
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Koscoinclude ../../make-rules/shared-macros.mk
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_NAME= unzip
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_VERSION= 6.0
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_SRC= $(COMPONENT_NAME)60
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_ARCHIVE_HASH= sha1:abf7de8a4018a983590ed6f5cbd990d4740f8a22
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_PROJECT_URL=http://www.info-zip.org/UnZip.html
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
34ce5c2f0e9b0f6bf05895501c9f7171d4a5bab7Lubos Koscoinclude ../../make-rules/prep.mk
eb11fe3584b7b243fb0641da4ab2e157610bb767Lubos Koscoinclude ../../make-rules/justmake.mk
6602c01097c66d242046fb0490e0a5dcc1ca36c5Lubos Koscoinclude ../../make-rules/ips.mk
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco# remove the unwanted file.
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos KoscoCOMPONENT_PREP_ACTION = $(RM) $(SOURCE_DIR)/crc_i386.S
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos KoscoTARGET_ENV += "LOCAL_UNZIP=-DUNICODE_SUPPORT"
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco# The Makefile we want is under unix/Makefile
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos KoscoCOMPONENT_BUILD_ARGS += -f unix/Makefile
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_BUILD_TARGETS += generic
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_INSTALL_ARGS += -f unix/Makefile
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoCOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco# common targets
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Koscobuild: $(BUILD_32)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Koscoinstall: $(INSTALL_32)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Koscotest: $(NO_TESTS)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos KoscoBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Koscoinclude ../../make-rules/depend.mk
1b28b233e40eae109c16d5b1b917dffb64e45f94Lubos Kosco