OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
4.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lprng/no_multiline_in_makefile.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. I don't understand it but this makefile doesn't support multiline
  17. shell commands, so i merged them.
  18. --- ./Makefile.in.orig 2004-09-24 16:19:52.000000000 -0400
  19. +++ ./Makefile.in 2006-09-28 06:12:31.000000000 -0400
  20. @@ -92,23 +92,13 @@
  21. @echo "MANDIR=$(mandir)" >>$@
  22. ./postinstall: $(SCRIPTS) Makefile
  23. - OSNAME=@OSNAME@; case "@OSNAME@" in \
  24. - *linux* ) OSNAME=linux;; \
  25. - *freebsd* ) OSNAME=freebsd;; \
  26. - *solaris* ) OSNAME=solaris;; \
  27. - esac; \
  28. - if test -f postinstall.$${OSNAME} ; then s=postinstall.$${OSNAME} ; else s=postinstall.generic; fi; \
  29. - echo POSTINSTALL "'$$s'"; cp $$s postinstall;
  30. + OSNAME=@OSNAME@; case "@OSNAME@" in *linux* ) OSNAME=linux;; *freebsd* ) OSNAME=freebsd;; *solaris* ) OSNAME=solaris;; esac; if test -f postinstall.$${OSNAME} ; then s=postinstall.$${OSNAME} ; else s=postinstall.generic; fi; echo POSTINSTALL "'$$s'"; cp $$s postinstall;
  31. ./preremove: $(SCRIPTS) Makefile
  32. - OSNAME=@OSNAME@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; \
  33. - if test -f preremove.$${OSNAME} ; then s=preremove.$${OSNAME} ; else s=preremove.generic; fi; \
  34. - echo PREREMOVE "'$$s'"; cp $$s preremove;
  35. + OSNAME=@OSNAME@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; if test -f preremove.$${OSNAME} ; then s=preremove.$${OSNAME} ; else s=preremove.generic; fi; echo PREREMOVE "'$$s'"; cp $$s preremove;
  36. ./postremove: $(SCRIPTS) Makefile
  37. - OSNAME=@OSNAME@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; \
  38. - if test -f postremove.$${OSNAME} ; then s=postremove.$${OSNAME} ; else s=postremove.generic; fi; \
  39. - echo POSTREMOVE "'$$s'"; cp $$s postremove;
  40. + OSNAME=@OSNAME@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; if test -f postremove.$${OSNAME} ; then s=postremove.$${OSNAME} ; else s=postremove.generic; fi; echo POSTREMOVE "'$$s'"; cp $$s postremove;
  41. # define default target
  42. .PHONY: all warn TAGS clean uninstall install info dvi check \
  43. @@ -118,20 +108,8 @@
  44. ###############################################################################
  45. $(ALLDIRS):
  46. - if [ "$@" = po ] ; then \
  47. - for i in po/Makefile* ; do \
  48. - if [ -f "$$i" ] ; then \
  49. - if grep '^mkinstalldirs.*=.*case' $$i ; then \
  50. - echo "fixing broken $$i which causes wrong path to mkinstalldirs to be used"; \
  51. - perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$$(SHELL) \$$(MKINSTALLDIRS):' $$i; \
  52. - fi \
  53. - fi \
  54. - done \
  55. - fi
  56. - if [ "$@" != po -o "$(USE_NLS)" != "no" ] ; then \
  57. - cd $@; $(MAKE) localedir=${LOCALEDIR} \
  58. - DESTDIR=$(DESTDIR) $(MAKETARGET) ; \
  59. - fi
  60. + if [ "$@" = po ] ; then for i in po/Makefile* ; do if [ -f "$$i" ] ; then if grep '^mkinstalldirs.*=.*case' $$i ; then echo "fixing broken $$i which causes wrong path to mkinstalldirs to be used"; perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$$(SHELL) \$$(MKINSTALLDIRS):' $$i; fi fi done fi
  61. + if [ "$@" != po -o "$(USE_NLS)" != "no" ] ; then cd $@; $(MAKE) localedir=${LOCALEDIR} DESTDIR=$(DESTDIR) $(MAKETARGET) ; fi
  62. TAGS clean::
  63. -$(MAKE) MAKETARGET=$@ DESTDIR=$(DESTDIR) $(DIRS)
  64. @@ -143,9 +121,7 @@
  65. install: all
  66. $(MAKE) MAKETARGET=$@ DESTDIR=$(DESTDIR) $(INSTALLDIRS)
  67. - if [ "${POSTINSTALL}" != "NO" -a "${POSTINSTALL}" != "no" ] ; then \
  68. - MAKEINSTALL=YES DESTDIR=$(DESTDIR) $(SHELL) postinstall ; \
  69. - fi;
  70. + if [ "${POSTINSTALL}" != "NO" -a "${POSTINSTALL}" != "no" ] ; then MAKEINSTALL=YES DESTDIR=$(DESTDIR) $(SHELL) postinstall ; fi;
  71. @echo "";
  72. info dvi check: