38 |
38 |
39 # There are tests, but they fail consistently because the test samples are out |
39 # There are tests, but they fail consistently because the test samples are out |
40 # of date and not generated with a known configuration. See |
40 # of date and not generated with a known configuration. See |
41 # http://graphviz.org/bugs/b2063.html |
41 # http://graphviz.org/bugs/b2063.html |
42 TEST_TARGET= $(SKIP_TEST) |
42 TEST_TARGET= $(SKIP_TEST) |
|
43 |
|
44 # We want to build a couple of extra things after the installs are done, so set |
|
45 # the install targets appropriately. |
|
46 INSTALL_TARGET = $(INSTALL_$(MK_BITS)) |
|
47 INSTALL_TARGET += $(PROTOUSRLIBDIR)/graphviz/config6 |
|
48 INSTALL_TARGET += $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES)/gv.pyc |
|
49 |
43 include $(WS_MAKE_RULES)/common.mk |
50 include $(WS_MAKE_RULES)/common.mk |
44 |
51 |
45 PATH = /usr/php/5.6/bin:/usr/bin:/usr/gnu/bin |
52 PATH = /usr/php/5.6/bin:/usr/bin:/usr/gnu/bin |
46 |
53 |
47 # GMP header files for the guile extension (no --with- flag) |
54 # GMP header files for the guile extension (no --with- flag) |
79 $(INSTALL_32): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=$(USRLIBDIR)/lua/5.2 |
86 $(INSTALL_32): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=$(USRLIBDIR)/lua/5.2 |
80 $(INSTALL_64): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=$(USRLIBDIR)/lua/5.2/64 |
87 $(INSTALL_64): COMPONENT_INSTALL_ARGS += LUA_INSTALL_DIR=$(USRLIBDIR)/lua/5.2/64 |
81 # Use GNU ln, which supports the -r (--relative) option. |
88 # Use GNU ln, which supports the -r (--relative) option. |
82 COMPONENT_INSTALL_ARGS += LN_S="gln -s" |
89 COMPONENT_INSTALL_ARGS += LN_S="gln -s" |
83 |
90 |
84 # We build 32 and 64 bit because we build libraries, and we build modules for |
91 # Create the config file once the 32-bit build is complete. This runs the bits |
85 # runtimes which provide 64 or 32 (or both) bit environments. |
92 # we just built, so we have to set a handful of variables to the right place. |
86 COMPONENT_POST_INSTALL_ACTION += \ |
93 # The 32-bit executables are in their own directory, so we have to point to |
|
94 # that version of dot explicitly. |
|
95 $(PROTOUSRLIBDIR)/graphviz/config6: $(INSTALL_32) |
87 env LD_LIBRARY_PATH=$(PROTOUSRLIBDIR) GVBINDIR=$(PROTOUSRLIBDIR)/graphviz \ |
96 env LD_LIBRARY_PATH=$(PROTOUSRLIBDIR) GVBINDIR=$(PROTOUSRLIBDIR)/graphviz \ |
88 $(PROTOUSRBINDIR)/dot -c; \ |
97 $(PROTOUSRBINDIR)/$(MACH32)/dot -c |
89 $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES) |
98 |
|
99 # Once the build is complete, compile the .py file. There's no need to compile |
|
100 # the one in the "64" directory, so don't recurse. And make sure that the |
|
101 # build path doesn't get embedded in the .pyc file. |
|
102 $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES)/gv.pyc: $(INSTALL_32) |
|
103 $(PYTHON.2.7.32) -m compileall -l -d $(PYTHON.2.7.VENDOR_PACKAGES) \ |
|
104 $(PROTO_DIR)/$(PYTHON.2.7.VENDOR_PACKAGES) |
90 |
105 |
91 # The test infrastructure doesn't run in a VPATHed environment. |
106 # The test infrastructure doesn't run in a VPATHed environment. |
92 COMPONENT_PRE_TEST_ACTION = \ |
107 COMPONENT_PRE_TEST_ACTION = \ |
93 (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .) |
108 (cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .) |
94 |
109 |