|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 |
|
21 # |
|
22 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
23 # |
|
24 |
|
25 include ../../make-rules/shared-macros.mk |
|
26 |
|
27 COMPONENT_NAME= zip |
|
28 COMPONENT_VERSION= 3.0 |
|
29 COMPONENT_SRC= $(COMPONENT_NAME)30 |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
31 COMPONENT_ARCHIVE_HASH= sha1:c9f4099ecf2772b53c2dd4a8e508064ce015d182 |
|
32 COMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE) |
|
33 |
|
34 include ../../make-rules/prep.mk |
|
35 include ../../make-rules/justmake.mk |
|
36 include ../../make-rules/ips.mk |
|
37 |
|
38 # remove the unwanted file. |
|
39 COMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S |
|
40 |
|
41 # The Makefile we want is under unix/Makefile |
|
42 COMPONENT_BUILD_TARGETS += -f unix/Makefile generic |
|
43 COMPONENT_INSTALL_TARGETS += -f unix/Makefile |
|
44 |
|
45 # This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install. |
|
46 COMPONENT_INSTALL_TARGETS += BINDIR=$(PROTOUSRBINDIR) |
|
47 COMPONENT_INSTALL_TARGETS += MANDIR=$(PROTOUSRSHAREMAN1DIR) |
|
48 COMPONENT_INSTALL_TARGETS += install |
|
49 |
|
50 # fix the man pages |
|
51 INST_MAN1PGS = zip zipcloak zipnote zipsplit |
|
52 INST_MANSCRIPT = oracleman-stability |
|
53 PROTOMAN1 = $(INST_MAN1PGS:%=$(PROTOUSRSHAREMAN1DIR)/%.1) |
|
54 |
|
55 # Manpage files are already created by INSTALL_32 target |
|
56 # so currently only the contents of files could be changed. |
|
57 $(PROTOMAN1): $(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1) |
|
58 sed -f $(INST_MANSCRIPT) < $(SOURCE_DIR)/man/$(@F) > $@ |
|
59 |
|
60 # It should be done without checking time-stamps of targets. |
|
61 .PHONY: $(PROTOMAN1) |
|
62 |
|
63 # But do no do it before the INSTALL_32 is really finished. |
|
64 $(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1): $(INSTALL_32) |
|
65 |
|
66 # common targets |
|
67 |
|
68 build: $(BUILD_32) |
|
69 |
|
70 install: $(INSTALL_32) $(PROTOMAN1) |
|
71 |
|
72 test: |
|
73 @echo "no tests available" |
|
74 |
|
75 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
76 |
|
77 include ../../make-rules/depend.mk |
|
78 |
|
79 |