|
1 # |
|
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 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= graphviz |
|
29 COMPONENT_VERSION= 2.28.0 |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:4725d88a13e071ee22e632de551d4a55ca08ee7d |
|
33 COMPONENT_ARCHIVE_URL= http://www.graphviz.org/pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include ../../make-rules/prep.mk |
|
36 include ../../make-rules/configure.mk |
|
37 include ../../make-rules/ips.mk |
|
38 |
|
39 PKGMOGRIFY_TRANSFORMS += $(WS_TOP)/transforms/libtool-drop |
|
40 |
|
41 PATH = /usr/bin:/usr/gnu/bin:/usr/php/5.2/bin |
|
42 |
|
43 # GMP header files for the guile extension (no --with- flag) |
|
44 # The guile build is broken with studio (7073649), so we disable this for now. |
|
45 # CPPFLAGS += -I/usr/include/gmp |
|
46 # Java header files (--with-javaincludedir allows for only one directory) |
|
47 CPPFLAGS += -I/usr/java/include -I/usr/java/include/solaris |
|
48 # PHP header files (no --with- flag) |
|
49 CPPFLAGS += $(shell PATH=$(PATH) php-config --includes) |
|
50 CXX += $(studio_NORUNPATH) |
|
51 |
|
52 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
53 CONFIGURE_ENV += PERL=$(PERL) |
|
54 CONFIGURE_OPTIONS += --without-included-ltdl |
|
55 CONFIGURE_OPTIONS += --enable-python=no |
|
56 CONFIGURE_OPTIONS += --enable-python26=yes |
|
57 |
|
58 COMPONENT_BUILD_ARGS += GREP=/usr/bin/ggrep |
|
59 |
|
60 # common targets |
|
61 build: $(BUILD_32) |
|
62 |
|
63 install: $(INSTALL_32) |
|
64 env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c |
|
65 $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python26 |
|
66 |
|
67 # The test infrastructure doesn't run in a VPATHed environment. |
|
68 COMPONENT_PRE_TEST_ACTION = \ |
|
69 (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .) |
|
70 |
|
71 # There are tests, but they fail consistently because the test samples are out |
|
72 # of date and not generated with a known configuration. See |
|
73 # http://graphviz.org/bugs/b2063.html |
|
74 test: $(NO_TESTS) |
|
75 |
|
76 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |