$NetBSD: patch-bg,v 1.2 2006/06/26 17:13:11 wiz Exp $

All files in $(DESTDIR) may be marked read-only, so better use the
INSTALL_HEADER tools to overwrite them correctly.

--- include/Makefile.in.orig	2005-10-09 11:27:58.000000000 +0000
+++ include/Makefile.in
@@ -475,7 +475,8 @@ maintainer-clean-generic:
 	-rm -f Makefile.in
 
 install-data-local: install-includeHEADERS
-	sed -e '/^\/\*_x_/d' xine.h > $(DESTDIR)$(includedir)/xine.h
+	sed -e '/^\/\*_x_/d' xine.h > installed-xine.h
+	$(INSTALL_HEADER) installed-xine.h $(DESTDIR)$(includedir)/xine.h
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
