|
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 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= tcsh |
|
29 COMPONENT_VERSION= 6.17.00 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:9bf67d5ce1b406178e9ba535ecd34553fe0d4d36 |
|
33 COMPONENT_ARCHIVE_URL= ftp://ftp.astron.com/pub/tcsh/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include ../../make-rules/prep.mk |
|
36 include ../../make-rules/configure.mk |
|
37 include ../../make-rules/ips.mk |
|
38 |
|
39 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
40 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
41 |
|
42 COMPONENT_PREP_ACTION = \ |
|
43 (cd $(@D) ; autoconf ) |
|
44 |
|
45 COMPONENT_POST_BUILD_ACTION = \ |
|
46 (cd $(@D)/nls ; $(MAKE) all) |
|
47 |
|
48 CFLAGS += -D_FILE_OFFSET_BITS=64 |
|
49 |
|
50 LOCALEDIR=$(PROTO_DIR)/$(CONFIGURE_LOCALEDIR) |
|
51 |
|
52 CONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR) |
|
53 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
54 |
|
55 MAN1FILES= tcsh.1 |
|
56 |
|
57 include ../../make-rules/shared-targets.mk |
|
58 |
|
59 # common targets |
|
60 build: $(BUILD_32) |
|
61 |
|
62 install: $(INSTALL_32) install-locales $(PROTOMAN1FILES) |
|
63 |
|
64 # we don't agree on locale names |
|
65 install-locales: |
|
66 $(INSTALL) -D $(BUILD_DIR_32)/nls/et.cat $(LOCALEDIR)/et/LC_MESSAGES/tcsh.cat |
|
67 $(INSTALL) -D $(BUILD_DIR_32)/nls/finnish.cat $(LOCALEDIR)/fi/LC_MESSAGES/tcsh.cat |
|
68 $(INSTALL) -D $(BUILD_DIR_32)/nls/french.cat $(LOCALEDIR)/fr/LC_MESSAGES/tcsh.cat |
|
69 $(INSTALL) -D $(BUILD_DIR_32)/nls/german.cat $(LOCALEDIR)/de/LC_MESSAGES/tcsh.cat |
|
70 $(INSTALL) -D $(BUILD_DIR_32)/nls/greek.cat $(LOCALEDIR)/el/LC_MESSAGES/tcsh.cat |
|
71 $(INSTALL) -D $(BUILD_DIR_32)/nls/italian.cat $(LOCALEDIR)/it/LC_MESSAGES/tcsh.cat |
|
72 $(INSTALL) -D $(BUILD_DIR_32)/nls/ja.cat $(LOCALEDIR)/ja/LC_MESSAGES/tcsh.cat |
|
73 $(INSTALL) -D $(BUILD_DIR_32)/nls/pl.cat $(LOCALEDIR)/pl/LC_MESSAGES/tcsh.cat |
|
74 $(INSTALL) -D $(BUILD_DIR_32)/nls/russian.cat $(LOCALEDIR)/ru/LC_MESSAGES/tcsh.cat |
|
75 $(INSTALL) -D $(BUILD_DIR_32)/nls/spanish.cat $(LOCALEDIR)/es/LC_MESSAGES/tcsh.cat |
|
76 $(INSTALL) -D $(BUILD_DIR_32)/nls/ukrainian.cat $(LOCALEDIR)/uk/LC_MESSAGES/tcsh.cat |
|
77 |
|
78 |
|
79 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
80 |
|
81 # they don't seem quite doable for us |
|
82 test: |
|
83 @echo "no tests available" |
|
84 |
|
85 include ../../make-rules/depend.mk |