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.

130 lines
5.0 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./Makefile.orig Sat Jan 26 00:34:53 2002
  23. +++ ./Makefile Wed Apr 3 01:35:16 2002
  24. @@ -12,8 +12,8 @@
  25. CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
  26. # Where you want it installed when you do 'make install'
  27. -PREFIX=/usr
  28. -
  29. +PREFIX=/
  30. +USRPREFIX=/usr
  31. OBJS= blocksort.o \
  32. huffman.o \
  33. @@ -23,7 +23,7 @@
  34. decompress.o \
  35. bzlib.o
  36. -all: libbz2.a bzip2 bzip2recover test
  37. +all: libbz2.a bzip2 bzip2recover
  38. bzip2: libbz2.a bzip2.o
  39. $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
  40. @@ -34,11 +34,7 @@
  41. libbz2.a: $(OBJS)
  42. rm -f libbz2.a
  43. $(AR) cq libbz2.a $(OBJS)
  44. - @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
  45. - -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
  46. - echo $(RANLIB) libbz2.a ; \
  47. - $(RANLIB) libbz2.a ; \
  48. - fi
  49. + $(RANLIB) libbz2.a
  50. check: test
  51. test: bzip2
  52. @@ -59,42 +55,42 @@
  53. install: bzip2 bzip2recover
  54. if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
  55. - if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
  56. - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
  57. - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
  58. - if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
  59. + if ( test ! -d $(USRPREFIX)/lib ) ; then mkdir -p $(USRPREFIX)/lib ; fi
  60. + if ( test ! -d $(USRPREFIX)/man ) ; then mkdir -p $(USRPREFIX)/man ; fi
  61. + if ( test ! -d $(USRPREFIX)/man/man1 ) ; then mkdir -p $(USRPREFIX)/man/man1 ; fi
  62. + if ( test ! -d $(USRPREFIX)/include ) ; then mkdir -p $(USRPREFIX)/include ; fi
  63. cp -f bzip2 $(PREFIX)/bin/bzip2
  64. cp -f bzip2 $(PREFIX)/bin/bunzip2
  65. cp -f bzip2 $(PREFIX)/bin/bzcat
  66. - cp -f bzip2recover $(PREFIX)/bin/bzip2recover
  67. + cp -f bzip2recover $(USRPREFIX)/bin/bzip2recover
  68. chmod a+x $(PREFIX)/bin/bzip2
  69. chmod a+x $(PREFIX)/bin/bunzip2
  70. chmod a+x $(PREFIX)/bin/bzcat
  71. - chmod a+x $(PREFIX)/bin/bzip2recover
  72. - cp -f bzip2.1 $(PREFIX)/man/man1
  73. - chmod a+r $(PREFIX)/man/man1/bzip2.1
  74. - cp -f bzlib.h $(PREFIX)/include
  75. - chmod a+r $(PREFIX)/include/bzlib.h
  76. - cp -f libbz2.a $(PREFIX)/lib
  77. - chmod a+r $(PREFIX)/lib/libbz2.a
  78. - cp -f bzgrep $(PREFIX)/bin/bzgrep
  79. - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
  80. - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
  81. - chmod a+x $(PREFIX)/bin/bzgrep
  82. - cp -f bzmore $(PREFIX)/bin/bzmore
  83. - ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
  84. - chmod a+x $(PREFIX)/bin/bzmore
  85. - cp -f bzdiff $(PREFIX)/bin/bzdiff
  86. - ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
  87. - chmod a+x $(PREFIX)/bin/bzdiff
  88. - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
  89. - chmod a+r $(PREFIX)/man/man1/bzgrep.1
  90. - chmod a+r $(PREFIX)/man/man1/bzmore.1
  91. - chmod a+r $(PREFIX)/man/man1/bzdiff.1
  92. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
  93. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
  94. - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
  95. - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
  96. + chmod a+x $(USRPREFIX)/bin/bzip2recover
  97. + cp -f bzip2.1 $(USRPREFIX)/man/man1
  98. + chmod a+r $(USRPREFIX)/man/man1/bzip2.1
  99. + cp -f bzlib.h $(USRPREFIX)/include
  100. + chmod a+r $(USRPREFIX)/include/bzlib.h
  101. + cp -f libbz2.a $(USRPREFIX)/lib
  102. + chmod a+r $(USRPREFIX)/lib/libbz2.a
  103. + cp -f bzgrep $(USRPREFIX)/bin/bzgrep
  104. + ln -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzegrep
  105. + ln -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzfgrep
  106. + chmod a+x $(USRPREFIX)/bin/bzgrep
  107. + cp -f bzmore $(USRPREFIX)/bin/bzmore
  108. + ln -f $(USRPREFIX)/bin/bzmore $(USRPREFIX)/bin/bzless
  109. + chmod a+x $(USRPREFIX)/bin/bzmore
  110. + cp -f bzdiff $(USRPREFIX)/bin/bzdiff
  111. + ln -f $(USRPREFIX)/bin/bzdiff $(USRPREFIX)/bin/bzcmp
  112. + chmod a+x $(USRPREFIX)/bin/bzdiff
  113. + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(USRPREFIX)/man/man1
  114. + chmod a+r $(USRPREFIX)/man/man1/bzgrep.1
  115. + chmod a+r $(USRPREFIX)/man/man1/bzmore.1
  116. + chmod a+r $(USRPREFIX)/man/man1/bzdiff.1
  117. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzegrep.1
  118. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzfgrep.1
  119. + echo ".so man1/bzmore.1" > $(USRPREFIX)/man/man1/bzless.1
  120. + echo ".so man1/bzdiff.1" > $(USRPREFIX)/man/man1/bzcmp.1
  121. distclean: clean
  122. clean: