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.
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.
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]
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 8.5.19
30 COMPONENT_PROJECT_URL
= http
://prdownloads.sourceforge.net
/tk
/
31 COMPONENT_SRC
= $(COMPONENT_NAME
)$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-src.
tar.gz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:407af1de167477d598bd6166d84459a3bdccc2fb349360706154e646a9620ffa
35 COMPONENT_ARCHIVE_URL
= http
://sourceforge.net
/projects
/tcl
/files
/Tcl
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
36 COMPONENT_BUGDB
= library
/libtk
37 COMPONENT_LICENSE
= BSD-like
38 COMPONENT_LICENSE_FILE
= license.terms
40 include $(WS_MAKE_RULES
)/prep.mk
41 include $(WS_MAKE_RULES
)/configure.mk
42 include $(WS_MAKE_RULES
)/ips.mk
44 COMPONENT_PREP_ACTION
= \
45 (cd
$(@D
)/unix
; autoreconf
-f
)
47 COMPONENT_PRE_CONFIGURE_ACTION
= \
48 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
50 #This macro will help to look for the configure
51 #file at the pointed location
52 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/unix
/configure
54 CFLAGS
+= $(XPG6MODE
) -std
=c99
56 CONFIGURE_OPTIONS
+= --enable-shared
57 CONFIGURE_OPTIONS
+= --enable-man-symlinks
58 CONFIGURE_OPTIONS
+= --enable-threads
59 CONFIGURE_OPTIONS
.32 += --with-tcl
="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
60 CONFIGURE_OPTIONS
.64 += --with-tcl
="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
61 CONFIGURE_OPTIONS
.64 += --enable-64bit
63 COMPONENT_TEST_TARGETS
= test
66 build
: $(BUILD_32_and_64
)
68 install: $(INSTALL_32_and_64
) $(PROTOUSRLIBDIR
)/tkConfig.sh
70 $(PROTOUSRLIBDIR
)/tkConfig.sh
: $(INSTALL_32
)
71 sed
-f
$(COMPONENT_DIR
)/files
/tksed
$(PROTOUSRLIBDIR
)/tkConfig.sh
> \
72 $(PROTOUSRLIBDIR
)/tkConfig.sh.new
73 $(MV
) $(PROTOUSRLIBDIR
)/tkConfig.sh.new
$(PROTOUSRLIBDIR
)/tkConfig.sh
74 $(CHMOD
) 555 $(PROTOUSRLIBDIR
)/tkConfig.sh
76 test: $(TEST_32_and_64
)
78 # special targets due to tcl internals dependencies
79 ..
/tcl
/build
/%/.built
:
80 (cd ..
/tcl
; $(GMAKE
) build
)
82 $(CONFIGURE_32
): ..
/tcl
/build
/$(MACH32
)/.built
83 $(CONFIGURE_64
): ..
/tcl
/build
/$(MACH64
)/.built
85 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
87 include $(WS_MAKE_RULES
)/depend.mk