1 # $NetBSD: Makefile,v 1.115 2013/04/09 05:50:39 dholland Exp $
3 DISTNAME
= graphviz-2.26
.3
6 MASTER_SITES
= http
://www.graphviz.org
/pub
/graphviz
/stable
/SOURCES
/
8 MAINTAINER
= sno@NetBSD.org
9 HOMEPAGE
= http
://www.graphviz.org
/
10 COMMENT
= Graph Drawing Programs from AT
&T Research and Lucent Bell Labs
13 PKG_INSTALLATION_TYPES
= overwrite pkgviews
15 CHECK_FILES_SKIP
+= ${PREFIX}/lib
/graphviz
/config6
17 PRIVILEGED_STAGES
+= clean
21 USE_TOOLS
+= automake bison pkg-config
23 CONFIGURE_ARGS
+= --disable-java
24 CONFIGURE_ARGS
+= --disable-php
25 CONFIGURE_ARGS
+= --disable-python
26 CONFIGURE_ARGS
+= --disable-ruby
27 CONFIGURE_ARGS
+= --disable-sharp
28 CONFIGURE_ARGS
+= --disable-r
29 CONFIGURE_ARGS
+= --with-gts
=no
30 # build fails when PHP and/or Ruby are also installed
31 CONFIGURE_ENV
+= ac_cv_prog_PHP
=
32 CONFIGURE_ENV
+= ac_cv_prog_RUBY
=
33 CPPFLAGS
+= -DNO_POSTSCRIPT_ALIAS
=1
34 PKGCONFIG_OVERRIDE
+= lib
/cdt
/libcdt.
pc.in
35 PKGCONFIG_OVERRIDE
+= lib
/cgraph
/libcgraph.
pc.in
36 PKGCONFIG_OVERRIDE
+= lib
/expr
/libexpr.
pc.in
37 PKGCONFIG_OVERRIDE
+= lib
/graph
/libgraph.
pc.in
38 PKGCONFIG_OVERRIDE
+= lib
/gvc
/libgvc.
pc.in
39 PKGCONFIG_OVERRIDE
+= lib
/gvpr
/libgvpr.
pc.in
40 PKGCONFIG_OVERRIDE
+= lib
/pathplan
/libpathplan.
pc.in
41 PKGCONFIG_OVERRIDE
+= lib
/xdot
/libxdot.
pc.in
44 REPLACE_INTERPRETER
+= lua
45 REPLACE.lua.old
= .
*lua
46 REPLACE.lua.new
= ${PREFIX}/bin
/lua
47 REPLACE_FILES.lua
= tclpkg
/gv
/demo
/modgraph.lua
49 REPLACE_INTERPRETER
+= tclsh
50 REPLACE.tclsh.old
= .
*tclsh
51 REPLACE.tclsh.new
= ${PREFIX}/bin
/tclsh
52 REPLACE_FILES.tclsh
= tclpkg
/gv
/demo
/modgraph.tcl
54 REPLACE_PERL
+= config
/config_perl.pl lib
/gd
/configure.pl \
55 tclpkg
/gv
/demo
/modgraph.pl contrib
/dotmcl.pl \
56 contrib
/dirgraph
/dirgraph.pl
58 .
include "../../mk/bsd.prefs.mk"
60 .
include "../../mk/compiler.mk"
61 .if
!empty
(CC_VERSION
:Mgcc-2
*)
62 BUILDLINK_TRANSFORM
+= rm:-Wno-unused-parameter
65 # Prevent another config.status run.
67 touch
${WRKSRC}/Makefile
69 # Remove temporary files and directories created by re-linking "libgv_lua.la".
71 ${RM} -rf
${DESTDIR}${PREFIX}/lib
/graphviz
/lua
/gv.so \
72 ${DESTDIR}${PREFIX}/lib
/graphviz
/tcl
/tcl \
73 ${DESTDIR}${PREFIX}/lib
/lua
/5.1/gv.so
77 .
include "../../converters/libiconv/buildlink3.mk"
78 .
include "../../devel/gettext-lib/buildlink3.mk"
79 .
include "../../devel/libltdl/buildlink3.mk"
80 #.include "../../devel/libltdl/convenience.mk"
81 .
include "../../fonts/fontconfig/buildlink3.mk"
82 #.include "../../mk/jpeg.buildlink3.mk"
83 #.include "../../graphics/png/buildlink3.mk"
84 .
include "../../textproc/expat/buildlink3.mk"
85 .
include "../../mk/pthread.buildlink3.mk"
86 .
include "../../mk/bsd.pkg.mk"