| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.241 2021/12/08 16:04:56 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.242 2021/12/29 12:10:32 he Exp $ |
2 | | | 2 | |
3 | DISTNAME= graphviz-2.49.3 | | 3 | DISTNAME= graphviz-2.49.3 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= graphics | | 5 | CATEGORIES= graphics |
6 | MASTER_SITES= https://gitlab.com/graphviz/graphviz/-/archive/${PKGVERSION_NOREV}/ | | 6 | MASTER_SITES= https://gitlab.com/graphviz/graphviz/-/archive/${PKGVERSION_NOREV}/ |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= sno@NetBSD.org | | 9 | MAINTAINER= sno@NetBSD.org |
10 | HOMEPAGE= https://www.graphviz.org/ | | 10 | HOMEPAGE= https://www.graphviz.org/ |
11 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs | | 11 | COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs |
12 | LICENSE= epl-v1.0 | | 12 | LICENSE= epl-v1.0 |
13 | | | 13 | |
14 | TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript | | 14 | TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript |
15 | | | 15 | |
16 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 | | 16 | CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 |
17 | CHECK_PORTABILITY_SKIP+= windows/* | | 17 | CHECK_PORTABILITY_SKIP+= windows/* |
| @@ -92,26 +92,33 @@ REPLACE.tclsh.old= .*tclsh | | | @@ -92,26 +92,33 @@ REPLACE.tclsh.old= .*tclsh |
92 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh | | 92 | REPLACE.tclsh.new= ${PREFIX}/bin/tclsh |
93 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl | | 93 | REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl |
94 | | | 94 | |
95 | REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ | | 95 | REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ |
96 | contrib/dirgraph/dirgraph.pl | | 96 | contrib/dirgraph/dirgraph.pl |
97 | | | 97 | |
98 | .include "../../mk/bsd.prefs.mk" | | 98 | .include "../../mk/bsd.prefs.mk" |
99 | | | 99 | |
100 | .include "../../mk/compiler.mk" | | 100 | .include "../../mk/compiler.mk" |
101 | .if !empty(CC_VERSION:Mgcc-2*) | | 101 | .if !empty(CC_VERSION:Mgcc-2*) |
102 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter | | 102 | BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter |
103 | .endif | | 103 | .endif |
104 | | | 104 | |
| | | 105 | .if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc") |
| | | 106 | # Forces link with -lgomp directly instead of via dlopen() |
| | | 107 | # so we don't overflow thread-local storage in ld.elf_so |
| | | 108 | CFLAGS+= -fopenmp |
| | | 109 | CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" |
| | | 110 | .endif |
| | | 111 | |
105 | .if ${OPSYS} == "FreeBSD" | | 112 | .if ${OPSYS} == "FreeBSD" |
106 | SUBST_CLASSES+= sfflags | | 113 | SUBST_CLASSES+= sfflags |
107 | SUBST_STAGE.sfflags= pre-configure | | 114 | SUBST_STAGE.sfflags= pre-configure |
108 | SUBST_MESSAGE.sfflags= Fixing SF_FLAGS identifier for FreeBSD. | | 115 | SUBST_MESSAGE.sfflags= Fixing SF_FLAGS identifier for FreeBSD. |
109 | SUBST_FILES.sfflags= lib/sfio/sfclrlock.c lib/sfio/sfio_t.h lib/sfio/sfio.h | | 116 | SUBST_FILES.sfflags= lib/sfio/sfclrlock.c lib/sfio/sfio_t.h lib/sfio/sfio.h |
110 | SUBST_FILES.sfflags+= lib/sfio/sfnew.c lib/sfio/sfopen.c lib/sfio/sfset.c | | 117 | SUBST_FILES.sfflags+= lib/sfio/sfnew.c lib/sfio/sfopen.c lib/sfio/sfset.c |
111 | SUBST_SED.sfflags= -e 's|SF_FLAGS|SFIO_FLAGS|g' | | 118 | SUBST_SED.sfflags= -e 's|SF_FLAGS|SFIO_FLAGS|g' |
112 | .endif | | 119 | .endif |
113 | | | 120 | |
114 | pre-configure: | | 121 | pre-configure: |
115 | cd ${WRKSRC} && autoreconf -fiv | | 122 | cd ${WRKSRC} && autoreconf -fiv |
116 | | | 123 | |
117 | # Remove temporary files and directories created by re-linking "libgv_lua.la". | | 124 | # Remove temporary files and directories created by re-linking "libgv_lua.la". |