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