Mon Oct 23 10:11:21 2017 UTC ()
orc: Fix installation if gtk-doc package is already installed

By default orc is configured with `--disable-gtk-doc'. However, despite that,
it will checks several `gtkdoc-*' tools anyway, ending in a failure during the
installation phase because only a couple of them are available.

Add a kludge via CONFIGURE_ENV to avoid picking up gtkdoc-* tools.

Pointed out by <martin> via PR pkg/52632.


(leot)
diff -r1.11 -r1.12 pkgsrc/devel/orc/Makefile

cvs diff -r1.11 -r1.12 pkgsrc/devel/orc/Makefile (expand / switch to context diff)
--- pkgsrc/devel/orc/Makefile 2017/07/20 13:18:42 1.11
+++ pkgsrc/devel/orc/Makefile 2017/10/23 10:11:21 1.12
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2017/07/20 13:18:42 adam Exp $
+# $NetBSD: Makefile,v 1.12 2017/10/23 10:11:21 leot Exp $
 
 DISTNAME=	orc-0.4.27
 CATEGORIES=	devel
@@ -14,7 +14,16 @@
 USE_TOOLS=		gmake
 GNU_CONFIGURE=		yes
 PKGCONFIG_OVERRIDE+=	orc.pc.in
+
+# XXX: Kludge to avoid uncoditionally pick up some gtkdoc-* tools if gtk-doc
+# XXX: package is installed and then fails in the installation phase.
+CONFIGURE_ENV+=		ac_cv_prog_GTKDOC_CHECK= \
+			ac_cv_path_GTKDOC_CHECK_PATH= \
+			ac_cv_path_GTKDOC_REBASE= \
+			ac_cv_path_GTKDOC_MKPDF=
+
 TEST_TARGET=		check
+
 
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"