Ticket #12685: bzip2-1.0.4_2.diff
File bzip2-1.0.4_2.diff, 6.7 KB (added by nox@…, 17 years ago) |
---|
-
files/patch-Makefile-links.diff
6 6 cp -f bzgrep $(PREFIX)/bin/bzgrep 7 7 - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep 8 8 - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep 9 + ln -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep10 + ln -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep9 + (cd $(PREFIX)/bin; ln -s -f bzgrep bzegrep) 10 + (cd $(PREFIX)/bin; ln -s -f bzgrep bzfgrep) 11 11 chmod a+x $(PREFIX)/bin/bzgrep 12 12 cp -f bzmore $(PREFIX)/bin/bzmore 13 13 - ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless 14 + ln -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless14 + (cd $(PREFIX)/bin; ln -s -f bzmore bzless) 15 15 chmod a+x $(PREFIX)/bin/bzmore 16 16 cp -f bzdiff $(PREFIX)/bin/bzdiff 17 17 - ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp 18 + ln -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp18 + (cd $(PREFIX)/bin; ln -s -f bzdiff bzcmp) 19 19 chmod a+x $(PREFIX)/bin/bzdiff 20 20 cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 21 21 chmod a+r $(PREFIX)/man/man1/bzgrep.1 -
files/patch-Makefile-so.diff
4 4 5 5 # Suitably paranoid flags to avoid bugs in gcc-2.7 6 6 BIGFILES=-D_FILE_OFFSET_BITS=64 7 -CFLAGS=-Wall -Winline -O2 - fomit-frame-pointer -fno-strength-reduce$(BIGFILES)8 +CFLAGS=-Wall -Winline -O2 - fPIC -fpic -fomit-frame-pointer -fno-strength-reduce$(BIGFILES)7 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) 8 +CFLAGS=-Wall -Winline -O2 -g -fPIC -fpic $(BIGFILES) 9 9 10 10 # Where you want it installed when you do 'make install' 11 11 PREFIX=/usr -
files/patch-Makefile-man.diff
1 --- Makefile.orig Fri Jan 25 15:34:53 2002 2 +++ Makefile Tue Dec 9 07:16:30 2003 3 @@ -60,8 +60,8 @@ 4 install: bzip2 bzip2recover 5 if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi 6 if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi 7 - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi 8 - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi 9 + if ( test ! -d $(PREFIX)/share/man ) ; then mkdir -p $(PREFIX)/share/man ; fi 10 + if ( test ! -d $(PREFIX)/share/man/man1 ) ; then mkdir -p $(PREFIX)/share/man/man1 ; fi 11 if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi 12 cp -f bzip2 $(PREFIX)/bin/bzip2 13 cp -f bzip2 $(PREFIX)/bin/bunzip2 14 @@ -71,8 +71,8 @@ 15 chmod a+x $(PREFIX)/bin/bunzip2 16 chmod a+x $(PREFIX)/bin/bzcat 17 chmod a+x $(PREFIX)/bin/bzip2recover 18 - cp -f bzip2.1 $(PREFIX)/man/man1 19 - chmod a+r $(PREFIX)/man/man1/bzip2.1 20 + cp -f bzip2.1 $(PREFIX)/share/man/man1 21 + chmod a+r $(PREFIX)/share/man/man1/bzip2.1 22 cp -f bzlib.h $(PREFIX)/include 23 chmod a+r $(PREFIX)/include/bzlib.h 24 cp -f libbz2.a $(PREFIX)/lib 25 @@ -87,14 +87,14 @@ 26 cp -f bzdiff $(PREFIX)/bin/bzdiff 27 ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp 28 chmod a+x $(PREFIX)/bin/bzdiff 29 - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 30 - chmod a+r $(PREFIX)/man/man1/bzgrep.1 31 - chmod a+r $(PREFIX)/man/man1/bzmore.1 32 - chmod a+r $(PREFIX)/man/man1/bzdiff.1 1 --- Makefile.orig 2007-08-30 02:40:10.000000000 +0200 2 +++ Makefile 2007-08-30 02:48:20.000000000 +0200 3 @@ -103,10 +103,10 @@ 4 chmod a+r $(PREFIX)/man/man1/bzgrep.1 5 chmod a+r $(PREFIX)/man/man1/bzmore.1 6 chmod a+r $(PREFIX)/man/man1/bzdiff.1 33 7 - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1 34 8 - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1 35 9 - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 36 10 - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 37 + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/share/man/man1 38 + chmod a+r $(PREFIX)/share/man/man1/bzgrep.1 39 + chmod a+r $(PREFIX)/share/man/man1/bzmore.1 40 + chmod a+r $(PREFIX)/share/man/man1/bzdiff.1 41 + echo ".so man1/bzgrep.1" > $(PREFIX)/share/man/man1/bzegrep.1 42 + echo ".so man1/bzgrep.1" > $(PREFIX)/share/man/man1/bzfgrep.1 43 + echo ".so man1/bzmore.1" > $(PREFIX)/share/man/man1/bzless.1 44 + echo ".so man1/bzdiff.1" > $(PREFIX)/share/man/man1/bzcmp.1 11 + (cd $(PREFIX)/man/man1; ln -s -f bzgrep.1 bzegrep.1) 12 + (cd $(PREFIX)/man/man1; ln -s -f bzgrep.1 bzfgrep.1) 13 + (cd $(PREFIX)/man/man1; ln -s -f bzmore.1 bzless.1) 14 + (cd $(PREFIX)/man/man1; ln -s -f bzdiff.1 bzcmp.1) 45 15 46 distclean: clean47 16 clean: 17 rm -f *.o libbz2.a bzip2 bzip2recover \ -
Portfile
1 1 # $Id$ 2 2 3 PortSystem 1.0 3 PortSystem 1.0 4 4 5 name bzip2 5 6 version 1.0.4 6 revision 17 revision 2 7 8 platforms darwin freebsd linux sunos 8 9 categories sysutils archivers 9 maintainers ryandesign openmaintainer @macports.org10 maintainers ryandesign openmaintainer 10 11 description bzip2 compression library and tools 11 12 12 13 homepage http://www.bzip.org/ 13 master_sites http://www.bzip.org/${version}/ 14 master_sites ${homepage}${version}/ 15 14 16 checksums md5 fc310b254f6ba5fbb5da018f04533688 \ 15 17 sha1 f2388ec8f2c506e02aa89e67577b3c6331cbaa4c \ 16 18 rmd160 438365cb911ef84b3bd6643e0d39f6b7567f0447 19 17 20 patchfiles patch-Makefile-man.diff \ 18 21 patch-Makefile-links.diff 19 22 20 platform darwin { 21 patchfiles-append patch-Makefile-dylib.diff 22 } 23 24 platform freebsd { 25 patchfiles-append patch-Makefile-so.diff 23 post-patch { 24 reinplace -E "/\\/bin\\//s/ln -s -f/ln -f/" ${worksrcpath}/Makefile 25 reinplace "s|\\\$(PREFIX)/man|\$(PREFIX)/share/man|g" ${worksrcpath}/Makefile 26 reinplace -E "/^all:/s/test//" ${worksrcpath}/Makefile 26 27 } 27 28 28 platform linux{29 patchfiles-append patch-Makefile-so.diff29 platform darwin { 30 patchfiles-append patch-Makefile-dylib.diff 30 31 } 31 32 32 platform sunos { 33 patchfiles-append patch-Makefile-so.diff 33 foreach {platform} {freebsd linux sunos} { 34 platform ${platform} { 35 patchfiles-append patch-Makefile-so.diff 36 } 34 37 } 35 38 36 39 platform darwin 7 { … … 39 42 40 43 use_configure no 41 44 build.args PREFIX="${prefix}" 42 destroot.destdir PREFIX="${destroot}/${prefix}" 45 destroot.destdir PREFIX="${destroot}${prefix}" 46 test.run yes 47 48 post-destroot { 49 set docdir ${prefix}/share/doc/${name}-${version} 50 xinstall -d ${destroot}${docdir} 51 xinstall -m 0644 -W ${worksrcpath} CHANGES LICENSE README ${destroot}${docdir} 52 } 43 53 44 54 variant universal { 45 55 build.args-append \ 46 56 CC="gcc ${configure.universal_cflags}" 47 57 } 58