| @@ -1,85 +1,85 @@ | | | @@ -1,85 +1,85 @@ |
1 | # $NetBSD: Makefile,v 1.83 2010/08/31 18:18:38 drochner Exp $ | | 1 | # $NetBSD: Makefile,v 1.84 2010/08/31 18:24:11 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= graphviz-2.24.0 | | 3 | DISTNAME= graphviz-2.24.0 |
4 | PKGREVISION= 5 | | 4 | PKGREVISION= 6 |
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 | |
18 | PRIVILEGED_STAGES+= clean | | 18 | PRIVILEGED_STAGES+= clean |
19 | | | 19 | |
20 | USE_LANGUAGES= c c++ | | 20 | USE_LANGUAGES= c c++ |
21 | USE_LIBTOOL= yes | | 21 | USE_LIBTOOL= yes |
22 | USE_TOOLS+= bison pkg-config | | 22 | USE_TOOLS+= bison pkg-config |
23 | GNU_CONFIGURE= yes | | 23 | GNU_CONFIGURE= yes |
24 | CONFIGURE_ARGS+= --disable-java | | 24 | CONFIGURE_ARGS+= --disable-java |
25 | CONFIGURE_ARGS+= --disable-php | | 25 | CONFIGURE_ARGS+= --disable-php |
26 | CONFIGURE_ARGS+= --disable-python | | 26 | CONFIGURE_ARGS+= --disable-python |
27 | CONFIGURE_ARGS+= --disable-ruby | | 27 | CONFIGURE_ARGS+= --disable-ruby |
28 | CONFIGURE_ARGS+= --disable-sharp | | 28 | CONFIGURE_ARGS+= --disable-sharp |
29 | # build fails when PHP and/or Ruby are also installed | | 29 | # build fails when PHP and/or Ruby are also installed |
30 | CONFIGURE_ENV+= ac_cv_prog_PHP= | | 30 | CONFIGURE_ENV+= ac_cv_prog_PHP= |
31 | CONFIGURE_ENV+= ac_cv_prog_RUBY= | | 31 | CONFIGURE_ENV+= ac_cv_prog_RUBY= |
32 | CPPFLAGS+= -DNO_POSTSCRIPT_ALIAS=1 | | 32 | CPPFLAGS+= -DNO_POSTSCRIPT_ALIAS=1 |
33 | PKGCONFIG_OVERRIDE= lib/agraph/libagraph.pc.in | | 33 | PKGCONFIG_OVERRIDE= lib/agraph/libagraph.pc.in |
34 | PKGCONFIG_OVERRIDE+= lib/cdt/libcdt.pc.in | | 34 | PKGCONFIG_OVERRIDE+= lib/cdt/libcdt.pc.in |
35 | PKGCONFIG_OVERRIDE+= lib/cgraph/libcgraph.pc.in | | 35 | PKGCONFIG_OVERRIDE+= lib/cgraph/libcgraph.pc.in |
36 | PKGCONFIG_OVERRIDE+= lib/expr/libexpr.pc.in | | 36 | PKGCONFIG_OVERRIDE+= lib/expr/libexpr.pc.in |
37 | PKGCONFIG_OVERRIDE+= lib/graph/libgraph.pc.in | | 37 | PKGCONFIG_OVERRIDE+= lib/graph/libgraph.pc.in |
38 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc.pc.in | | 38 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc.pc.in |
39 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc_builtins.pc.in | | 39 | PKGCONFIG_OVERRIDE+= lib/gvc/libgvc_builtins.pc.in |
40 | PKGCONFIG_OVERRIDE+= lib/pathplan/libpathplan.pc.in | | 40 | PKGCONFIG_OVERRIDE+= lib/pathplan/libpathplan.pc.in |
41 | XAW_TYPE= standard | | 41 | XAW_TYPE= standard |
42 | | | 42 | |
43 | REPLACE_INTERPRETER+= lua | | 43 | REPLACE_INTERPRETER+= lua |
44 | REPLACE.lua.old= .*lua | | 44 | REPLACE.lua.old= .*lua |
45 | REPLACE.lua.new= ${PREFIX}/bin/lua | | 45 | REPLACE.lua.new= ${PREFIX}/bin/lua |
46 | REPLACE_FILES.lua= tclpkg/gv/demo/modgraph.lua | | 46 | REPLACE_FILES.lua= tclpkg/gv/demo/modgraph.lua |
47 | | | 47 | |
48 | REPLACE_INTERPRETER+= tclsh | | 48 | REPLACE_INTERPRETER+= tclsh |
49 | REPLACE.tclsh.old= .*tclsh | | 49 | REPLACE.tclsh.old= .*tclsh |
50 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh | | 50 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh |
51 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl | | 51 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl |
52 | | | 52 | |
53 | REPLACE_PERL+= config/config_perl.pl lib/gd/configure.pl \ | | 53 | REPLACE_PERL+= config/config_perl.pl lib/gd/configure.pl \ |
54 | tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ | | 54 | tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ |
55 | contrib/dirgraph/dirgraph.pl | | 55 | contrib/dirgraph/dirgraph.pl |
56 | | | 56 | |
57 | .include "../../mk/bsd.prefs.mk" | | 57 | .include "../../mk/bsd.prefs.mk" |
58 | | | 58 | |
59 | .include "../../mk/compiler.mk" | | 59 | .include "../../mk/compiler.mk" |
60 | .if !empty(CC_VERSION:Mgcc-2*) | | 60 | .if !empty(CC_VERSION:Mgcc-2*) |
61 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter | | 61 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter |
62 | .endif | | 62 | .endif |
63 | | | 63 | |
64 | # Prevent another config.status run. | | 64 | # Prevent another config.status run. |
65 | pre-build: | | 65 | pre-build: |
66 | touch ${WRKSRC}/Makefile | | 66 | touch ${WRKSRC}/Makefile |
67 | | | 67 | |
68 | # Remove temporary files and directories created by re-linking "libgv_lua.la". | | 68 | # Remove temporary files and directories created by re-linking "libgv_lua.la". |
69 | post-install: | | 69 | post-install: |
70 | ${RM} -rf ${DESTDIR}${PREFIX}/lib/graphviz/lua/gv.so \ | | 70 | ${RM} -rf ${DESTDIR}${PREFIX}/lib/graphviz/lua/gv.so \ |
71 | ${DESTDIR}${PREFIX}/lib/graphviz/tcl/tcl \ | | 71 | ${DESTDIR}${PREFIX}/lib/graphviz/tcl/tcl \ |
72 | ${DESTDIR}${PREFIX}/lib/lua/5.1/gv.so | | 72 | ${DESTDIR}${PREFIX}/lib/lua/5.1/gv.so |
73 | | | 73 | |
74 | .include "options.mk" | | 74 | .include "options.mk" |
75 | | | 75 | |
76 | .include "../../converters/libiconv/buildlink3.mk" | | 76 | .include "../../converters/libiconv/buildlink3.mk" |
77 | .include "../../devel/gettext-lib/buildlink3.mk" | | 77 | .include "../../devel/gettext-lib/buildlink3.mk" |
78 | .include "../../devel/libltdl/buildlink3.mk" | | 78 | .include "../../devel/libltdl/buildlink3.mk" |
79 | #.include "../../devel/libltdl/convenience.mk" | | 79 | #.include "../../devel/libltdl/convenience.mk" |
80 | .include "../../fonts/fontconfig/buildlink3.mk" | | 80 | .include "../../fonts/fontconfig/buildlink3.mk" |
81 | #.include "../../graphics/jpeg/buildlink3.mk" | | 81 | #.include "../../graphics/jpeg/buildlink3.mk" |
82 | #.include "../../graphics/png/buildlink3.mk" | | 82 | #.include "../../graphics/png/buildlink3.mk" |
83 | .include "../../textproc/expat/buildlink3.mk" | | 83 | .include "../../textproc/expat/buildlink3.mk" |
84 | .include "../../mk/pthread.buildlink3.mk" | | 84 | .include "../../mk/pthread.buildlink3.mk" |
85 | .include "../../mk/bsd.pkg.mk" | | 85 | .include "../../mk/bsd.pkg.mk" |