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.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bzip2/makefile.patch
  5. # Copyright (C) 2007 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. --- bzip2-1.0.4/Makefile.orig 2007-01-03 05:49:21.000000000 +0200
  17. +++ bzip2-1.0.4/Makefile 2007-03-11 23:30:56.781657750 +0200
  18. @@ -24,8 +24,8 @@
  19. CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
  20. # Where you want it installed when you do 'make install'
  21. -PREFIX=/usr/local
  22. -
  23. +PREFIX=/
  24. +USRPREFIX=/usr
  25. OBJS= blocksort.o \
  26. huffman.o \
  27. @@ -35,7 +35,7 @@
  28. decompress.o \
  29. bzlib.o
  30. -all: libbz2.a bzip2 bzip2recover test
  31. +all: libbz2.a bzip2 bzip2recover
  32. bzip2: libbz2.a bzip2.o
  33. $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
  34. @@ -46,12 +46,7 @@
  35. libbz2.a: $(OBJS)
  36. rm -f libbz2.a
  37. $(AR) cq libbz2.a $(OBJS)
  38. - @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
  39. - -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
  40. - echo $(RANLIB) libbz2.a ; \
  41. - $(RANLIB) libbz2.a ; \
  42. - fi
  43. -
  44. + $(RANLIB) libbz2.a
  45. check: test
  46. test: bzip2
  47. @cat words1
  48. @@ -71,42 +66,42 @@
  49. install: bzip2 bzip2recover
  50. if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
  51. - if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
  52. - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
  53. - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
  54. - if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
  55. + if ( test ! -d $(USRPREFIX)/lib ) ; then mkdir -p $(USRPREFIX)/lib ; fi
  56. + if ( test ! -d $(USRPREFIX)/man ) ; then mkdir -p $(USRPREFIX)/man ; fi
  57. + if ( test ! -d $(USRPREFIX)/man/man1 ) ; then mkdir -p $(USRPREFIX)/man/man1 ; fi
  58. + if ( test ! -d $(USRPREFIX)/include ) ; then mkdir -p $(USRPREFIX)/include ; fi
  59. cp -f bzip2 $(PREFIX)/bin/bzip2
  60. cp -f bzip2 $(PREFIX)/bin/bunzip2
  61. cp -f bzip2 $(PREFIX)/bin/bzcat
  62. - cp -f bzip2recover $(PREFIX)/bin/bzip2recover
  63. + cp -f bzip2recover $(USRPREFIX)/bin/bzip2recover
  64. chmod a+x $(PREFIX)/bin/bzip2
  65. chmod a+x $(PREFIX)/bin/bunzip2
  66. chmod a+x $(PREFIX)/bin/bzcat
  67. - chmod a+x $(PREFIX)/bin/bzip2recover
  68. - cp -f bzip2.1 $(PREFIX)/man/man1
  69. - chmod a+r $(PREFIX)/man/man1/bzip2.1
  70. - cp -f bzlib.h $(PREFIX)/include
  71. - chmod a+r $(PREFIX)/include/bzlib.h
  72. - cp -f libbz2.a $(PREFIX)/lib
  73. - chmod a+r $(PREFIX)/lib/libbz2.a
  74. - cp -f bzgrep $(PREFIX)/bin/bzgrep
  75. - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
  76. - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
  77. - chmod a+x $(PREFIX)/bin/bzgrep
  78. - cp -f bzmore $(PREFIX)/bin/bzmore
  79. - ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
  80. - chmod a+x $(PREFIX)/bin/bzmore
  81. - cp -f bzdiff $(PREFIX)/bin/bzdiff
  82. - ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
  83. - chmod a+x $(PREFIX)/bin/bzdiff
  84. - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
  85. - chmod a+r $(PREFIX)/man/man1/bzgrep.1
  86. - chmod a+r $(PREFIX)/man/man1/bzmore.1
  87. - chmod a+r $(PREFIX)/man/man1/bzdiff.1
  88. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
  89. - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
  90. - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
  91. - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
  92. + chmod a+x $(USRPREFIX)/bin/bzip2recover
  93. + cp -f bzip2.1 $(USRPREFIX)/man/man1
  94. + chmod a+r $(USRPREFIX)/man/man1/bzip2.1
  95. + cp -f bzlib.h $(USRPREFIX)/include
  96. + chmod a+r $(USRPREFIX)/include/bzlib.h
  97. + cp -f libbz2.a $(USRPREFIX)/lib
  98. + chmod a+r $(USRPREFIX)/lib/libbz2.a
  99. + cp -f bzgrep $(USRPREFIX)/bin/bzgrep
  100. + ln -s -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzegrep
  101. + ln -s -f $(USRPREFIX)/bin/bzgrep $(USRPREFIX)/bin/bzfgrep
  102. + chmod a+x $(USRPREFIX)/bin/bzgrep
  103. + cp -f bzmore $(USRPREFIX)/bin/bzmore
  104. + ln -s -f $(USRPREFIX)/bin/bzmore $(USRPREFIX)/bin/bzless
  105. + chmod a+x $(USRPREFIX)/bin/bzmore
  106. + cp -f bzdiff $(USRPREFIX)/bin/bzdiff
  107. + ln -s -f $(USRPREFIX)/bin/bzdiff $(USRPREFIX)/bin/bzcmp
  108. + chmod a+x $(USRPREFIX)/bin/bzdiff
  109. + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(USRPREFIX)/man/man1
  110. + chmod a+r $(USRPREFIX)/man/man1/bzgrep.1
  111. + chmod a+r $(USRPREFIX)/man/man1/bzmore.1
  112. + chmod a+r $(USRPREFIX)/man/man1/bzdiff.1
  113. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzegrep.1
  114. + echo ".so man1/bzgrep.1" > $(USRPREFIX)/man/man1/bzfgrep.1
  115. + echo ".so man1/bzmore.1" > $(USRPREFIX)/man/man1/bzless.1
  116. + echo ".so man1/bzdiff.1" > $(USRPREFIX)/man/man1/bzcmp.1
  117. clean:
  118. rm -f *.o libbz2.a bzip2 bzip2recover \