File 12_sh4_build_fix.patch of Package mpqc

Index: mpqc-2.3.1/configure
===================================================================
--- mpqc-2.3.1.orig/configure
+++ mpqc-2.3.1/configure
@@ -4312,7 +4312,7 @@ fi
 
           ;;
           # Ignore these flags.
-        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
+        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -little | -LANG:=*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
Index: mpqc-2.3.1/doc/Makefile
===================================================================
--- mpqc-2.3.1.orig/doc/Makefile
+++ mpqc-2.3.1/doc/Makefile
@@ -15,7 +15,7 @@ MAN_SED_PAGE = (sed s.*/..)
 # all the documentation is stuck into a single man page.  The opening
 # comment is also removed, because all the pages have to be combined into a
 # single comment to suit doxygen.
-MAN_SED_SEC = (sed 's.^*/.\<br\>.' | sed 's+\\subsection+\\subsubsection+'| sed 's+\\section+\\subsection+' | sed 's+/\**.*\\page+\\section+')
+MAN_SED_SEC = (sed 's.^*/.\<br\>.' | sed 's@\\subsection@\\subsubsection@'| sed 's@\\section@\\subsection@' | sed 's@/\**.*\\page@\\section@')
 
 # This makes the bullets into an 'o', which looks better in the text man pages.
 NROFF_SED = sed 's/\\(bu/o/'
@@ -89,6 +89,6 @@ install_samples:
 		$(installroot)$(prefix)/share/doc/packages/mpqc/examples/mp2
 	$(INSTALL) $(INSTALLLIBOPT) $(SRCDIR)/devsamp/mp2.in \
 		$(installroot)$(prefix)/share/doc/packages/mpqc/examples/mp2
-	sed "s+/usr/local/mpqc/current+$(prefix)+" < \
+	sed "s@/usr/local/mpqc/current@$(prefix)@" < \
 		$(SRCDIR)/devsamp/Makefile \
 		> $(installroot)$(prefix)/share/doc/packages/mpqc/examples/mp2/Makefile
Index: mpqc-2.3.1/src/bin/mpqc/Makefile
===================================================================
--- mpqc-2.3.1.orig/src/bin/mpqc/Makefile
+++ mpqc-2.3.1/src/bin/mpqc/Makefile
@@ -99,7 +99,7 @@ install:: mpqc
 
 install::
 	/bin/rm -f $(installroot)$(bindir)/chkmpqcout
-	sed "s+exec perl+exec perl -I$(scdatadir)/perl+" \
+	sed "s@exec perl@exec perl -I$(scdatadir)/perl@" \
 		< $(SRCDIR)/validate/checkout.pl \
 		> $(installroot)$(bindir)/chkmpqcout
 	chmod 555 $(installroot)$(bindir)/chkmpqcout
openSUSE Build Service is sponsored by