Skip to content
Permalink
Browse files

bzip2: Update to 1.0.7

  • Loading branch information
ryandesign committed Jun 30, 2019
1 parent 5f675b6 commit 573f5490a7b5d5521dfefc940b72c948ad93aee1
Showing with 25 additions and 26 deletions.
  1. +11 −12 archivers/bzip2/Portfile
  2. +14 −14 archivers/bzip2/files/patch-Makefile-so.diff
@@ -3,7 +3,12 @@
PortSystem 1.0

name bzip2
version 1.0.6
version 1.0.7
revision 0
checksums rmd160 b33630926415e60694c7cff422fe4cb164a6fe72 \
sha256 e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b \
size 809680

platforms darwin freebsd linux sunos
categories archivers sysutils
maintainers {ryandesign @ryandesign} openmaintainer
@@ -14,12 +19,9 @@ description compression library and tools
long_description ${name} is a freely available, patent free, \
high-quality data compressor.

# Development of bzip2 1.1.x is at https://gitlab.com/federicomenaquintero/bzip2
homepage https://sourceware.org/bzip2/
master_sites macports_distfiles

checksums rmd160 cc31bbae95e8eec259cef7627eae0c667654a339 \
sha256 a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd \
size 782025
master_sites https://sourceware.org/pub/bzip2/

patchfiles patch-Makefile-man.diff \
patch-Makefile-links.diff \
@@ -51,9 +53,6 @@ platform darwin {
}
}

# Following the project's loss of the bzip.org domain name, there is no
# authoritative source for the current version. Temporarily use WikiPedia,
# assuming someone will update that page if a newer version is released.
livecheck.type regexm
livecheck.url https://en.wikipedia.org/wiki/Bzip2
livecheck.regex {Stable release(?:<[^>]+>|\s)+([0-9.]+)}
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\\d+(?:\.\\d+)+)
@@ -1,15 +1,15 @@
--- Makefile.orig 2004-01-28 13:13:03.000000000 -0700
+++ Makefile 2004-01-28 13:13:30.918589000 -0700
@@ -9,7 +9,7 @@
--- Makefile.orig 2019-06-29 20:15:09.000000000 -0500
+++ Makefile 2019-06-29 20:16:32.000000000 -0500
@@ -21,7 +21,7 @@
LDFLAGS=

# Suitably paranoid flags to avoid bugs in gcc-2.7
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
+CFLAGS=-Wall -Winline -O2 -fPIC -fpic -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
+CFLAGS=-Wall -Winline -O2 -fPIC -fpic -g $(BIGFILES)

# Where you want it installed when you do 'make install'
PREFIX=/usr
@@ -23,7 +23,7 @@
PREFIX=/usr/local
@@ -35,7 +35,7 @@
decompress.o \
bzlib.o

@@ -18,7 +18,7 @@

bzip2: libbz2.a bzip2.o
$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
@@ -40,15 +40,19 @@
@@ -52,15 +52,19 @@
$(RANLIB) libbz2.a ; \
fi

@@ -44,7 +44,7 @@
cmp sample1.bz2 sample1.rb2
cmp sample2.bz2 sample2.rb2
cmp sample3.bz2 sample3.rb2
@@ -77,6 +81,10 @@
@@ -89,6 +93,10 @@
chmod a+r $(PREFIX)/include/bzlib.h
cp -f libbz2.a $(PREFIX)/lib
chmod a+r $(PREFIX)/lib/libbz2.a
@@ -53,11 +53,11 @@
+ ln -s libbz2.so.1.0.2 $(PREFIX)/lib/libbz2.so.1
+ ln -s libbz2.so.1.0.2 $(PREFIX)/lib/libbz2.so
cp -f bzgrep $(PREFIX)/bin/bzgrep
ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
@@ -98,7 +106,7 @@
ln -s -f bzgrep $(PREFIX)/bin/bzegrep
ln -s -f bzgrep $(PREFIX)/bin/bzfgrep
@@ -109,7 +117,7 @@
ln -s -f bzdiff.1 $(PREFIX)/share/man/man1/bzcmp.1

distclean: clean
clean:
- rm -f *.o libbz2.a bzip2 bzip2recover \
+ rm -f *.o libbz2.a libbz2.so.1.0.2 bzip2 bzip2recover \

0 comments on commit 573f549

Please sign in to comment.
You can’t perform that action at this time.