mirror of the now-defunct rocklinux.org
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.

127 lines
4.9 KiB

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