@ -7,30 +7,38 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
# Although liblz4 exports a major.minor.patch version, it isn't always
# incremented for new releases. Check the NEWS file and instead use a
# release tag when appropriate. (eg: PKG_VERSION:=r131)
PKG_NAME := liblz4
PKG_VERSION := v1.7.5
PKG_VERSION := 1.9.1
PKG_RELEASE := 1
PKG_LICENSE := BSD-2-Clause
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/lz4/lz4/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := f8377c89dad5c9f266edc0be9b73595296ecafd5bfa1000de148096c50052dc4
PKG_BUILD_DIR := $( BUILD_DIR) /lz4-$( PKG_VERSION)
PKG_MAINTAINER := Darik Horn <dajhorn@vanadac.com>
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_MIRROR_HASH := afb362b970816e06dac4997d26dd7d2cdb83168510228d174d25b1044b271e18
PKG_SOURCE_PROTO := git
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE_URL := https://github.com/lz4/lz4.git
PKG_SOURCE_VERSION := $( PKG_VERSION)
PKG_BUILD_PARALLEL := 1
CMAKE_INSTALL := 1
CMAKE_SOURCE_SUBDIR := contrib/cmake_unofficial
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / l z 4 / D e f a u l t
SUBMENU:= Compression
URL:= https://www.lz4.org/
e n d e f
d e f i n e P a c k a g e / l i b l z 4
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Extremely fast compression
URL:= http://www.lz4.org/
$( call Package /lz 4/Default )
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Extremely fast compression
LICENSE:= BSD-2-Clause
LICENSE_FILES:= LICENSE lib/LICENSE
ABI_VERSION:= $( firstword $( subst .,$( space) ,$( PKG_VERSION) ) )
MENU:= 1
e n d e f
d e f i n e P a c k a g e / l i b l z 4 / d e s c r i p t i o n
@ -38,23 +46,45 @@ define Package/liblz4/description
even faster decoder. This package provides the liblz4 shared library.
e n d e f
TARGET_CFLAGS += $( FPIC)
d e f i n e P a c k a g e / l i b l z 4 / c o n f i g
source " $( SOURCE) /Config.in "
e n d e f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C " $( PKG_BUILD_DIR) /lib " $( MAKE_INSTALL_FLAGS) \
CC = " $( TARGET_CC) " \
CFLAGS = " $( TARGET_CFLAGS) " \
PREFIX = " $( CONFIGURE_PREFIX) " \
install
d e f i n e P a c k a g e / l z 4
$( call Package /lz 4/Default )
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Extremely fast compression
LICENSE:= GPL-2.0-or-later
LICENSE_FILES:= LICENSE programs/COPYING
DEPENDS:= +liblz4
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( CP) $( PKG_INSTALL_DIR) /* $( 1) /
d e f i n e P a c k a g e / l z 4 / d e s c r i p t i o n
LZ4 - Fast real-time compression algorithm.
This package provides the lz4 binaries.
e n d e f
CMAKE_OPTIONS += \
-DCMAKE_INSTALL_MANDIR= /dev/null \
-DLZ4_BUILD_LEGACY_LZ4C= OFF
i f e q ( $( CONFIG_LZ 4_OPTIMIZE_SPEED ) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) ) -O3
e n d i f
TARGET_CFLAGS += $( FPIC) -ffunction-sections -fdata-sections -flto
TARGET_LDFLAGS += -Wl,--gc-sections
d e f i n e P a c k a g e / l i b l z 4 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/liblz4.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/liblz4.so.$( ABI_VERSION) * $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l z 4 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/{ lz4,lz4cat,unlz4} $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,liblz 4) )
$( eval $ ( call BuildPackage ,lz 4) )