$NetBSD: patch-bg,v 1.3 2006/12/08 09:24:26 abs 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	2006-12-03 19:40:23.000000000 +0000
+++ include/Makefile.in
@@ -736,7 +736,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
 @GENERATED_INTTYPES_H_TRUE@	$(INSTALL) inttypes.h $(DESTDIR)$(includedir)
 # 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.
