summaryrefslogtreecommitdiff
path: root/package/lz4/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-30 08:12:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-30 08:12:09 +0200
commiteb3f81cc2f161f97954b9b93839a0225bc2bf83b (patch)
tree63b1e7028deddf2213e885391c847de5dbfe4409 /package/lz4/patches
parentaa6259aed442339ba288d5a0e704eb22465c426e (diff)
move to libs/comp, add new package lz4
Diffstat (limited to 'package/lz4/patches')
-rw-r--r--package/lz4/patches/patch-Makefile37
-rw-r--r--package/lz4/patches/patch-Makefile.orig26
-rw-r--r--package/lz4/patches/patch-programs_Makefile26
-rw-r--r--package/lz4/patches/patch-programs_Makefile.orig22
4 files changed, 111 insertions, 0 deletions
diff --git a/package/lz4/patches/patch-Makefile b/package/lz4/patches/patch-Makefile
new file mode 100644
index 000000000..56d9ae37c
--- /dev/null
+++ b/package/lz4/patches/patch-Makefile
@@ -0,0 +1,37 @@
+--- lz4-r118.orig/Makefile 2014-06-26 11:36:13.000000000 +0200
++++ lz4-r118/Makefile 2014-06-30 07:42:30.000000000 +0200
+@@ -39,8 +39,8 @@ LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$
+
+ DESTDIR=
+ PREFIX = /usr
+-CC := $(CC)
+-CFLAGS+= -I. -std=c99 -O3 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
++CC ?= $(CC)
++CFLAGS+= -I. -std=c99 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
+
+ LIBDIR?= $(PREFIX)/lib
+ INCLUDEDIR=$(PREFIX)/include
+@@ -55,19 +55,10 @@ else
+ EXT =
+ endif
+
+-# OS X linker doesn't support -soname, and use different extension
+-# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
+-ifeq ($(shell uname), Darwin)
+- SONAME_FLAGS =
+- SHARED_EXT = dylib
+- SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
+- SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
+-else
+- SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
+- SHARED_EXT = so
+- SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
+- SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
+-endif
++SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
++SHARED_EXT = so
++SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
++SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
+
+ TEXT = lz4.c lz4.h lz4hc.c lz4hc.h \
+ lz4_format_description.txt Makefile NEWS LICENSE README.md \
diff --git a/package/lz4/patches/patch-Makefile.orig b/package/lz4/patches/patch-Makefile.orig
new file mode 100644
index 000000000..5102f1128
--- /dev/null
+++ b/package/lz4/patches/patch-Makefile.orig
@@ -0,0 +1,26 @@
+--- lz4-r118.orig/Makefile 2014-06-26 11:36:13.000000000 +0200
++++ lz4-r118/Makefile 2014-06-30 07:41:17.000000000 +0200
+@@ -55,19 +55,10 @@ else
+ EXT =
+ endif
+
+-# OS X linker doesn't support -soname, and use different extension
+-# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
+-ifeq ($(shell uname), Darwin)
+- SONAME_FLAGS =
+- SHARED_EXT = dylib
+- SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
+- SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
+-else
+- SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
+- SHARED_EXT = so
+- SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
+- SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
+-endif
++SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR)
++SHARED_EXT = so
++SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR)
++SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
+
+ TEXT = lz4.c lz4.h lz4hc.c lz4hc.h \
+ lz4_format_description.txt Makefile NEWS LICENSE README.md \
diff --git a/package/lz4/patches/patch-programs_Makefile b/package/lz4/patches/patch-programs_Makefile
new file mode 100644
index 000000000..81d7e6470
--- /dev/null
+++ b/package/lz4/patches/patch-programs_Makefile
@@ -0,0 +1,26 @@
+--- lz4-r118.orig/programs/Makefile 2014-06-26 11:36:13.000000000 +0200
++++ lz4-r118/programs/Makefile 2014-06-30 08:09:52.000000000 +0200
+@@ -33,8 +33,8 @@
+ RELEASE=r118
+ DESTDIR=
+ PREFIX=/usr
+-CC:=$(CC)
+-CFLAGS+= -std=c99 -O3 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
++CC?=$(CC)
++CFLAGS+= -std=c99 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
+ FLAGS= -I.. $(CFLAGS)
+
+ BINDIR=$(PREFIX)/bin
+@@ -67,10 +67,10 @@ endif
+
+ default: lz4 lz4c
+
+-all: lz4 lz4c lz4c32 fullbench fullbench32 fuzzer fuzzer32 datagen
++all: lz4 lz4c
+
+ lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
+- $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)
++ $(CC) $(FLAGS) $^ -o $@$(EXT)
+
+ lz4c : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT)
diff --git a/package/lz4/patches/patch-programs_Makefile.orig b/package/lz4/patches/patch-programs_Makefile.orig
new file mode 100644
index 000000000..02e153ed9
--- /dev/null
+++ b/package/lz4/patches/patch-programs_Makefile.orig
@@ -0,0 +1,22 @@
+--- lz4-r118.orig/programs/Makefile 2014-06-26 11:36:13.000000000 +0200
++++ lz4-r118/programs/Makefile 2014-06-30 07:44:45.000000000 +0200
+@@ -33,8 +33,8 @@
+ RELEASE=r118
+ DESTDIR=
+ PREFIX=/usr
+-CC:=$(CC)
+-CFLAGS+= -std=c99 -O3 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
++CC?=$(CC)
++CFLAGS+= -std=c99 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
+ FLAGS= -I.. $(CFLAGS)
+
+ BINDIR=$(PREFIX)/bin
+@@ -67,7 +67,7 @@ endif
+
+ default: lz4 lz4c
+
+-all: lz4 lz4c lz4c32 fullbench fullbench32 fuzzer fuzzer32 datagen
++all: lz4 lz4c
+
+ lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)