Sun Aug 9 16:04:44 2020 UTC ()
graphics/graphviz: fix build with BSD make

BSD make does not know the $< variable in explicit rules, it only knows
it for inference rules like ".c.o".  This resulted in $< expanding to an
empty string, which in turn got the build stuck because it tried to read
from stdin.  But not in parallel mode, where stdin was redirected to an
empty file, resulting in an empty PostScript file being installed.

Fixes PR pkg/55539.


(rillig)
diff -r1.217 -r1.218 pkgsrc/graphics/graphviz/Makefile

cvs diff -r1.217 -r1.218 pkgsrc/graphics/graphviz/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/graphviz/Makefile 2020/08/03 22:38:22 1.217
+++ pkgsrc/graphics/graphviz/Makefile 2020/08/09 16:04:44 1.218
@@ -1,34 +1,37 @@ @@ -1,34 +1,37 @@
1# $NetBSD: Makefile,v 1.217 2020/08/03 22:38:22 tnn Exp $ 1# $NetBSD: Makefile,v 1.218 2020/08/09 16:04:44 rillig Exp $
2 2
3DISTNAME= graphviz-2.44.1 3DISTNAME= graphviz-2.44.1
4CATEGORIES= graphics 4CATEGORIES= graphics
5MASTER_SITES= https://www2.graphviz.org/Packages/stable/portable_source/ 5MASTER_SITES= https://www2.graphviz.org/Packages/stable/portable_source/
6 6
7MAINTAINER= sno@NetBSD.org 7MAINTAINER= sno@NetBSD.org
8HOMEPAGE= https://www.graphviz.org/ 8HOMEPAGE= https://www.graphviz.org/
9COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs 9COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs
10LICENSE= epl-v1.0 10LICENSE= epl-v1.0
11 11
12TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript 12TOOL_DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript
13 13
14CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6 14CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6
15CHECK_PORTABILITY_SKIP+= windows/* 15CHECK_PORTABILITY_SKIP+= windows/*
16 16
17PRIVILEGED_STAGES+= clean 17PRIVILEGED_STAGES+= clean
18 18
19USE_LANGUAGES= c c++ 19USE_LANGUAGES= c c++
20USE_LIBTOOL= yes 20USE_LIBTOOL= yes
21USE_TOOLS+= automake bison flex groff pkg-config 21USE_TOOLS+= automake bison flex groff pkg-config
 22# GNU make is needed since BSD Make does not know $< in explicit rules,
 23# such as used by lib/cdt/Makefile.am.
 24USE_TOOLS+= gmake
22GNU_CONFIGURE= yes 25GNU_CONFIGURE= yes
23GNU_CONFIGURE_STRICT= no # has sub-configures 26GNU_CONFIGURE_STRICT= no # has sub-configures
24CONFIGURE_ARGS+= --disable-java 27CONFIGURE_ARGS+= --disable-java
25CONFIGURE_ARGS+= --disable-php 28CONFIGURE_ARGS+= --disable-php
26CONFIGURE_ARGS+= --disable-python 29CONFIGURE_ARGS+= --disable-python
27CONFIGURE_ARGS+= --disable-python2 30CONFIGURE_ARGS+= --disable-python2
28CONFIGURE_ARGS+= --disable-python3 31CONFIGURE_ARGS+= --disable-python3
29CONFIGURE_ARGS+= --disable-r 32CONFIGURE_ARGS+= --disable-r
30CONFIGURE_ARGS+= --disable-ruby 33CONFIGURE_ARGS+= --disable-ruby
31CONFIGURE_ARGS+= --disable-sharp 34CONFIGURE_ARGS+= --disable-sharp
32CONFIGURE_ARGS+= --enable-ltdl 35CONFIGURE_ARGS+= --enable-ltdl
33CONFIGURE_ARGS+= --without-qt 36CONFIGURE_ARGS+= --without-qt
34# build fails when PHP and/or Ruby are also installed 37# build fails when PHP and/or Ruby are also installed