|
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= tk |
|
29 COMPONENT_VERSION= 8.5.9 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:161a133e0b653d5fdf6fcff47bdbf768d73f3238 |
|
33 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
|
34 |
|
35 include ../../../make-rules/prep.mk |
|
36 include ../../../make-rules/configure.mk |
|
37 include ../../../make-rules/ips.mk |
|
38 |
|
39 COMPONENT_PREP_ACTION = \ |
|
40 (cd $(@D)/unix ; autoreconf -f) |
|
41 |
|
42 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
43 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
44 |
|
45 #This macro will help to look for the configure |
|
46 #file at the pointed location |
|
47 CONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure |
|
48 |
|
49 CFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE) |
|
50 |
|
51 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
52 CONFIGURE_OPTIONS += --enable-shared |
|
53 CONFIGURE_OPTIONS += --enable-man-symlinks |
|
54 CONFIGURE_OPTIONS += --enable-threads |
|
55 CONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)" |
|
56 CONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)" |
|
57 CONFIGURE_OPTIONS.64 += --enable-64bit |
|
58 |
|
59 COMPONENT_TEST_TARGETS = test |
|
60 |
|
61 # common targets |
|
62 build: $(BUILD_32_and_64) |
|
63 |
|
64 install: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh |
|
65 |
|
66 $(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32) |
|
67 sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \ |
|
68 $(PROTOUSRLIBDIR)/tkConfig.sh.new |
|
69 $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh |
|
70 $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh |
|
71 |
|
72 test: $(TEST_32_and_64) |
|
73 |
|
74 # special targets due to tcl internals dependencies |
|
75 ../tcl/build/%/.built: |
|
76 (cd ../tcl ; $(GMAKE) build) |
|
77 |
|
78 $(SOURCE_DIR)/.prep: ../tcl/build/$(MACH32)/.built \ |
|
79 ../tcl/build/$(MACH64)/.built |
|
80 |
|
81 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
82 |
|
83 include ../../../make-rules/depend.mk |