diff --git a/app-arch/lz4/lz4-r129.recipe b/app-arch/lz4/lz4-r129.recipe new file mode 100644 index 000000000..c2d7912ae --- /dev/null +++ b/app-arch/lz4/lz4-r129.recipe @@ -0,0 +1,71 @@ +SUMMARY="lz4 data compression utilities and libraries" +DESCRIPTION=" +LZ4 is a very fast lossless compression algorithm, providing compression speed \ +at 400 MB/s per core, scalable with multi-cores CPU. It also features an \ +extremely fast decoder, with speed in multiple GB/s per core, typically \ +reaching RAM speed limits on multi-core systems. +" +HOMEPAGE="https://code.google.com/p/lz4/" +LICENSE="BSD (2-clause)" +COPYRIGHT="2011-2014, Yann Collet" +SRC_URI="https://github.com/Cyan4973/lz4/archive/$portVersion.tar.gz" +SRC_FILENAME="lz4-$portVersion.tar.gz" +CHECKSUM_SHA256="f681f5528a6d16b23246db499f30717cda354079a684298375c4d74c6f475a01" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86 x86_gcc2" + +PATCHES="lz4-$portVersion.patchset" + +PROVIDES=" + lz4${secondaryArchSuffix} = $portVersion + lib:liblz4${secondaryArchSuffix} = 1.7.0 compat >= 1 + " + +if [ -z "$secondaryArchSuffix" ]; then +PROVIDES="$PROVIDES + cmd:lz4 = $portVersion + cmd:lz4c = $portVersion + cmd:lz4cat = $portVersion + cmd:unlz4 = $portVersion + " +fi + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:ar + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make $jobArgs all +} + +INSTALL() +{ + make install LIBDIR=$libDir INCLUDEDIR=$includeDir \ + BINDIR=$binDir MANDIR=$manDir/man1 + prepareInstalledDevelLibs liblz4 + fixPkgconfig + + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + lz4${secondaryArchSuffix}_devel = $portVersion + devel:liblz4$secondaryArchSuffix = 1.7.0 compat >= 1 + " +REQUIRES_devel=" + lz4${secondaryArchSuffix} == $portVersion base + " diff --git a/app-arch/lz4/patches/lz4-r129.patchset b/app-arch/lz4/patches/lz4-r129.patchset new file mode 100644 index 000000000..65018320a --- /dev/null +++ b/app-arch/lz4/patches/lz4-r129.patchset @@ -0,0 +1,81 @@ +From 3b8ba3c0dd4e03b68b2ad16e9f4a72ecf72a50a8 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Tue, 5 Aug 2014 17:14:07 +0000 +Subject: haiku patch + + +diff --git a/Makefile b/Makefile +index 88c4016..0dfd802 100644 +--- a/Makefile ++++ b/Makefile +@@ -76,7 +76,7 @@ clean: + + #------------------------------------------------------------------------ + #make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) ++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU Haiku)) + + install: + @cd $(LZ4DIR); $(MAKE) -e install +diff --git a/lib/Makefile b/lib/Makefile +index 4be1499..25a731d 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -40,7 +40,7 @@ LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) + DESTDIR?= + PREFIX ?= /usr/local + CFLAGS ?= -O3 +-CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -pedantic ++CFLAGS += -I. -Wall -Wundef -Wshadow -Wstrict-prototypes -pedantic + + LIBDIR?= $(PREFIX)/lib + INCLUDEDIR=$(PREFIX)/include +@@ -81,7 +81,7 @@ clean: + + #------------------------------------------------------------------------ + #make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) ++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU Haiku)) + + liblz4.pc: liblz4.pc.in Makefile + @echo creating pkgconfig +diff --git a/programs/Makefile b/programs/Makefile +index 39335db..d346edf 100644 +--- a/programs/Makefile ++++ b/programs/Makefile +@@ -39,11 +39,11 @@ RELEASE?= r129 + DESTDIR?= + PREFIX ?= /usr/local + CFLAGS ?= -O3 +-CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -pedantic -DLZ4_VERSION=\"$(RELEASE)\" ++CFLAGS += -Wall -Wundef -Wshadow -Wstrict-prototypes -pedantic -DLZ4_VERSION=\"$(RELEASE)\" + FLAGS := -I../lib $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) + +-BINDIR := $(PREFIX)/bin +-MANDIR := $(PREFIX)/share/man/man1 ++#BINDIR := $(PREFIX)/bin ++#MANDIR := $(PREFIX)/share/man/man1 + LZ4DIR := ../lib + + +@@ -70,7 +70,7 @@ m32: lz4c32 fullbench32 fuzzer32 frametest32 + + bins: lz4 lz4c fullbench fuzzer frametest datagen + +-all: bins m32 ++all: bins + + lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c $(LZ4DIR)/xxhash.c bench.c lz4io.c lz4cli.c + $(CC) $(FLAGS) $^ -o $@$(EXT) +@@ -114,7 +114,7 @@ clean: + + #------------------------------------------------------------------------ + #make install is validated only for Linux, OSX, kFreeBSD and Hurd targets +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU)) ++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU Haiku)) + + install: lz4 lz4c + @echo Installing binaries +-- +1.8.3.4 +