Makefile revision 897
203N/A#
203N/A# CDDL HEADER START
203N/A#
203N/A# The contents of this file are subject to the terms of the
203N/A# Common Development and Distribution License (the "License").
203N/A# You may not use this file except in compliance with the License.
203N/A#
203N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
203N/A# or http://www.opensolaris.org/os/licensing.
203N/A# See the License for the specific language governing permissions
203N/A# and limitations under the License.
203N/A#
203N/A# When distributing Covered Code, include this CDDL HEADER in each
203N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
203N/A# If applicable, add the following below this CDDL HEADER, with the
203N/A# fields enclosed by brackets "[]" replaced with your own identifying
203N/A# information: Portions Copyright [yyyy] [name of copyright owner]
203N/A#
203N/A# CDDL HEADER END
203N/A#
203N/A
203N/A#
203N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
203N/A#
203N/A
203N/Ainclude ../../../make-rules/shared-macros.mk
203N/A
203N/ACOMPONENT_NAME= tk
203N/ACOMPONENT_VERSION= 8.5.9
203N/ACOMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tk/
203N/ACOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
203N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
203N/ACOMPONENT_ARCHIVE_HASH= \
203N/A sha256:f46b33d41e71ef533140f1814961f0dc22d62aac316df4a4fd3357e1fd788b83
203N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
203N/A
203N/Ainclude ../../../make-rules/prep.mk
206N/Ainclude ../../../make-rules/configure.mk
203N/Ainclude ../../../make-rules/ips.mk
203N/A
203N/ACOMPONENT_PREP_ACTION = \
203N/A (cd $(@D)/unix ; autoreconf -f)
203N/A
203N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
203N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
203N/A
203N/A#This macro will help to look for the configure
206N/A#file at the pointed location
206N/ACONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure
203N/A
203N/ACFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
203N/A
203N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
203N/ACONFIGURE_OPTIONS += --enable-shared
203N/ACONFIGURE_OPTIONS += --enable-man-symlinks
203N/ACONFIGURE_OPTIONS += --enable-threads
203N/ACONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
203N/ACONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
203N/ACONFIGURE_OPTIONS.64 += --enable-64bit
203N/A
203N/ACOMPONENT_TEST_TARGETS = test
203N/A
267N/A# common targets
203N/Abuild: $(BUILD_32_and_64)
203N/A
203N/Ainstall: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh
203N/A
206N/A$(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32)
203N/A sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \
203N/A $(PROTOUSRLIBDIR)/tkConfig.sh.new
203N/A $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh
203N/A $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh
203N/A
203N/Atest: $(TEST_32_and_64)
203N/A
203N/A# special targets due to tcl internals dependencies
203N/A../tcl/build/%/.built:
203N/A (cd ../tcl ; $(GMAKE) build)
203N/A
203N/A$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../../make-rules/depend.mk