$OpenBSD: patch-Makefile_in,v 1.14 2011/12/05 10:27:15 jasper Exp $

From acc84ac7ed78255c261c6d1d1eb3c916173ba681 Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <jasper@humppa.nl>
Date: Mon, 05 Dec 2011 10:20:57 +0000
Subject: - Fix a substitution:

use TOOL_SUBSTITUTIONS like the others, to fix an unsubstitued @datarootdir@ in g-ir-doc-tool

https://bugzilla.gnome.org/show_bug.cgi?id=659649

--- Makefile.in.orig	Tue Sep 20 23:14:47 2011
+++ Makefile.in	Mon Dec  5 11:24:02 2011
@@ -2869,7 +2869,7 @@ g-ir-annotation-tool: tools/g-ir-annotation-tool.in _g
 	@chmod a+x $@
 
 g-ir-doc-tool: tools/g-ir-doc-tool.in _giscanner.la Makefile
-	$(AM_V_GEN) sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
+	$(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
 	@chmod a+x $@
 
 check-local:
