Makefile revision 3661
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt# CDDL HEADER START
591389c7d44e5ca20c357627dd179772cfefaaccEvan Hunt#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
b129f72d951663755496670606e5f7303e8f2dc2Tinderbox User# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
2f5461d23b4044b62d4d668732611909d902e54dJeremy C. Reed#
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyinclude ../../make-rules/shared-macros.mk
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_NAME= zip
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_VERSION= 3.0
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_PROJECT_URL= http://www.info-zip.org/Zip.html
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)30
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_ARCHIVE_HASH= \
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley sha256:f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_BUGDB= utility/zip
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTPNO= 17905
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../make-rules/justmake.mk
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrewsinclude ../../make-rules/ips.mk
cfa2326b5c96a3a4c720262e077b2baf9fc27970Tinderbox User
81f58902eb5a1c1ab22742c72bd6cf318acbc06aTinderbox User# remove the unwanted file.
b129f72d951663755496670606e5f7303e8f2dc2Tinderbox UserCOMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# The Makefile we want is under unix/Makefile
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_BUILD_ARGS += -f unix/Makefile
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_BUILD_TARGETS += generic CC=$(CC)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_INSTALL_ARGS += -f unix/Makefile
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# common targets
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleybuild: $(BUILD_32)
c4f9e613e12f03795bee18cf2ca8e6a9d39d6468Mark Andrews
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleyinstall: $(INSTALL_32)
a769eca4e3b223866b01dc8f7a4dde8d9e49bab0Mark Andrews
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halleytest: $(NO_TESTS)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
431859b442e89281a0d42652200a8de0668bc6b9Evan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
9e804040a29b9c3066c8471b43835f30707039b7Evan Hunt
b435b1ded3def3159f597953d21dffc1615cb250Brian Wellingtoninclude ../../make-rules/depend.mk
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley
9b6a170d22d61026d31bde87523f3320628b6ebcBrian Wellington
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley