Makefile revision 1176
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync#
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# CDDL HEADER START
d34409ad02ea0d28e08a6c4b089a412fdb3b4c9cvboxsync#
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# The contents of this file are subject to the terms of the
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# Common Development and Distribution License (the "License").
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# You may not use this file except in compliance with the License.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync#
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# or http://www.opensolaris.org/os/licensing.
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# See the License for the specific language governing permissions
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# and limitations under the License.
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync#
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# When distributing Covered Code, include this CDDL HEADER in each
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# If applicable, add the following below this CDDL HEADER, with the
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync#
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync# CDDL HEADER END
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync#
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync#
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync#
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncinclude ../../../make-rules/shared-macros.mk
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_NAME= tk
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_VERSION= 8.5.12
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tk/
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_ARCHIVE_HASH= \
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync sha256:c453d820925bf526bbe8a0d1c17ab3168b076fcb9844bea797ad75e3b9ad9291
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncinclude ../../../make-rules/prep.mk
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncinclude ../../../make-rules/configure.mk
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncinclude ../../../make-rules/ips.mk
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncCOMPONENT_PREP_ACTION = \
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync (cd $(@D)/unix ; autoreconf -f)
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync#This macro will help to look for the configure
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync#file at the pointed location
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
85d8351c7fba9e160aab81e92007e47b32b53874vboxsyncCFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
a629a894713fd19dbda61bd182320a929f711bd7vboxsyncCONFIGURE_OPTIONS += --enable-shared
a629a894713fd19dbda61bd182320a929f711bd7vboxsyncCONFIGURE_OPTIONS += --enable-man-symlinks
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCONFIGURE_OPTIONS += --enable-threads
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
6c71d3f3219c4e938cc153f690bab3e11e3c10efvboxsyncCONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncCONFIGURE_OPTIONS.64 += --enable-64bit
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
bb605450dacd1d15350d26909d94e5e106741011vboxsyncCOMPONENT_TEST_TARGETS = test
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsync
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsync# common targets
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsyncbuild: $(BUILD_32_and_64)
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsync
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsyncinstall: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh
bb605450dacd1d15350d26909d94e5e106741011vboxsync
bb605450dacd1d15350d26909d94e5e106741011vboxsync$(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32)
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync $(PROTOUSRLIBDIR)/tkConfig.sh.new
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
85d8351c7fba9e160aab81e92007e47b32b53874vboxsynctest: $(TEST_32_and_64)
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync# special targets due to tcl internals dependencies
a629a894713fd19dbda61bd182320a929f711bd7vboxsync../tcl/build/%/.built:
a629a894713fd19dbda61bd182320a929f711bd7vboxsync (cd ../tcl ; $(GMAKE) build)
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
6c71d3f3219c4e938cc153f690bab3e11e3c10efvboxsync$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsync
54bdb685c29854142c633fceb09a6e0f3bb72132vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
bb605450dacd1d15350d26909d94e5e106741011vboxsync
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsyncinclude ../../../make-rules/depend.mk
a2ccd0fa9853884c95ac75ba9b6f37cef677738avboxsync