Alexander Pyhalov
2016-05-09 72eca876e816745722eb95468ab37bd10ecd2147
commit | author | age
f7e71f 1 #
DD 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
cf4b61 23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
f7e71f 24 #
DD 25
02b2f2 26 include ../../../make-rules/shared-macros.mk
f7e71f 27
DD 28 COMPONENT_NAME=        graphviz
72eca8 29 COMPONENT_VERSION=    2.38.0
60e6e0 30 COMPONENT_PROJECT_URL=    http://www.graphviz.org/
f7e71f 31 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
DD 32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 33 COMPONENT_ARCHIVE_HASH=    \
72eca8 34     sha256:81aa238d9d4a010afa73a9d2a704fc3221c731e1e06577c2ab3496bdef67859e
60e6e0 35 COMPONENT_ARCHIVE_URL=    $(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
3b89c9 36 COMPONENT_BUGDB=    utility/graphviz
f7e71f 37
02b2f2 38 include $(WS_TOP)/make-rules/prep.mk
AP 39 include $(WS_TOP)/make-rules/configure.mk
40 include $(WS_TOP)/make-rules/ips.mk
f7e71f 41
d3ebcf 42 PATH =        /usr/bin:/usr/gnu/bin:/usr/php/5.4/bin
f7e71f 43
DD 44 # GMP header files for the guile extension (no --with- flag)
45 # The guile build is broken with studio (7073649), so we disable this for now.
46 # CPPFLAGS +=    -I/usr/include/gmp
47 # Java header files (--with-javaincludedir allows for only one directory)
31f92b 48 CPPFLAGS +=    -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
f7e71f 49 # PHP header files (no --with- flag)
56473b 50 CPPFLAGS +=    $(shell /usr/php/5.4/bin/php-config --includes)
d3ebcf 51 #CXX +=        $(studio_NORUNPATH)
72eca8 52
AP 53 # Can't find headers without this.
54 COMPONENT_PRE_CONFIGURE_ACTION =        ($(CLONEY) $(SOURCE_DIR) $(@D))
f7e71f 55
DD 56 CONFIGURE_ENV +=    CPPFLAGS="$(CPPFLAGS)"
57 CONFIGURE_ENV +=    PERL=$(PERL)
66321e 58 # Explicitly use Ruby 1.9.  Allows switching Ruby default without
d3ebcf 59 # affecting graphviz build.
66321e 60 CONFIGURE_ENV +=    RUBY=$(RUBY.1.9)
f7e71f 61 CONFIGURE_OPTIONS +=    --without-included-ltdl
DD 62 CONFIGURE_OPTIONS +=    --enable-python=no
63 CONFIGURE_OPTIONS +=    --enable-python26=yes
fa74c0 64 CONFIGURE_OPTIONS +=    --enable-python27=yes
048c87 65 CONFIGURE_OPTIONS +=    --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
36eaeb 66 CONFIGURE_OPTIONS +=    --with-qt=no
f7e71f 67
DD 68 COMPONENT_BUILD_ARGS +=     GREP=/usr/bin/ggrep
69
70 # common targets
71 build:        $(BUILD_32)
72
73 install:    $(INSTALL_32)
74     env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
75     $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python26
fa74c0 76     $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python27
f7e71f 77
DD 78 # The test infrastructure doesn't run in a VPATHed environment.
79 COMPONENT_PRE_TEST_ACTION = \
80     (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
81
82 # There are tests, but they fail consistently because the test samples are out
83 # of date and not generated with a known configuration.  See
84 # http://graphviz.org/bugs/b2063.html
85 test:        $(NO_TESTS)
86
87 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
72eca8 88
AP 89 REQUIRED_PACKAGES += image/graphviz
90 REQUIRED_PACKAGES += image/library/librsvg
91 REQUIRED_PACKAGES += library/desktop/atk
92 REQUIRED_PACKAGES += library/desktop/cairo
93 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
94 REQUIRED_PACKAGES += library/desktop/gtk2
95 REQUIRED_PACKAGES += library/desktop/pango
96 REQUIRED_PACKAGES += library/expat
97 REQUIRED_PACKAGES += library/gd
98 REQUIRED_PACKAGES += library/glib2
99 REQUIRED_PACKAGES += library/libpoppler
100 REQUIRED_PACKAGES += library/libtool/libltdl
101 REQUIRED_PACKAGES += library/math/gts
102 REQUIRED_PACKAGES += library/zlib
103 REQUIRED_PACKAGES += print/filter/ghostscript
104 REQUIRED_PACKAGES += runtime/lua
105 REQUIRED_PACKAGES += runtime/perl-522
106 REQUIRED_PACKAGES += runtime/ruby-19
107 REQUIRED_PACKAGES += runtime/tk-8
108 REQUIRED_PACKAGES += system/library
109 REQUIRED_PACKAGES += system/library/g++-4-runtime
110 REQUIRED_PACKAGES += system/library/gcc-4-runtime
111 REQUIRED_PACKAGES += system/library/math
112 REQUIRED_PACKAGES += x11/library/libx11
113 REQUIRED_PACKAGES += x11/library/libxmu
114 REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
115 REQUIRED_PACKAGES += x11/library/toolkit/libxt