diff options
author | triaxx <triaxx@pkgsrc.org> | 2020-11-01 13:36:36 +0000 |
---|---|---|
committer | triaxx <triaxx@pkgsrc.org> | 2020-11-01 13:36:36 +0000 |
commit | 497d415be3e1a68c02aa1d905d775aec9de9abec (patch) | |
tree | 1999f14f43fb8b3ac326899ef9eb33bcd454dd8b /graphics/graphviz | |
parent | dcad86a6bf9f68a70a4e8743169de693aac3fed7 (diff) | |
download | pkgsrc-497d415be3e1a68c02aa1d905d775aec9de9abec.tar.gz |
graphviz: fix build error on FreeBSD
pkgsrc changes:
---------------
* The fix comes from the FreeBSD port. It does not seem to be necessary
to report the problem upstream because the incriminated file
(sfclrlock.c) no longer exists in their master branch.
Diffstat (limited to 'graphics/graphviz')
-rw-r--r-- | graphics/graphviz/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile index b2293707b60..95640a25e23 100644 --- a/graphics/graphviz/Makefile +++ b/graphics/graphviz/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.222 2020/09/02 03:23:10 gutteridge Exp $ +# $NetBSD: Makefile,v 1.223 2020/11/01 13:36:36 triaxx Exp $ DISTNAME= graphviz-2.44.1 PKGREVISION= 3 @@ -37,6 +37,7 @@ CONFIGURE_ARGS+= --without-qt CONFIGURE_ENV+= ac_cv_prog_PHP= CONFIGURE_ENV+= ac_cv_prog_RUBY= CPPFLAGS+= -DNO_POSTSCRIPT_ALIAS=1 + PKGCONFIG_OVERRIDE+= lib/cdt/libcdt.pc.in PKGCONFIG_OVERRIDE+= lib/cgraph/libcgraph.pc.in PKGCONFIG_OVERRIDE+= lib/edgepaint/liblab_gamut.pc.in @@ -62,11 +63,22 @@ REPLACE_FILES.tclsh= tclpkg/gv/demo/modgraph.tcl REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ contrib/dirgraph/dirgraph.pl +.include "../../mk/bsd.prefs.mk" + .include "../../mk/compiler.mk" .if !empty(CC_VERSION:Mgcc-2*) BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter .endif +.if ${OPSYS} == "FreeBSD" +SUBST_CLASSES+= sfflags +SUBST_STAGE.sfflags= pre-configure +SUBST_MESSAGE.sfflags= Fixing SF_FLAGS identifier for FreeBSD. +SUBST_FILES.sfflags= lib/sfio/sfclrlock.c lib/sfio/sfio_t.h lib/sfio/sfio.h +SUBST_FILES.sfflags+= lib/sfio/sfnew.c lib/sfio/sfopen.c lib/sfio/sfset.c +SUBST_SED.sfflags= -e 's|SF_FLAGS|SFIO_FLAGS|g' +.endif + # Prevent another config.status run. pre-build: touch ${WRKSRC}/Makefile ${WRKSRC}/graphviz_version.h |