Makefile revision 3817
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
daec38ecb4fb5e73e4ca9e99be84f6b8c50c02faJoe Stein# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge Wilson sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
2e4c998613148111f2fc5371085331ffb39122ffGeorge WilsonCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
8363e80ae72609660f6090766ca8c2c18aa53f0cGeorge Wilson# GMP header files for the guile extension (no --with- flag)
16a4a8074274d2d7cc408589cf6359f4a378c861George Wilson# The guile build is broken with studio (15732452), so we disable this for now.
16a4a8074274d2d7cc408589cf6359f4a378c861George Wilson# CPPFLAGS += -I/usr/include/gmp
16a4a8074274d2d7cc408589cf6359f4a378c861George Wilson# Java header files (--with-javaincludedir allows for only one directory)
16a4a8074274d2d7cc408589cf6359f4a378c861George WilsonCPPFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
2a104a5236475eb73aa41eaaf3ed9f3ccbe0ca55Alex Reece# PHP header files (no --with- flag)
2a104a5236475eb73aa41eaaf3ed9f3ccbe0ca55Alex ReeceCPPFLAGS += $(shell PATH=$(PATH) php-config --includes)
2a104a5236475eb73aa41eaaf3ed9f3ccbe0ca55Alex Reece# Make sure to use the right python, depending on the 32/64-bit build.
2a104a5236475eb73aa41eaaf3ed9f3ccbe0ca55Alex ReeceCONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson# Both perl and ruby ship 64-bit only.
22e30981d82a0b6dc89253596ededafae8655e00George Wilson$(CONFIGURE_32): CONFIGURE_OPTIONS += --enable-perl=no
22e30981d82a0b6dc89253596ededafae8655e00George Wilson$(CONFIGURE_32): CONFIGURE_OPTIONS += --enable-ruby=no
22e30981d82a0b6dc89253596ededafae8655e00George Wilson$(CONFIGURE_64): CONFIGURE_ENV += RUBY=$(RUBY.1.9)
22e30981d82a0b6dc89253596ededafae8655e00George Wilson# PHP ships 32-bit only.
22e30981d82a0b6dc89253596ededafae8655e00George Wilson$(CONFIGURE_64): CONFIGURE_OPTIONS += --enable-php=no
22e30981d82a0b6dc89253596ededafae8655e00George Wilson$(INSTALL_64): COMPONENT_INSTALL_ARGS += PHP_INSTALL_DIR=$(shell PATH=$(PATH) php-config --extension-dir)
22e30981d82a0b6dc89253596ededafae8655e00George Wilson# tcl ships both 32 and 64 bit, but even though /usr/bin/tclsh is 64-bit, there
22e30981d82a0b6dc89253596ededafae8655e00George Wilson# is no place to stick 64-bit modules, so skip it. On the other hand, make
22e30981d82a0b6dc89253596ededafae8655e00George Wilson# sure to find the right tcl bits when building 32-bit.
09c9d376e8ccb8fbba74f33cc268964464092b62George Wilson$(CONFIGURE_64): CONFIGURE_OPTIONS += --enable-tcl=no
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson$(CONFIGURE_32): CONFIGURE_OPTIONS += --with-tclsh=/usr/bin/$(MACH32)/tclsh
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson$(CONFIGURE_32): CONFIGURE_ENV += TCLCONFIG=/usr/lib/tclConfig.sh
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson# Put the 64-bit lua module in a 64-bit directory.
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson$(INSTALL_32): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=/usr/lib/lua/5.2
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson$(INSTALL_64): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=/usr/lib/lua/5.2/64
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson# Use GNU ln, which supports the -r (--relative) option.
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson# We build 32 and 64 bit because we build libraries, and we build modules for
2e4c998613148111f2fc5371085331ffb39122ffGeorge Wilson# runtimes which provide 64 or 32 (or both) bit environments.
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge Wilson $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/$(PYTHON.2.6.VENDOR_PACKAGES)
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES)
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge Wilson# The test infrastructure doesn't run in a VPATHed environment.
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge Wilson (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge Wilson# There are tests, but they fail consistently because the test samples are out
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick# of date and not generated with a known configuration. See
d6e555bdd793b8bc8fe57d5f12c3d69c813d0661George WilsonREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
0713e232b7712cd27d99e1e935ebb8d5de61c57dGeorge WilsonREQUIRED_PACKAGES += system/library/c++-runtime