Makefile revision 4660
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# CDDL HEADER START
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# The contents of this file are subject to the terms of the
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# Common Development and Distribution License (the "License").
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You may not use this file except in compliance with the License.
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or http://www.opensolaris.org/os/licensing.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# See the License for the specific language governing permissions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# and limitations under the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# When distributing Covered Code, include this CDDL HEADER in each
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# If applicable, add the following below this CDDL HEADER, with the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha#
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../../make-rules/shared-macros.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
e50587e6b2ff25bdcbe29410be5bf8f4792016eegregamesCOMPONENT_NAME= tk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_VERSION= 8.5.12
0d9c389e9c63d02edb068917d49af2fa8012af91marcCOMPONENT_PROJECT_URL= http://prdownloads.sourceforge.net/tk/
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_SRC= $(COMPONENT_NAME)$(COMPONENT_VERSION)
dadf206a4cf1eccf5c13b64bd9678610dd763868rbbCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
dadf206a4cf1eccf5c13b64bd9678610dd763868rbbCOMPONENT_ARCHIVE_HASH= \
a773226ea345018b49d45cf2e076ff2452eead5arbb sha256:c453d820925bf526bbe8a0d1c17ab3168b076fcb9844bea797ad75e3b9ad9291
f9e54e16ac4952a85bb00b8043c1d1e0f495eefbgregamesCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/tcl/files/Tcl/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_BUGDB= library/libtk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
ec9b5c4854a4055d00f5459dbbd879d517f1531dmartinTPNO= 16968
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
5181b311fbd45b65a34b3fddb3ace5fab85f36e4wroweinclude $(WS_MAKE_RULES)/prep.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude $(WS_MAKE_RULES)/configure.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude $(WS_MAKE_RULES)/ips.mk
4cbb3bcf66a6788196bcc7244e4e36705acfbb57rbb
a91a466a0d812a522d492c3c182163f73591ca20aaronCOMPONENT_PREP_ACTION = \
a91a466a0d812a522d492c3c182163f73591ca20aaron (cd $(@D)/unix ; autoreconf -f)
5f69f46ccdf50afd8f0a23f134746e6066185e89rbb
12b0070d002520b81a273ae892b9ea08e810b123rbbCOMPONENT_PRE_CONFIGURE_ACTION = \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha ($(CLONEY) $(SOURCE_DIR) $(@D))
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#This macro will help to look for the configure
305a68a1a5db3cc264077d89b3caa6f923257150fielding#file at the pointed location
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaCONFIGURE_SCRIPT = $(SOURCE_DIR)/unix/configure
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += $(studio_XREGS) -xstrconst $(XPG6MODE) $(studio_C99_ENABLE)
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbbCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --enable-shared
80e9324586de2fa55e2da4df409e6a85885ea659fieldingCONFIGURE_OPTIONS += --enable-man-symlinks
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiCONFIGURE_OPTIONS += --enable-threads
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiCONFIGURE_OPTIONS.32 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH32)"
38d37e90b45f2a735e7aecf702c76159e0b9f58ftrawickCONFIGURE_OPTIONS.64 += --with-tcl="$(COMPONENT_DIR)/../tcl/build/$(MACH64)"
105475009f541187ba7a14a367547d9404c578befieldingCONFIGURE_OPTIONS.64 += --enable-64bit
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
105475009f541187ba7a14a367547d9404c578befieldingCOMPONENT_TEST_TARGETS = test
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befielding# common targets
105475009f541187ba7a14a367547d9404c578befieldingbuild: $(BUILD_32_and_64)
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldinginstall: $(INSTALL_32_and_64) $(PROTOUSRLIBDIR)/tkConfig.sh
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befielding$(PROTOUSRLIBDIR)/tkConfig.sh: $(INSTALL_32)
105475009f541187ba7a14a367547d9404c578befielding sed -f $(COMPONENT_DIR)/files/tksed $(PROTOUSRLIBDIR)/tkConfig.sh > \
105475009f541187ba7a14a367547d9404c578befielding $(PROTOUSRLIBDIR)/tkConfig.sh.new
105475009f541187ba7a14a367547d9404c578befielding $(MV) $(PROTOUSRLIBDIR)/tkConfig.sh.new $(PROTOUSRLIBDIR)/tkConfig.sh
105475009f541187ba7a14a367547d9404c578befielding $(CHMOD) 555 $(PROTOUSRLIBDIR)/tkConfig.sh
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschatest: $(TEST_32_and_64)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding# special targets due to tcl internals dependencies
6a1c919219ae7e3382fb22f1c4cf89f11b4becffcoar../tcl/build/%/.built:
95d00ea81131488769296fa5765ed745cbf45207trawick (cd ../tcl ; $(GMAKE) build)
95d00ea81131488769296fa5765ed745cbf45207trawick
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh$(CONFIGURE_32): ../tcl/build/$(MACH32)/.built
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh$(CONFIGURE_64): ../tcl/build/$(MACH64)/.built
20bca6c9617ad7d0268203c21039424e99acdd91bjh
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhREQUIRED_PACKAGES += runtime/tcl-8
11c8f1b409a02814693ec75cbe7f69f3ef994fbajerenkrantzREQUIRED_PACKAGES += system/library
cdb58be93a9cbeaba1ebc759b48aa8ed519675a9bjhREQUIRED_PACKAGES += system/library/math
7dfed2b71c9c4223996cbd7c5c0c85c7c8fef2a4rbbREQUIRED_PACKAGES += system/linker
5d5073be0470140d32914de8e74d869ee4145bffjerenkrantzREQUIRED_PACKAGES += x11/library/libx11
6552de06c3d34e6ecfad4c93a6604531b52caf63wsanchezREQUIRED_PACKAGES += x11/library/libxext
5d5073be0470140d32914de8e74d869ee4145bffjerenkrantzREQUIRED_PACKAGES += x11/library/libxft
6552de06c3d34e6ecfad4c93a6604531b52caf63wsanchez