Makefile revision 3661
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# The contents of this file are subject to the terms of the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Common Development and Distribution License (the "License").
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You may not use this file except in compliance with the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# See the License for the specific language governing permissions
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# and limitations under the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER END
a050fc374c925e0a8ac35e5b32e1a8f2a526e180Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# GMP header files for the guile extension (no --with- flag)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# The guile build is broken with studio (7073649), so we disable this for now.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CPPFLAGS += -I/usr/include/gmp
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Java header files (--with-javaincludedir allows for only one directory)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCPPFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# PHP header files (no --with- flag)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCPPFLAGS += $(shell PATH=$(PATH) php-config --includes)
d39690e5a9b4a9a084d984abd193bed4395db41aDavid Lawrence# Explicitly use Ruby 1.8. Allows switching Ruby default without
105f5a65b1f680f4cb6f897b8b0f7ee7e09e41ebDavid Lawrence# affecting graphviz build.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews# common targets
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark Andrews env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
58e0b35a3bbb50d154c36749096f7463dab75a7aMark Andrews $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python26
60c2c8814f838f503333da5b2fd7e6792ca39c14Mark Andrews $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python27
b9858c2efcee324745a1b8d7b099baf540bc695bMark Andrews# The test infrastructure doesn't run in a VPATHed environment.
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews# There are tests, but they fail consistently because the test samples are out
58e0b35a3bbb50d154c36749096f7463dab75a7aMark Andrews# of date and not generated with a known configuration. See