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