| @@ -1,93 +1,96 @@ | | | @@ -1,93 +1,96 @@ |
1 | # $NetBSD: Makefile,v 1.217 2020/08/03 22:38:22 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.218 2020/08/09 16:04:44 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= graphviz-2.44.1 | | 3 | DISTNAME= graphviz-2.44.1 |
4 | CATEGORIES= graphics | | 4 | CATEGORIES= graphics |
5 | MASTER_SITES= https://www2.graphviz.org/Packages/stable/portable_source/ | | 5 | MASTER_SITES= https://www2.graphviz.org/Packages/stable/portable_source/ |
6 | | | 6 | |
7 | MAINTAINER= sno@NetBSD.org | | 7 | MAINTAINER= sno@NetBSD.org |
8 | HOMEPAGE= https://www.graphviz.org/ | | 8 | HOMEPAGE= https://www.graphviz.org/ |
9 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs | | 9 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs |
10 | LICENSE= epl-v1.0 | | 10 | LICENSE= epl-v1.0 |
11 | | | 11 | |
12 | TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript | | 12 | TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript |
13 | | | 13 | |
14 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 | | 14 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 |
15 | CHECK_PORTABILITY_SKIP+= windows/* | | 15 | CHECK_PORTABILITY_SKIP+= windows/* |
16 | | | 16 | |
17 | PRIVILEGED_STAGES+= clean | | 17 | PRIVILEGED_STAGES+= clean |
18 | | | 18 | |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_LIBTOOL= yes | | 20 | USE_LIBTOOL= yes |
21 | USE_TOOLS+= automake bison flex groff pkg-config | | 21 | USE_TOOLS+= automake bison flex groff pkg-config |
| | | 22 | # GNU make is needed since BSD Make does not know $< in explicit rules, |
| | | 23 | # such as used by lib/cdt/Makefile.am. |
| | | 24 | USE_TOOLS+= gmake |
22 | GNU_CONFIGURE= yes | | 25 | GNU_CONFIGURE= yes |
23 | GNU_CONFIGURE_STRICT= no # has sub-configures | | 26 | GNU_CONFIGURE_STRICT= no # has sub-configures |
24 | CONFIGURE_ARGS+= --disable-java | | 27 | CONFIGURE_ARGS+= --disable-java |
25 | CONFIGURE_ARGS+= --disable-php | | 28 | CONFIGURE_ARGS+= --disable-php |
26 | CONFIGURE_ARGS+= --disable-python | | 29 | CONFIGURE_ARGS+= --disable-python |
27 | CONFIGURE_ARGS+= --disable-python2 | | 30 | CONFIGURE_ARGS+= --disable-python2 |
28 | CONFIGURE_ARGS+= --disable-python3 | | 31 | CONFIGURE_ARGS+= --disable-python3 |
29 | CONFIGURE_ARGS+= --disable-r | | 32 | CONFIGURE_ARGS+= --disable-r |
30 | CONFIGURE_ARGS+= --disable-ruby | | 33 | CONFIGURE_ARGS+= --disable-ruby |
31 | CONFIGURE_ARGS+= --disable-sharp | | 34 | CONFIGURE_ARGS+= --disable-sharp |
32 | CONFIGURE_ARGS+= --enable-ltdl | | 35 | CONFIGURE_ARGS+= --enable-ltdl |
33 | CONFIGURE_ARGS+= --without-qt | | 36 | CONFIGURE_ARGS+= --without-qt |
34 | # build fails when PHP and/or Ruby are also installed | | 37 | # build fails when PHP and/or Ruby are also installed |
35 | CONFIGURE_ENV+= ac_cv_prog_PHP= | | 38 | CONFIGURE_ENV+= ac_cv_prog_PHP= |
36 | CONFIGURE_ENV+= ac_cv_prog_RUBY= | | 39 | CONFIGURE_ENV+= ac_cv_prog_RUBY= |
37 | CPPFLAGS+= -DNO_POSTSCRIPT_ALIAS=1 | | 40 | CPPFLAGS+= -DNO_POSTSCRIPT_ALIAS=1 |
38 | PKGCONFIG_OVERRIDE+= lib/cdt/libcdt.pc.in | | 41 | PKGCONFIG_OVERRIDE+= lib/cdt/libcdt.pc.in |
39 | PKGCONFIG_OVERRIDE+= lib/cgraph/libcgraph.pc.in | | 42 | PKGCONFIG_OVERRIDE+= lib/cgraph/libcgraph.pc.in |
40 | PKGCONFIG_OVERRIDE+= lib/edgepaint/liblab_gamut.pc.in | | 43 | PKGCONFIG_OVERRIDE+= lib/edgepaint/liblab_gamut.pc.in |
41 | PKGCONFIG_OVERRIDE+= lib/expr/libexpr.pc.in | | 44 | PKGCONFIG_OVERRIDE+= lib/expr/libexpr.pc.in |
42 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc.pc.in | | 45 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc.pc.in |
43 | PKGCONFIG_OVERRIDE+= lib/gvpr/libgvpr.pc.in | | 46 | PKGCONFIG_OVERRIDE+= lib/gvpr/libgvpr.pc.in |
44 | PKGCONFIG_OVERRIDE+= lib/pathplan/libpathplan.pc.in | | 47 | PKGCONFIG_OVERRIDE+= lib/pathplan/libpathplan.pc.in |
45 | PKGCONFIG_OVERRIDE+= lib/sfdpgen/libsfdp.pc.in | | 48 | PKGCONFIG_OVERRIDE+= lib/sfdpgen/libsfdp.pc.in |
46 | PKGCONFIG_OVERRIDE+= lib/xdot/libxdot.pc.in | | 49 | PKGCONFIG_OVERRIDE+= lib/xdot/libxdot.pc.in |
47 | XAW_TYPE= standard | | 50 | XAW_TYPE= standard |
48 | | | 51 | |
49 | # With lua51 there's a PLIST divergence and it isn't obvious whether | | 52 | # With lua51 there's a PLIST divergence and it isn't obvious whether |
50 | # it's serious or not, or what causes it. | | 53 | # it's serious or not, or what causes it. |
51 | LUA_VERSIONS_INCOMPATIBLE= 51 | | 54 | LUA_VERSIONS_INCOMPATIBLE= 51 |
52 | | | 55 | |
53 | REPLACE_LUA+= tclpkg/gv/demo/modgraph.lua | | 56 | REPLACE_LUA+= tclpkg/gv/demo/modgraph.lua |
54 | | | 57 | |
55 | REPLACE_INTERPRETER+= tclsh | | 58 | REPLACE_INTERPRETER+= tclsh |
56 | REPLACE.tclsh.old= .*tclsh | | 59 | REPLACE.tclsh.old= .*tclsh |
57 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh | | 60 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh |
58 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl | | 61 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl |
59 | | | 62 | |
60 | REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ | | 63 | REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ |
61 | contrib/dirgraph/dirgraph.pl | | 64 | contrib/dirgraph/dirgraph.pl |
62 | | | 65 | |
63 | .include "../../mk/compiler.mk" | | 66 | .include "../../mk/compiler.mk" |
64 | .if !empty(CC_VERSION:Mgcc-2*) | | 67 | .if !empty(CC_VERSION:Mgcc-2*) |
65 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter | | 68 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter |
66 | .endif | | 69 | .endif |
67 | | | 70 | |
68 | # Prevent another config.status run. | | 71 | # Prevent another config.status run. |
69 | pre-build: | | 72 | pre-build: |
70 | touch ${WRKSRC}/Makefile ${WRKSRC}/graphviz_version.h | | 73 | touch ${WRKSRC}/Makefile ${WRKSRC}/graphviz_version.h |
71 | | | 74 | |
72 | # Remove temporary files and directories created by re-linking "libgv_lua.la". | | 75 | # Remove temporary files and directories created by re-linking "libgv_lua.la". |
73 | post-install: | | 76 | post-install: |
74 | ${RM} -rf ${DESTDIR}${PREFIX}/lib/graphviz/lua/gv.so \ | | 77 | ${RM} -rf ${DESTDIR}${PREFIX}/lib/graphviz/lua/gv.so \ |
75 | ${DESTDIR}${PREFIX}/lib/graphviz/tcl/tcl \ | | 78 | ${DESTDIR}${PREFIX}/lib/graphviz/tcl/tcl \ |
76 | ${DESTDIR}${PREFIX}/lib/lua/5.1/gv.so | | 79 | ${DESTDIR}${PREFIX}/lib/lua/5.1/gv.so |
77 | | | 80 | |
78 | .include "options.mk" | | 81 | .include "options.mk" |
79 | | | 82 | |
80 | .include "../../lang/lua/application.mk" | | 83 | .include "../../lang/lua/application.mk" |
81 | | | 84 | |
82 | .include "../../converters/libiconv/buildlink3.mk" | | 85 | .include "../../converters/libiconv/buildlink3.mk" |
83 | .include "../../devel/gettext-lib/buildlink3.mk" | | 86 | .include "../../devel/gettext-lib/buildlink3.mk" |
84 | .include "../../devel/libltdl/buildlink3.mk" | | 87 | .include "../../devel/libltdl/buildlink3.mk" |
85 | #.include "../../devel/libltdl/convenience.mk" | | 88 | #.include "../../devel/libltdl/convenience.mk" |
86 | .include "../../devel/pango/buildlink3.mk" | | 89 | .include "../../devel/pango/buildlink3.mk" |
87 | .include "../../fonts/fontconfig/buildlink3.mk" | | 90 | .include "../../fonts/fontconfig/buildlink3.mk" |
88 | .include "../../graphics/cairo/buildlink3.mk" | | 91 | .include "../../graphics/cairo/buildlink3.mk" |
89 | .include "../../graphics/gts/buildlink3.mk" | | 92 | .include "../../graphics/gts/buildlink3.mk" |
90 | .include "../../graphics/libwebp/buildlink3.mk" | | 93 | .include "../../graphics/libwebp/buildlink3.mk" |
91 | .include "../../textproc/expat/buildlink3.mk" | | 94 | .include "../../textproc/expat/buildlink3.mk" |
92 | .include "../../mk/pthread.buildlink3.mk" | | 95 | .include "../../mk/pthread.buildlink3.mk" |
93 | .include "../../mk/bsd.pkg.mk" | | 96 | .include "../../mk/bsd.pkg.mk" |