Makefile revision 5568
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/Ainclude ../../../make-rules/shared-macros.mk
2N/A
2N/ACOMPONENT_NAME= tk
2N/ACOMPONENT_VERSION= 8.5.12
2N/ACOMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tk/
2N/ACOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
2N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
2N/ACOMPONENT_ARCHIVE_HASH= \
2N/A sha256:c453d820925bf526bbe8a0d1c17ab3168b076fcb9844bea797ad75e3b9ad9291
2N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
2N/ACOMPONENT_BUGDB= library/libtk
2N/A
2N/ATPNO= 16968
2N/A
2N/Ainclude $(WS_MAKE_RULES)/prep.mk
2N/Ainclude $(WS_MAKE_RULES)/configure.mk
2N/Ainclude $(WS_MAKE_RULES)/ips.mk
2N/A
2N/ACOMPONENT_PREP_ACTION = \
2N/A (cd $(@D)/unix ; autoreconf -f)
2N/A
2N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2N/A
2N/A#This macro will help to look for the configure
2N/A#file at the pointed location
2N/ACONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure
2N/A
2N/ACFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
2N/ALDFLAGS += $(CC_BITS)
2N/A
2N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2N/ACONFIGURE_OPTIONS += --enable-shared
2N/ACONFIGURE_OPTIONS += --enable-man-symlinks
2N/ACONFIGURE_OPTIONS += --enable-threads
2N/ACONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
2N/ACONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
2N/ACONFIGURE_OPTIONS.64 += --enable-64bit
2N/A
2N/ACOMPONENT_TEST_TARGETS = test
2N/ACOMPONENT_TEST_TRANSFORMS += \
2N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|"' \
2N/A '-e "s|^.*tcl/build/$(MACH$(BITS)).*$$|XXX_CC_XXX|g"' \
2N/A '-e "s|^cc: Warning: -xarch=v9 is deprecated.*$$|XXX_CC_XXX|g"' \
2N/A '-e "s|^cc: Warning: illegal use of -x.* option, .*$$|XXX_CC_XXX|g"' \
2N/A '-e "/^XXX_CC_XXX$$/d"' \
2N/A '-e "/^Tests began at .*$$/d"' \
2N/A '-e "/^Tests ended at .*$$/d"'
2N/A
2N/AASLR_MODE = $(ASLR_ENABLE)
2N/A
2N/A# common targets
2N/Aconfigure: $(CONFIGURE_32_and_64)
2N/A
2N/Abuild: $(BUILD_32_and_64)
2N/A
2N/Ainstall: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh
2N/A
2N/A$(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32)
2N/A sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \
2N/A $(PROTOUSRLIBDIR)/tkConfig.sh.new
2N/A $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh
2N/A $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh
2N/A
2N/Atest: $(TEST_32_and_64)
2N/A
2N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
2N/A
2N/A# special targets due to tcl internals dependencies
2N/A../tcl/build/%/.built:
2N/A (cd ../tcl ; $(GMAKE) build)
2N/A
2N/A$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
2N/A$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
2N/A
2N/AREQUIRED_PACKAGES += runtime/tcl-8
2N/AREQUIRED_PACKAGES += system/library
2N/AREQUIRED_PACKAGES += system/library/math
2N/AREQUIRED_PACKAGES += x11/library/libx11
2N/AREQUIRED_PACKAGES += x11/library/libxext
2N/AREQUIRED_PACKAGES += x11/library/libxft
2N/A