diff options
author | fhajny <fhajny@pkgsrc.org> | 2015-03-23 22:24:11 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2015-03-23 22:24:11 +0000 |
commit | 12b8c0b25c5983401ce324ef75600d25cc939bcd (patch) | |
tree | 8a7cc9b2c2e59440dce7197527a0fef835217f45 /archivers/lz4/patches/patch-lib_Makefile | |
parent | 207ddccfaef8464a1280360d29020be55ca80f6f (diff) | |
download | pkgsrc-12b8c0b25c5983401ce324ef75600d25cc939bcd.tar.gz |
Update archivers/lz4 to 127.
r127:
N/A : added a file on SVN
r126:
New : lz4frame API is now integrated into liblz4
Fixed : GCC 4.9 bug on highest performance settings, reported by Greg Slazinski
Fixed : bug within LZ4 HC streaming mode, reported by James Boyle
Fixed : older compiler don't like nameless unions, reported by Cheyi Lin
Changed : lz4 is C90 compatible
Changed : added -pedantic option, fixed a few mminor warnings
r125:
Changed : endian and alignment code
Changed : directory structure : new "lib" directory
Updated : lz4io, now uses lz4frame
Improved: slightly improved decoding speed
Fixed : LZ4_compress_limitedOutput(); Special thanks to Christopher Speller !
Fixed : some alignment warnings under clang
Fixed : deprecated function LZ4_slideInputBufferHC()
Diffstat (limited to 'archivers/lz4/patches/patch-lib_Makefile')
-rw-r--r-- | archivers/lz4/patches/patch-lib_Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/archivers/lz4/patches/patch-lib_Makefile b/archivers/lz4/patches/patch-lib_Makefile new file mode 100644 index 00000000000..9e1f855546d --- /dev/null +++ b/archivers/lz4/patches/patch-lib_Makefile @@ -0,0 +1,66 @@ +$NetBSD: patch-lib_Makefile,v 1.1 2015/03/23 22:24:11 fhajny Exp $ + +Make portable, use pkgsrc install scripts. +--- lib/Makefile.orig 2014-12-19 08:51:32.000000000 +0000 ++++ lib/Makefile +@@ -33,9 +33,9 @@ + + # Version numbers + VERSION ?= 126 +-LIBVER_MAJOR=`sed -n '/define LZ4_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` +-LIBVER_MINOR=`sed -n '/define LZ4_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` +-LIBVER_PATCH=`sed -n '/define LZ4_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < lz4.h` ++LIBVER_MAJOR=`awk '$$2=="LZ4_VERSION_MAJOR" {print $$3}' < lz4.h` ++LIBVER_MINOR=`awk '$$2=="LZ4_VERSION_MINOR" {print $$3}' < lz4.h` ++LIBVER_PATCH=`awk '$$2=="LZ4_VERSION_RELEASE" {print $$3}' < lz4.h` + LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) + + DESTDIR?= +@@ -80,28 +80,24 @@ clean: + @echo Cleaning library completed + + +-#------------------------------------------------------------------------ +-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) +- + liblz4.pc: liblz4.pc.in Makefile + @echo creating pkgconfig +- @sed -e 's|@PREFIX@|$(PREFIX)|' \ +- -e 's|@LIBDIR@|$(LIBDIR)|' \ +- -e 's|@INCLUDEDIR@|$(INCLUDEDIR)|' \ +- -e 's|@VERSION@|$(VERSION)|' \ ++ @sed -e 's|@PREFIX@|$(PREFIX)|g' \ ++ -e 's|@LIBDIR@|$(LIBDIR)|g' \ ++ -e 's|@INCLUDEDIR@|$(INCLUDEDIR)|g' \ ++ -e 's|@VERSION@|$(VERSION)|g' \ + $< >$@ + + install: liblz4 liblz4.pc +- @install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ +- @install -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_VER) +- @cp -a liblz4.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR) +- @cp -a liblz4.$(SHARED_EXT) $(DESTDIR)$(LIBDIR) +- @cp -a liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ +- @install -m 644 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a +- @install -m 644 lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h +- @install -m 644 lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h +- @install -m 644 lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h ++ $(BSD_INSTALL_DATA_DIR) -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/ ++ $(BSD_INSTALL_LIB) -m 755 liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_VER) ++ @ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT_MAJOR) ++ @ln -sf liblz4.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblz4.$(SHARED_EXT) ++ $(BSD_INSTALL_DATA) liblz4.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ ++ $(BSD_INSTALL_LIB) -m 644 liblz4.a $(DESTDIR)$(LIBDIR)/liblz4.a ++ $(BSD_INSTALL_DATA) -m 644 lz4.h $(DESTDIR)$(INCLUDEDIR)/lz4.h ++ $(BSD_INSTALL_DATA) -m 644 lz4hc.h $(DESTDIR)$(INCLUDEDIR)/lz4hc.h ++ $(BSD_INSTALL_DATA) -m 644 lz4frame.h $(DESTDIR)$(INCLUDEDIR)/lz4frame.h + @echo lz4 static and shared library installed + + uninstall: +@@ -113,5 +109,3 @@ uninstall: + @[ -f $(DESTDIR)$(INCLUDEDIR)/lz4.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4.h + @[ -f $(DESTDIR)$(INCLUDEDIR)/lz4hc.h ] && rm -f $(DESTDIR)$(INCLUDEDIR)/lz4hc.h + @echo lz4 libraries successfully uninstalled +- +-endif |