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