# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../isdn4k-utils/hotfixes.patch
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---

--- ./capiinfo/Makefile.in.orig	2002-07-19 23:20:34.000000000 +0200
+++ ./capiinfo/Makefile.in	2002-10-14 11:03:32.000000000 +0200
@@ -121,7 +121,7 @@
 .SUFFIXES:
 .SUFFIXES: .S .c .o .s
 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
-	cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
+	cd $(top_srcdir) && $(AUTOMAKE) -i --foreign Makefile
 
 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
 	cd $(top_builddir) \
@@ -318,7 +318,7 @@
 	top_distdir=`cd $(distdir) && pwd`; \
 	distdir=`cd $(distdir) && pwd`; \
 	cd $(top_srcdir) \
-	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
+	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir -i --foreign Makefile
 	@for file in $(DISTFILES); do \
 	  d=$(srcdir); \
 	  if test -d $$d/$$file; then \
--- ./xmonisdn/Makefile.in.orig	2002-07-19 22:30:02.000000000 +0200
+++ ./xmonisdn/Makefile.in	2002-10-14 11:03:32.000000000 +0200
@@ -65,6 +65,8 @@
 config:
 	@cp Makefile.in GNUmakefile
 	@xmkmf
+	@echo "Hacking the Makefile ..  (Clifford)"
+	@perl -pe 's,^(xmonisdn:.*),$$1\n\t\$$(MAKE) xmonisdn.man,' < Makefile > x && mv x Makefile
 
 clean:
 	$(MAKE) -f Makefile clean
--- ./capifax/Makefile.in.orig	2000-05-11 12:55:00.000000000 +0200
+++ ./capifax/Makefile.in	2002-10-14 11:03:32.000000000 +0200
@@ -124,7 +124,7 @@
 .SUFFIXES:
 .SUFFIXES: .S .c .o .s
 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
-	cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
+	cd $(top_srcdir) && $(AUTOMAKE) -i --foreign Makefile
 
 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
 	cd $(top_builddir) \
@@ -286,7 +286,7 @@
 	top_distdir=`cd $(distdir) && pwd`; \
 	distdir=`cd $(distdir) && pwd`; \
 	cd $(top_srcdir) \
-	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
+	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir -i --foreign Makefile
 	@for file in $(DISTFILES); do \
 	  d=$(srcdir); \
 	  if test -d $$d/$$file; then \
--- ./vbox/src/Makefile.in.orig	2003-11-09 17:51:06.153812824 +0100
+++ ./vbox/src/Makefile.in	2003-11-09 17:50:50.805146176 +0100
@@ -7,7 +7,7 @@
 # stuff by hand.                                                             #
 #----------------------------------------------------------------------------#
 
-NCURSES_LIBS	= @LINK_NCURSES_LIBS@
+NCURSES_LIBS	= @LINK_NCURSES_LIBS@ -lncurses
 NCURSES_HAVE    = @HAVE_NCURSES_PACK@
 
 TCL_LIBS	= @LINK_TCL_LIBS@
--- isdn4k-utils/isdnctrl/Makefile.in.orig	2002-07-19 23:23:54.000000000 +0200
+++ isdn4k-utils/isdnctrl/Makefile.in	2005-08-02 12:21:41.000000000 +0200
@@ -17,7 +17,7 @@
 INSTALL			= @INSTALL@
 INSTALL_PROGRAM	= $(INSTALL) -o 0 -g 0 -m 0750
 INSTALL_MAN		= $(INSTALL) -o 0 -g 0 -m 0644
-CC				= @CC@ -DVERSION=\"@I4LVERSION@\"
+CFLAGS			+= -DVERSION=\"@I4LVERSION@\"
 prefix			= @prefix@
 exec_prefix		= @exec_prefix@