Makefile revision 2899
446N/A#
4744N/A# CDDL HEADER START
446N/A#
446N/A# The contents of this file are subject to the terms of the
446N/A# Common Development and Distribution License (the "License").
446N/A# You may not use this file except in compliance with the License.
446N/A#
446N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
446N/A# or http://www.opensolaris.org/os/licensing.
446N/A# See the License for the specific language governing permissions
6982N/A# and limitations under the License.
6982N/A#
446N/A# When distributing Covered Code, include this CDDL HEADER in each
446N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
446N/A# If applicable, add the following below this CDDL HEADER, with the
446N/A# fields enclosed by brackets "[]" replaced with your own identifying
6982N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6982N/A#
6982N/A# CDDL HEADER END
6982N/A#
446N/A
446N/A#
446N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
446N/A#
5061N/A
5508N/Ainclude ../../make-rules/shared-macros.mk
446N/A
446N/ACOMPONENT_NAME= graphviz
446N/ACOMPONENT_VERSION= 2.28.0
446N/ACOMPONENT_PROJECT_URL= http://www.graphviz.org/
4744N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4744N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4744N/ACOMPONENT_ARCHIVE_HASH= \
4744N/A sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
4744N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
4744N/ACOMPONENT_BUGDB= utility/graphviz
4744N/A
4744N/ATPNO= 17707
4744N/A
4744N/Ainclude ../../make-rules/prep.mk
4618N/Ainclude ../../make-rules/configure.mk
4744N/Ainclude ../../make-rules/ips.mk
4744N/A
4744N/APATH = /usr/bin:/usr/gnu/bin:/usr/php/5.2/bin
4744N/A
4744N/A# GMP header files for the guile extension (no --with- flag)
4744N/A# The guile build is broken with studio (7073649), so we disable this for now.
4744N/A# CPPFLAGS += -I/usr/include/gmp
4744N/A# Java header files (--with-javaincludedir allows for only one directory)
4744N/ACPPFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
946N/A# PHP header files (no --with- flag)
4744N/ACPPFLAGS += $(shell PATH=$(PATH) php-config --includes)
5073N/ACXX += $(studio_NORUNPATH)
5073N/A
4744N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
4744N/ACONFIGURE_ENV += PERL=$(PERL)
4618N/A# Explicitly use Ruby 1.8. Allows switching Ruby default without
4744N/A# affecting graphviz build.
4744N/ACONFIGURE_ENV += RUBY=$(RUBY.1.8)
4744N/ACONFIGURE_OPTIONS += --without-included-ltdl
4744N/ACONFIGURE_OPTIONS += --enable-python=no
4744N/ACONFIGURE_OPTIONS += --enable-python26=yes
4744N/ACONFIGURE_OPTIONS += --enable-python27=yes
4744N/ACONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
4618N/A
4744N/ACOMPONENT_BUILD_ARGS += GREP=/usr/bin/ggrep
4744N/A
4744N/A# common targets
4744N/Abuild: $(BUILD_32)
4744N/A
4744N/Ainstall: $(INSTALL_32)
4744N/A env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
4744N/A $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python26
4744N/A $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python27
4744N/A
4744N/A# The test infrastructure doesn't run in a VPATHed environment.
4744N/ACOMPONENT_PRE_TEST_ACTION = \
4744N/A (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
4744N/A
4744N/A# There are tests, but they fail consistently because the test samples are out
4744N/A# of date and not generated with a known configuration. See
4744N/A# http://graphviz.org/bugs/b2063.html
4744N/Atest: $(NO_TESTS)
4744N/A
4744N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
4744N/A