Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / graphviz / Makefile
blob7e4f08c0277142468fd96221e5027b77a3da1e85
1 # $NetBSD: Makefile,v 1.115 2013/04/09 05:50:39 dholland Exp $
3 DISTNAME= graphviz-2.26.3
4 PKGREVISION= 23
5 CATEGORIES= graphics
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
11 LICENSE= cpl-1.0
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
15 CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6
17 PRIVILEGED_STAGES+= clean
19 USE_LANGUAGES= c c++
20 USE_LIBTOOL= yes
21 USE_TOOLS+= automake bison pkg-config
22 GNU_CONFIGURE= yes
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
42 XAW_TYPE= standard
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
63 .endif
65 # Prevent another config.status run.
66 pre-build:
67 touch ${WRKSRC}/Makefile
69 # Remove temporary files and directories created by re-linking "libgv_lua.la".
70 post-install:
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
75 .include "options.mk"
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"