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.

125 lines
4.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../bzip2/makefile.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./Makefile.orig Sat Jan 26 00:34:53 2002
  18. +++ ./Makefile Wed Apr 3 01:35:16 2002
  19. @@ -12,8 +12,8 @@
  20. CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
  21. # Where you want it installed when you do 'make install'
  22. -PREFIX=/usr
  23. -
  24. +PREFIX=/
  25. +USRPREFIX=/usr
  26. OBJS= blocksort.o \
  27. huffman.o \
  28. @@ -23,7 +23,7 @@
  29. decompress.o \
  30. bzlib.o
  31. -all: libbz2.a bzip2 bzip2recover test
  32. +all: libbz2.a bzip2 bzip2recover
  33. bzip2: libbz2.a bzip2.o
  34. $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
  35. @@ -34,11 +34,7 @@
  36. libbz2.a: $(OBJS)
  37. rm -f libbz2.a
  38. $(AR) cq libbz2.a $(OBJS)
  39. - @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
  40. - -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
  41. - echo $(RANLIB) libbz2.a ; \
  42. - $(RANLIB) libbz2.a ; \
  43. - fi
  44. + $(RANLIB) libbz2.a
  45. check: test
  46. test: bzip2
  47. @@ -59,42 +55,42 @@
  48. install: bzip2 bzip2recover
  49. if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
  50. - if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
  51. - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
  52. - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
  53. - if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
  54. + if ( test ! -d $(USRPREFIX)/lib ) ; then mkdir -p $(USRPREFIX)/lib ; fi
  55. + if ( test ! -d $(USRPREFIX)/man ) ; then mkdir -p $(USRPREFIX)/man ; fi
  56. + if ( test ! -d $(USRPREFIX)/man/man1 ) ; then mkdir -p $(USRPREFIX)/man/man1 ; fi
  57. + if ( test ! -d $(USRPREFIX)/include ) ; then mkdir -p $(USRPREFIX)/include ; fi
  58. cp -f bzip2 $(PREFIX)/bin/bzip2
  59. cp -f bzip2 $(PREFIX)/bin/bunzip2
  60. cp -f bzip2 $(PREFIX)/bin/bzcat
  61. - cp -f bzip2recover $(PREFIX)/bin/bzip2recover
  62. + cp -f bzip2recover $(USRPREFIX)/bin/bzip2recover
  63. chmod a+x $(PREFIX)/bin/bzip2
  64. chmod a+x $(PREFIX)/bin/bunzip2
  65. chmod a+x $(PREFIX)/bin/bzcat
  66. - chmod a+x $(PREFIX)/bin/bzip2recover
  67. - cp -f bzip2.1 $(PREFIX)/man/man1
  68. - chmod a+r $(PREFIX)/man/man1/bzip2.1
  69. - cp -f bzlib.h $(PREFIX)/include
  70. - chmod a+r $(PREFIX)/include/bzlib.h
  71. - cp -f libbz2.a $(PREFIX)/lib
  72. - chmod a+r $(PREFIX)/lib/libbz2.a
  73. - cp -f bzgrep $(PREFIX)/bin/bzgrep
  74. - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
  75. - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
  76. - chmod a+x $(PREFIX)/bin/bzgrep
  77. - cp -f bzmore $(PREFIX)/bin/bzmore
  78. - ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
  79. - chmod a+x $(PREFIX)/bin/bzmore
  80. - cp -f bzdiff $(PREFIX)/bin/bzdiff
  81. - ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
  82. - chmod a+x $(PREFIX)/bin/bzdiff
  83. - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
  84. - chmod a+r $(PREFIX)/man/man1/bzgrep.1
  85. - chmod a+r $(PREFIX)/man/man1/bzmore.1
  86. - chmod a+r $(PREFIX)/man/man1/bzdiff.1
  87. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
  88. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
  89. - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
  90. - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
  91. + chmod a+x $(USRPREFIX)/bin/bzip2recover
  92. + cp -f bzip2.1 $(USRPREFIX)/man/man1
  93. + chmod a+r $(USRPREFIX)/man/man1/bzip2.1
  94. + cp -f bzlib.h $(USRPREFIX)/include
  95. + chmod a+r $(USRPREFIX)/include/bzlib.h
  96. + cp -f libbz2.a $(USRPREFIX)/lib
  97. + chmod a+r $(USRPREFIX)/lib/libbz2.a
  98. + cp -f bzgrep $(USRPREFIX)/bin/bzgrep
  99. + ln -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzegrep
  100. + ln -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzfgrep
  101. + chmod a+x $(USRPREFIX)/bin/bzgrep
  102. + cp -f bzmore $(USRPREFIX)/bin/bzmore
  103. + ln -f $(USRPREFIX)/bin/bzmore $(USRPREFIX)/bin/bzless
  104. + chmod a+x $(USRPREFIX)/bin/bzmore
  105. + cp -f bzdiff $(USRPREFIX)/bin/bzdiff
  106. + ln -f $(USRPREFIX)/bin/bzdiff $(USRPREFIX)/bin/bzcmp
  107. + chmod a+x $(USRPREFIX)/bin/bzdiff
  108. + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(USRPREFIX)/man/man1
  109. + chmod a+r $(USRPREFIX)/man/man1/bzgrep.1
  110. + chmod a+r $(USRPREFIX)/man/man1/bzmore.1
  111. + chmod a+r $(USRPREFIX)/man/man1/bzdiff.1
  112. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzegrep.1
  113. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzfgrep.1
  114. + echo ".so man1/bzmore.1" > $(USRPREFIX)/man/man1/bzless.1
  115. + echo ".so man1/bzdiff.1" > $(USRPREFIX)/man/man1/bzcmp.1
  116. distclean: clean
  117. clean: