Makefile revision 1273
02bdc23f8e3ca0f710e0a40daa15941ab1db6bb2Mark Andrews#
02bdc23f8e3ca0f710e0a40daa15941ab1db6bb2Mark Andrews# CDDL HEADER START
45fe575607b91147ed753d175a7255198f14f197Andreas Gustafsson#
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# The contents of this file are subject to the terms of the
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# Common Development and Distribution License (the "License").
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# You may not use this file except in compliance with the License.
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews#
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# or http://www.opensolaris.org/os/licensing.
ef29912666cc6160f7165558bef017ab3849c5e1Mark Andrews# See the License for the specific language governing permissions
0cfa2fb26df42f781eca8c4c856d2d0165055bebMark Andrews# and limitations under the License.
0cfa2fb26df42f781eca8c4c856d2d0165055bebMark Andrews#
0cfa2fb26df42f781eca8c4c856d2d0165055bebMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
0cfa2fb26df42f781eca8c4c856d2d0165055bebMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06a949d2ce8d4b4cbfbf4e7a0335316520aafa46Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
06a949d2ce8d4b4cbfbf4e7a0335316520aafa46Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
06a949d2ce8d4b4cbfbf4e7a0335316520aafa46Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
0b81e99ddfb01746e667797dedc291fc550d14d3Brian Wellington#
0b81e99ddfb01746e667797dedc291fc550d14d3Brian Wellington# CDDL HEADER END
0b81e99ddfb01746e667797dedc291fc550d14d3Brian Wellington
3638017bd3cb8e30874f708a125d1541b680b25eBrian Wellington#
3638017bd3cb8e30874f708a125d1541b680b25eBrian Wellington# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3638017bd3cb8e30874f708a125d1541b680b25eBrian Wellington#
8771fbe4a2cee7bebd785a486824833d741c7315Brian Wellington
8771fbe4a2cee7bebd785a486824833d741c7315Brian Wellingtoninclude ../../make-rules/shared-macros.mk
8771fbe4a2cee7bebd785a486824833d741c7315Brian Wellington
b541c10d0442d9804d94567a97956cec3bd2912dBrian WellingtonCOMPONENT_NAME= zip
8bb79fc9b9952172d10f56f31739730e38d4b013Brian WellingtonCOMPONENT_VERSION= 3.0
f59d47928ed33d1546e8f982370086429f727e85Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.info-zip.org/Zip.html
f59d47928ed33d1546e8f982370086429f727e85Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)30
b541c10d0442d9804d94567a97956cec3bd2912dBrian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
c01237c6bc5ec25063b4aae1799fe4de01a7455bAndreas GustafssonCOMPONENT_ARCHIVE_HASH= \
c01237c6bc5ec25063b4aae1799fe4de01a7455bAndreas Gustafsson sha256:f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
c01237c6bc5ec25063b4aae1799fe4de01a7455bAndreas GustafssonCOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
60213f2815a7e6584a2285546d05633fa7b6f5b4Mark AndrewsCOMPONENT_BUGDB= utility/zip
c52806164c335f89e1980af836470b6daffe4f82Andreas Gustafsson
60213f2815a7e6584a2285546d05633fa7b6f5b4Mark Andrewsinclude ../../make-rules/prep.mk
c52806164c335f89e1980af836470b6daffe4f82Andreas Gustafssoninclude ../../make-rules/justmake.mk
c52806164c335f89e1980af836470b6daffe4f82Andreas Gustafssoninclude ../../make-rules/ips.mk
c52806164c335f89e1980af836470b6daffe4f82Andreas Gustafsson
6c8abf481df85a67c3f32f5f107b554d3ff5a3edMark Andrews# remove the unwanted file.
c52806164c335f89e1980af836470b6daffe4f82Andreas GustafssonCOMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
c52806164c335f89e1980af836470b6daffe4f82Andreas Gustafsson
1e4bfff1855795853648f507422b96fc8fecbff1Mark Andrews# The Makefile we want is under unix/Makefile
6b31d9c56874d3bd58b420cbe6cd64be502dbe08Andreas GustafssonCOMPONENT_BUILD_ARGS += -f unix/Makefile
892476530f3971aff52f25103d488ece9b01f673Andreas GustafssonCOMPONENT_BUILD_TARGETS += generic CC=$(CC)
6b31d9c56874d3bd58b420cbe6cd64be502dbe08Andreas GustafssonCOMPONENT_INSTALL_ARGS += -f unix/Makefile
6b31d9c56874d3bd58b420cbe6cd64be502dbe08Andreas Gustafsson
ee80f4506479e189ca1320eb87ac89188c5a7848Mark Andrews# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
ee80f4506479e189ca1320eb87ac89188c5a7848Mark AndrewsCOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
ee80f4506479e189ca1320eb87ac89188c5a7848Mark AndrewsCOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
d9d6d2f77fe54831dec9cde8ca03ae1f825599f9Andreas Gustafsson
d9d6d2f77fe54831dec9cde8ca03ae1f825599f9Andreas Gustafsson# common targets
d9d6d2f77fe54831dec9cde8ca03ae1f825599f9Andreas Gustafssonbuild: $(BUILD_32)
9b2c0d29248ad5f86b47319239a06c783e1b5307Andreas Gustafsson
9b2c0d29248ad5f86b47319239a06c783e1b5307Andreas Gustafssoninstall: $(INSTALL_32)
eb2c518a3871932e86268e7c6ddae2b2a00d72fdMark Andrews
4072dfb9b865c82c24a72e734d54da51a20dfc1eMark Andrewstest: $(NO_TESTS)
4072dfb9b865c82c24a72e734d54da51a20dfc1eMark Andrews
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas GustafssonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas Gustafsson
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas Gustafssoninclude ../../make-rules/depend.mk
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson