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