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