Makefile revision 618
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz#
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz# CDDL HEADER START
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# The contents of this file are subject to the terms of the
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# Common Development and Distribution License (the "License").
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# You may not use this file except in compliance with the License.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# or http://www.opensolaris.org/os/licensing.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# See the License for the specific language governing permissions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# and limitations under the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# When distributing Covered Code, include this CDDL HEADER in each
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# If applicable, add the following below this CDDL HEADER, with the
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# fields enclosed by brackets "[]" replaced with your own identifying
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# information: Portions Copyright [yyyy] [name of copyright owner]
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# CDDL HEADER END
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseinclude ../../../make-rules/shared-macros.mk
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_NAME= tk
70535d6421eb979ac79d8f49d31cd94d75dd8b2fjortonCOMPONENT_VERSION= 8.5.9
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tk/
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_ARCHIVE_HASH= sha1:161a133e0b653d5fdf6fcff47bdbf768d73f3238
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseinclude ../../../make-rules/prep.mk
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougminclude ../../../make-rules/configure.mk
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougminclude ../../../make-rules/ips.mk
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_PREP_ACTION = \
bfd35b329124266ebdab96567241bea57f2e8481dougm (cd $(@D)/unix ; autoreconf -f)
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm
58e628af04b08a350299947721453b13e0ddd997jortonCOMPONENT_PRE_CONFIGURE_ACTION = \
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm ($(CLONEY) $(SOURCE_DIR) $(@D))
58e628af04b08a350299947721453b13e0ddd997jorton
58e628af04b08a350299947721453b13e0ddd997jorton#This macro will help to look for the configure
58e628af04b08a350299947721453b13e0ddd997jorton#file at the pointed location
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougmCFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
bfd35b329124266ebdab96567241bea57f2e8481dougmCONFIGURE_OPTIONS += --enable-shared
bfd35b329124266ebdab96567241bea57f2e8481dougmCONFIGURE_OPTIONS += --enable-man-symlinks
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_OPTIONS += --enable-threads
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
efa08028291cb1021426d24da2768e110fd16299dougmCONFIGURE_OPTIONS.64 += --enable-64bit
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougmCOMPONENT_TEST_TARGETS = test
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougm# common targets
efa08028291cb1021426d24da2768e110fd16299dougmbuild: $(BUILD_32_and_64)
ab2053f3cdda69cfa5e4ce0800ea7af203cc6d5ddougm
efa08028291cb1021426d24da2768e110fd16299dougminstall: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh
efa08028291cb1021426d24da2768e110fd16299dougm
0c44ed1cffad38b900b39e8c65996b9b9cff061djim$(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32)
efa08028291cb1021426d24da2768e110fd16299dougm sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \
efa08028291cb1021426d24da2768e110fd16299dougm $(PROTOUSRLIBDIR)/tkConfig.sh.new
bfd35b329124266ebdab96567241bea57f2e8481dougm $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh
efa08028291cb1021426d24da2768e110fd16299dougm $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh
bfd35b329124266ebdab96567241bea57f2e8481dougm
bfd35b329124266ebdab96567241bea57f2e8481dougmtest: $(TEST_32_and_64)
bfd35b329124266ebdab96567241bea57f2e8481dougm
53c239bee62c6d55b5ddfba5d99376d4c8de924ejwoolley# special targets due to tcl internals dependencies
efa08028291cb1021426d24da2768e110fd16299dougm../tcl/build/%/.built:
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse (cd ../tcl ; $(GMAKE) build)
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
efa08028291cb1021426d24da2768e110fd16299dougm$(BUILD_32): ../tcl/build/$(MACH32)/.built
efa08028291cb1021426d24da2768e110fd16299dougm$(BUILD_64): ../tcl/build/$(MACH64)/.built
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougmBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
bfd35b329124266ebdab96567241bea57f2e8481dougm
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseinclude ../../../make-rules/depend.mk
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm