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