graphics/graphviz: Add tcl/tk 8.5 support The PLIST was hardcoded for tcl8.4. Leverage the tcl Makefile.version to generate PLIST_SUBST variable so it won't break with tcl8.6.diff -r1.100 -r1.101 pkgsrc/graphics/graphviz/Makefile
(marino)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.100 2012/06/14 07:44:36 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.101 2012/08/21 21:44:00 marino Exp $ | |
2 | 2 | |||
3 | DISTNAME= graphviz-2.26.3 | 3 | DISTNAME= graphviz-2.26.3 | |
4 | PKGREVISION= 11 | 4 | PKGREVISION= 12 | |
5 | CATEGORIES= graphics | 5 | CATEGORIES= graphics | |
6 | MASTER_SITES= http://www.graphviz.org/pub/graphviz/stable/SOURCES/ | 6 | MASTER_SITES= http://www.graphviz.org/pub/graphviz/stable/SOURCES/ | |
7 | 7 | |||
8 | MAINTAINER= sno@NetBSD.org | 8 | MAINTAINER= sno@NetBSD.org | |
9 | HOMEPAGE= http://www.graphviz.org/ | 9 | HOMEPAGE= http://www.graphviz.org/ | |
10 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs | 10 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs | |
11 | LICENSE= cpl-1.0 | 11 | LICENSE= cpl-1.0 | |
12 | 12 | |||
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | 14 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 15 | |||
16 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 | 16 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 | |
17 | 17 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.39 2012/03/23 01:12:14 obache Exp $ | 1 | @comment $NetBSD: PLIST,v 1.40 2012/08/21 21:44:00 marino Exp $ | |
2 | bin/acyclic | 2 | bin/acyclic | |
3 | bin/bcomps | 3 | bin/bcomps | |
4 | bin/ccomps | 4 | bin/ccomps | |
5 | bin/circo | 5 | bin/circo | |
6 | ${PLIST.gd}bin/diffimg | 6 | ${PLIST.gd}bin/diffimg | |
7 | bin/dijkstra | 7 | bin/dijkstra | |
8 | bin/dot | 8 | bin/dot | |
9 | bin/dot2gxl | 9 | bin/dot2gxl | |
10 | bin/dotty | 10 | bin/dotty | |
11 | bin/fdp | 11 | bin/fdp | |
12 | bin/gc | 12 | bin/gc | |
13 | bin/gml2gv | 13 | bin/gml2gv | |
14 | bin/gv2gxl | 14 | bin/gv2gxl | |
@@ -96,27 +96,27 @@ lib/libgraph.la | @@ -96,27 +96,27 @@ lib/libgraph.la | |||
96 | lib/libgvc.la | 96 | lib/libgvc.la | |
97 | lib/libgvpr.la | 97 | lib/libgvpr.la | |
98 | lib/libpathplan.la | 98 | lib/libpathplan.la | |
99 | lib/libxdot.la | 99 | lib/libxdot.la | |
100 | ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.pm | 100 | ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.pm | |
101 | ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.so | 101 | ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/gv.so | |
102 | lib/pkgconfig/libcdt.pc | 102 | lib/pkgconfig/libcdt.pc | |
103 | lib/pkgconfig/libcgraph.pc | 103 | lib/pkgconfig/libcgraph.pc | |
104 | lib/pkgconfig/libgraph.pc | 104 | lib/pkgconfig/libgraph.pc | |
105 | lib/pkgconfig/libgvc.pc | 105 | lib/pkgconfig/libgvc.pc | |
106 | lib/pkgconfig/libgvpr.pc | 106 | lib/pkgconfig/libgvpr.pc | |
107 | lib/pkgconfig/libpathplan.pc | 107 | lib/pkgconfig/libpathplan.pc | |
108 | lib/pkgconfig/libxdot.pc | 108 | lib/pkgconfig/libxdot.pc | |
109 | ${PLIST.tcl}lib/tcl8.4/graphviz | 109 | ${PLIST.tcl}lib/tcl${TCL_BASEVER}/graphviz | |
110 | man/man1/acyclic.1 | 110 | man/man1/acyclic.1 | |
111 | man/man1/bcomps.1 | 111 | man/man1/bcomps.1 | |
112 | man/man1/ccomps.1 | 112 | man/man1/ccomps.1 | |
113 | man/man1/circo.1 | 113 | man/man1/circo.1 | |
114 | man/man1/dijkstra.1 | 114 | man/man1/dijkstra.1 | |
115 | man/man1/dot.1 | 115 | man/man1/dot.1 | |
116 | man/man1/dotty.1 | 116 | man/man1/dotty.1 | |
117 | man/man1/fdp.1 | 117 | man/man1/fdp.1 | |
118 | man/man1/gc.1 | 118 | man/man1/gc.1 | |
119 | man/man1/gml2gv.1 | 119 | man/man1/gml2gv.1 | |
120 | man/man1/gv2gxl.1 | 120 | man/man1/gv2gxl.1 | |
121 | man/man1/gvcolor.1 | 121 | man/man1/gvcolor.1 | |
122 | man/man1/gvgen.1 | 122 | man/man1/gvgen.1 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.13 2012/03/21 16:25:47 obache Exp $ | 1 | # $NetBSD: options.mk,v 1.14 2012/08/21 21:44:00 marino Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz | |
4 | PKG_SUPPORTED_OPTIONS= gd ghostscript gtk guile lua ocaml pangocairo rsvg tcl x11 perl | 4 | PKG_SUPPORTED_OPTIONS= gd ghostscript gtk guile lua ocaml pangocairo rsvg tcl x11 perl | |
5 | PKG_SUGGESTED_OPTIONS= gd gtk lua pangocairo perl tcl x11 | 5 | PKG_SUGGESTED_OPTIONS= gd gtk lua pangocairo perl tcl x11 | |
6 | # Explanation of consequence of options, to help those trying to slim down: | 6 | # Explanation of consequence of options, to help those trying to slim down: | |
7 | # guile ocaml lua tcl perl: extension language support | 7 | # guile ocaml lua tcl perl: extension language support | |
8 | # x11: Omits all linking with x11, which means x11 graphics supports as | 8 | # x11: Omits all linking with x11, which means x11 graphics supports as | |
9 | # well as x11 frontend support. | 9 | # well as x11 frontend support. | |
10 | # pangocairo: basic ps/pdf support. | 10 | # pangocairo: basic ps/pdf support. | |
11 | # gtk: basic graphic format support (in addition to gd, which isn't | 11 | # gtk: basic graphic format support (in addition to gd, which isn't | |
12 | # maintained anymore) | 12 | # maintained anymore) | |
13 | # rsvg: Omitting loses svg support. librsvg has large dependencies | 13 | # rsvg: Omitting loses svg support. librsvg has large dependencies | |
14 | # including some GNOME libs. | 14 | # including some GNOME libs. | |
@@ -119,32 +119,34 @@ PLIST.lua= yes | @@ -119,32 +119,34 @@ PLIST.lua= yes | |||
119 | CONFIGURE_ARGS+= --disable-lua | 119 | CONFIGURE_ARGS+= --disable-lua | |
120 | .endif | 120 | .endif | |
121 | 121 | |||
122 | .if !empty(PKG_OPTIONS:Mocaml) | 122 | .if !empty(PKG_OPTIONS:Mocaml) | |
123 | USING_SWIG= yes | 123 | USING_SWIG= yes | |
124 | .include "../../lang/ocaml/buildlink3.mk" | 124 | .include "../../lang/ocaml/buildlink3.mk" | |
125 | PLIST.ocaml= yes | 125 | PLIST.ocaml= yes | |
126 | .else | 126 | .else | |
127 | CONFIGURE_ARGS+= --disable-ocaml | 127 | CONFIGURE_ARGS+= --disable-ocaml | |
128 | .endif | 128 | .endif | |
129 | 129 | |||
130 | .if !empty(PKG_OPTIONS:Mtcl) | 130 | .if !empty(PKG_OPTIONS:Mtcl) | |
131 | USING_SWIG= yes | 131 | USING_SWIG= yes | |
132 | .include "../../lang/tcl/Makefile.version" | |||
132 | .include "../../x11/tk/buildlink3.mk" | 133 | .include "../../x11/tk/buildlink3.mk" | |
133 | CONFIGURE_ENV+= TCLCONFIG=${TCLCONFIG_SH:Q} | 134 | CONFIGURE_ENV+= TCLCONFIG=${TCLCONFIG_SH:Q} | |
134 | CONFIGURE_ENV+= TKCONFIG=${TKCONFIG_SH:Q} | 135 | CONFIGURE_ENV+= TKCONFIG=${TKCONFIG_SH:Q} | |
135 | CONFIGURE_ARGS+= --with-wish=${WISH} | 136 | CONFIGURE_ARGS+= --with-wish=${WISH} | |
136 | CONFIGURE_ARGS+= --with-tclsh=${TCLSH} | 137 | CONFIGURE_ARGS+= --with-tclsh=${TCLSH} | |
137 | PLIST.tcl= yes | 138 | PLIST.tcl= yes | |
139 | PLIST_SUBST+= TCL_BASEVER=${TCL_BASEVER} | |||
138 | .else | 140 | .else | |
139 | CONFIGURE_ARGS+= --disable-tcl | 141 | CONFIGURE_ARGS+= --disable-tcl | |
140 | .endif | 142 | .endif | |
141 | 143 | |||
142 | .if !empty(PKG_OPTIONS:Mguile) | 144 | .if !empty(PKG_OPTIONS:Mguile) | |
143 | USING_SWIG= yes | 145 | USING_SWIG= yes | |
144 | .include "../../lang/guile/buildlink3.mk" | 146 | .include "../../lang/guile/buildlink3.mk" | |
145 | CONFIGURE_ARGS+= --enable-guile | 147 | CONFIGURE_ARGS+= --enable-guile | |
146 | PLIST.guile= yes | 148 | PLIST.guile= yes | |
147 | .else | 149 | .else | |
148 | CONFIGURE_ARGS+= --disable-guile | 150 | CONFIGURE_ARGS+= --disable-guile | |
149 | .endif | 151 | .endif | |
150 | 152 |