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 |
3610b4
|
29 |
COMPONENT_VERSION= 2.40.1 |
091008
|
30 |
COMPONENT_REVISION= 1 |
60e6e0
|
31 |
COMPONENT_PROJECT_URL= http://www.graphviz.org/ |
f7e71f
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
DD |
33 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
3610b4
|
34 |
COMPONENT_ARCHIVE_HASH= sha256:ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421 |
G |
35 |
COMPONENT_ARCHIVE_URL= http://204.178.9.49/pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE) |
f7e71f
|
36 |
|
5b7f46
|
37 |
include $(WS_MAKE_RULES)/prep.mk |
AL |
38 |
include $(WS_MAKE_RULES)/configure.mk |
|
39 |
include $(WS_MAKE_RULES)/ips.mk |
f7e71f
|
40 |
|
765543
|
41 |
PATH_PHP.32 = /usr/php/5.6/bin |
AP |
42 |
PATH_PHP.64 = /usr/php/5.6/bin/$(MACH64) |
5b7f46
|
43 |
PATH = /usr/bin:/usr/gnu/bin:$(PATH_PHP.$(BITS)) |
f7e71f
|
44 |
|
3610b4
|
45 |
CPPFLAGS += -I/usr/lib/$(MACH64)/ocaml |
f7e71f
|
46 |
# GMP header files for the guile extension (no --with- flag) |
DD |
47 |
# The guile build is broken with studio (7073649), so we disable this for now. |
|
48 |
# CPPFLAGS += -I/usr/include/gmp |
|
49 |
# Java header files (--with-javaincludedir allows for only one directory) |
31f92b
|
50 |
CPPFLAGS += -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris |
f7e71f
|
51 |
# PHP header files (no --with- flag) |
765543
|
52 |
CPPFLAGS_PHP.32 = $(shell /usr/php/5.6/bin/php-config --includes) |
AP |
53 |
CPPFLAGS_PHP.64 = $(shell /usr/php/5.6/bin/$(MACH64)/php-config --includes) |
|
54 |
CPPFLAGS += $(CPPFLAGS_PHP.$(BITS)) |
d3ebcf
|
55 |
#CXX += $(studio_NORUNPATH) |
72eca8
|
56 |
|
1a11fd
|
57 |
COMPONENT_PREP_ACTION = (cd $(@D) && libtoolize -cf && \ |
AP |
58 |
aclocal && \ |
|
59 |
autoconf -f -I m4 && \ |
|
60 |
autoheader && \ |
|
61 |
automake --add-missing) |
524c98
|
62 |
|
72eca8
|
63 |
# Can't find headers without this. |
AP |
64 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
f7e71f
|
65 |
|
DD |
66 |
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
67 |
CONFIGURE_ENV += PERL=$(PERL) |
66321e
|
68 |
# Explicitly use Ruby 1.9. Allows switching Ruby default without |
d3ebcf
|
69 |
# affecting graphviz build. |
3873a7
|
70 |
CONFIGURE_ENV += RUBY=$(RUBY) |
f7e71f
|
71 |
CONFIGURE_OPTIONS += --without-included-ltdl |
DD |
72 |
CONFIGURE_OPTIONS += --enable-python=no |
5d179a
|
73 |
CONFIGURE_OPTIONS += --enable-python26=no |
fa74c0
|
74 |
CONFIGURE_OPTIONS += --enable-python27=yes |
765543
|
75 |
CONFIGURE_ENV += PYTHON27=$(PYTHON.2.7.$(BITS)) |
AP |
76 |
# We build only 64-bit java library, |
|
77 |
# but avoid building other 64-bit bindings for now |
|
78 |
CONFIGURE_OPTIONS.32 += --enable-java=no |
|
79 |
CONFIGURE_OPTIONS.64 += --enable-java=yes |
|
80 |
CONFIGURE_OPTIONS.64 += --enable-perl=no |
|
81 |
CONFIGURE_OPTIONS.64 += --enable-ruby=no |
|
82 |
CONFIGURE_OPTIONS.64 += --enable-tcl=no |
048c87
|
83 |
CONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS)) |
36eaeb
|
84 |
CONFIGURE_OPTIONS += --with-qt=no |
3610b4
|
85 |
CONFIGURE_OPTIONS += --with-gdincludedir=$(CONFIGURE_INCLUDEDIR)/gd2 |
f7e71f
|
86 |
|
765543
|
87 |
CONFIGURE_ENV.32 += ac_cv_path_GDLIB_CONFIG=/usr/bin/gdlib-config |
AP |
88 |
CONFIGURE_ENV.64 += ac_cv_path_GDLIB_CONFIG=/usr/bin/$(MACH64)/gdlib-config |
|
89 |
|
f7e71f
|
90 |
COMPONENT_BUILD_ARGS += GREP=/usr/bin/ggrep |
DD |
91 |
|
765543
|
92 |
COMPONENT_POST_INSTALL_ACTION += \ |
AP |
93 |
( cd $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) ; \ |
|
94 |
$(RM) -r vendor-packages-$(BITS) ; \ |
|
95 |
$(MV) site-packages vendor-packages-$(BITS) ) |
f7e71f
|
96 |
|
765543
|
97 |
# common targets |
AP |
98 |
|
|
99 |
# We don't want to overwrite 32-bit bits |
|
100 |
$(INSTALL_32): $(INSTALL_64) |
|
101 |
|
|
102 |
build: $(BUILD_32_and_64) |
|
103 |
|
|
104 |
install: $(INSTALL_32_and_64) |
f7e71f
|
105 |
env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c |
fa74c0
|
106 |
$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python27 |
f7e71f
|
107 |
|
DD |
108 |
# The test infrastructure doesn't run in a VPATHed environment. |
|
109 |
COMPONENT_PRE_TEST_ACTION = \ |
|
110 |
(cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .) |
|
111 |
|
|
112 |
# There are tests, but they fail consistently because the test samples are out |
|
113 |
# of date and not generated with a known configuration. See |
|
114 |
# http://graphviz.org/bugs/b2063.html |
|
115 |
test: $(NO_TESTS) |
|
116 |
|
0f1810
|
117 |
# Auto-generated dependencies |
AL |
118 |
REQUIRED_PACKAGES += SUNWcs |
|
119 |
REQUIRED_PACKAGES += image/graphviz |
72eca8
|
120 |
REQUIRED_PACKAGES += image/library/librsvg |
AP |
121 |
REQUIRED_PACKAGES += library/desktop/atk |
|
122 |
REQUIRED_PACKAGES += library/desktop/cairo |
|
123 |
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf |
|
124 |
REQUIRED_PACKAGES += library/desktop/gtk2 |
|
125 |
REQUIRED_PACKAGES += library/desktop/pango |
|
126 |
REQUIRED_PACKAGES += library/expat |
|
127 |
REQUIRED_PACKAGES += library/gd |
|
128 |
REQUIRED_PACKAGES += library/glib2 |
|
129 |
REQUIRED_PACKAGES += library/libpoppler |
|
130 |
REQUIRED_PACKAGES += library/libtool/libltdl |
|
131 |
REQUIRED_PACKAGES += library/math/gts |
|
132 |
REQUIRED_PACKAGES += library/zlib |
|
133 |
REQUIRED_PACKAGES += print/filter/ghostscript |
0f1810
|
134 |
REQUIRED_PACKAGES += runtime/lua |
AL |
135 |
REQUIRED_PACKAGES += runtime/perl-522 |
|
136 |
REQUIRED_PACKAGES += runtime/ruby-23 |
|
137 |
REQUIRED_PACKAGES += runtime/tk-8 |
72eca8
|
138 |
REQUIRED_PACKAGES += system/library |
AP |
139 |
REQUIRED_PACKAGES += system/library/g++-4-runtime |
213660
|
140 |
REQUIRED_PACKAGES += system/library/gcc-6-runtime |
72eca8
|
141 |
REQUIRED_PACKAGES += system/library/math |
AP |
142 |
REQUIRED_PACKAGES += x11/library/libx11 |
|
143 |
REQUIRED_PACKAGES += x11/library/libxmu |
|
144 |
REQUIRED_PACKAGES += x11/library/toolkit/libxaw7 |
|
145 |
REQUIRED_PACKAGES += x11/library/toolkit/libxt |
3610b4
|
146 |
REQUIRED_PACKAGES += runtime/lua |
G |
147 |
REQUIRED_PACKAGES += runtime/perl-522 |
|
148 |
REQUIRED_PACKAGES += runtime/python-27 |
|
149 |
REQUIRED_PACKAGES += runtime/ruby-23 |
|
150 |
REQUIRED_PACKAGES += runtime/tk-8 |
|
151 |
REQUIRED_PACKAGES += runtime/java/openjdk8 |
|
152 |
REQUIRED_PACKAGES += runtime/ocaml |
|
153 |
REQUIRED_PACKAGES += web/php-56 |