Makefile revision 4947
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#
3817N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
457N/A#
457N/A
4744N/APERL_VERSION = 5.20
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
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/graphviz
457N/A
2899N/ATPNO= 17707
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
457N/A
4947N/APATH = /usr/php/5.6/bin:/usr/bin:/usr/gnu/bin
457N/A
457N/A# GMP header files for the guile extension (no --with- flag)
3014N/A# The guile build is broken with studio (15732452), 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)
1030N/ACPPFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/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)"
3014N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
3014N/ACONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
3014N/A# Make sure to use the right python, depending on the 32/64-bit build.
3014N/ACONFIGURE_ENV += PYTHON26=$(PYTHON.2.6)
3014N/ACONFIGURE_ENV += PYTHON27=$(PYTHON.2.7)
457N/ACONFIGURE_OPTIONS += --without-included-ltdl
457N/ACONFIGURE_OPTIONS += --enable-python=no
457N/ACONFIGURE_OPTIONS += --enable-python26=yes
727N/ACONFIGURE_OPTIONS += --enable-python27=yes
634N/ACONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
457N/A
457N/ACOMPONENT_BUILD_ARGS += GREP=/usr/bin/ggrep
457N/A
4947N/A# perl, ruby, php ship 64-bit only.
3014N/A$(CONFIGURE_32): CONFIGURE_OPTIONS += --enable-perl=no
3014N/A$(CONFIGURE_32): CONFIGURE_OPTIONS += --enable-ruby=no
4947N/A$(CONFIGURE_32): CONFIGURE_OPTIONS += --enable-php=no
3014N/A$(CONFIGURE_64): CONFIGURE_ENV += PERL=$(PERL)
3014N/A$(CONFIGURE_64): CONFIGURE_ENV += RUBY=$(RUBY.1.9)
3014N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += PHP_INSTALL_DIR=$(shell PATH=$(PATH) php-config --extension-dir)
3014N/A# tcl ships both 32 and 64 bit, but even though /usr/bin/tclsh is 64-bit, there
3014N/A# is no place to stick 64-bit modules, so skip it. On the other hand, make
3014N/A# sure to find the right tcl bits when building 32-bit.
3014N/A$(CONFIGURE_64): CONFIGURE_OPTIONS += --enable-tcl=no
3014N/A$(CONFIGURE_32): CONFIGURE_OPTIONS += --with-tclsh=/usr/bin/$(MACH32)/tclsh
3014N/A$(CONFIGURE_32): CONFIGURE_ENV += TCLCONFIG=/usr/lib/tclConfig.sh
3014N/A# Put the 64-bit lua module in a 64-bit directory.
3014N/A$(INSTALL_32): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=/usr/lib/lua/5.2
3014N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=/usr/lib/lua/5.2/64
3014N/A# Use GNU ln, which supports the -r (--relative) option.
3014N/ACOMPONENT_INSTALL_ARGS += LN_S="gln -s"
457N/A
3014N/AASLR_MODE = $(ASLR_ENABLE)
3014N/A
3014N/A# We build 32 and 64 bit because we build libraries, and we build modules for
3014N/A# runtimes which provide 64 or 32 (or both) bit environments.
3477N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
3014N/Abuild: $(BUILD_32_and_64)
3014N/A
3014N/Ainstall: $(INSTALL_32_and_64)
457N/A env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
3014N/A $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/$(PYTHON.2.6.VENDOR_PACKAGES)
3014N/A $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES)
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
4337N/Asystem-test: $(NO_TESTS)
4337N/A
3817N/AREQUIRED_PACKAGES += image/graphviz
3817N/AREQUIRED_PACKAGES += image/library/libjpeg
3817N/AREQUIRED_PACKAGES += image/library/libpng
3817N/AREQUIRED_PACKAGES += image/library/librsvg
3817N/AREQUIRED_PACKAGES += library/desktop/atk
3817N/AREQUIRED_PACKAGES += library/desktop/cairo
3817N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
3817N/AREQUIRED_PACKAGES += library/desktop/gtk2
3817N/AREQUIRED_PACKAGES += library/desktop/pango
3817N/AREQUIRED_PACKAGES += library/expat
3817N/AREQUIRED_PACKAGES += library/gd
3817N/AREQUIRED_PACKAGES += library/glib2
3817N/AREQUIRED_PACKAGES += library/libtool/libltdl
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += print/filter/ghostscript
3817N/AREQUIRED_PACKAGES += runtime/lua
3817N/AREQUIRED_PACKAGES += runtime/ocaml
4744N/AREQUIRED_PACKAGES += runtime/perl-520
3817N/AREQUIRED_PACKAGES += runtime/ruby-19
3817N/AREQUIRED_PACKAGES += runtime/tk-8
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/fontconfig
3817N/AREQUIRED_PACKAGES += system/library/freetype-2
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/linker
4947N/AREQUIRED_PACKAGES += web/php-56
3817N/AREQUIRED_PACKAGES += x11/library/libx11
3817N/AREQUIRED_PACKAGES += x11/library/libxcursor
3817N/AREQUIRED_PACKAGES += x11/library/libxmu
3817N/AREQUIRED_PACKAGES += x11/library/libxrender
3817N/AREQUIRED_PACKAGES += x11/library/toolkit/libxaw7
3817N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt