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