Makefile revision 3661
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
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#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# or http://www.opensolaris.org/os/licensing.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# See the License for the specific language governing permissions
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# and limitations under the License.
7ecbfb6c0f566894fb7050e021cded6822771789Mark Andrews#
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#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# CDDL HEADER END
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
f41405d21249e11c1636301b1324ac1937b455aaMark Andrews#
a050fc374c925e0a8ac35e5b32e1a8f2a526e180Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews#
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrewsinclude ../../make-rules/shared-macros.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_NAME= graphviz
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_VERSION= 2.28.0
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_PROJECT_URL= http://www.graphviz.org/
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCOMPONENT_BUGDB= utility/graphviz
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsTPNO= 17707
33518843817dd9cf127eb09c5952227f1972af55Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude ../../make-rules/prep.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude ../../make-rules/configure.mk
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinclude ../../make-rules/ips.mk
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsPATH = /usr/bin:/usr/gnu/bin:/usr/php/5.2/bin
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
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)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCXX += $(studio_NORUNPATH)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
d39690e5a9b4a9a084d984abd193bed4395db41aDavid LawrenceCONFIGURE_ENV += PERL=$(PERL)
d39690e5a9b4a9a084d984abd193bed4395db41aDavid Lawrence# Explicitly use Ruby 1.8. Allows switching Ruby default without
105f5a65b1f680f4cb6f897b8b0f7ee7e09e41ebDavid Lawrence# affecting graphviz build.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_ENV += RUBY=$(RUBY.1.8)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --without-included-ltdl
88b3bc12b5570aae77e5963204e9111a2875915eAndreas GustafssonCONFIGURE_OPTIONS += --enable-python=no
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --enable-python26=yes
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --enable-python27=yes
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark AndrewsCOMPONENT_BUILD_ARGS += GREP=/usr/bin/ggrep
1c9200af084f2b6f1d28eccf91525676c158cfa3Mark Andrews
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews# common targets
9463feb3cb002df10b053f71e21540607c7a48e8Tatuya JINMEI 神明達哉build: $(BUILD_32)
c05a979fda35c83d7fba16fee7859644e98a7450Mark Andrews
2a313f56e78e19ae6dc2315bb53bd32fad13ae29Mark Andrewsinstall: $(INSTALL_32)
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
c58088e3a0fd9e553db750cd4b08d3e621d0ded4Mark Andrews
b9858c2efcee324745a1b8d7b099baf540bc695bMark Andrews# The test infrastructure doesn't run in a VPATHed environment.
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark AndrewsCOMPONENT_PRE_TEST_ACTION = \
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews
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
a69a77ddfef58e93036cf6173dc7f91ed864d103Mark Andrews# http://graphviz.org/bugs/b2063.html
f4545143206d918a7f6ee53cd4fb9788c534c0c7Mark Andrewstest: $(NO_TESTS)
09233633dadbd7878e60dd383a814e24e5eda1c6Mark Andrews
09233633dadbd7878e60dd383a814e24e5eda1c6Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7ecbfb6c0f566894fb7050e021cded6822771789Mark Andrews