@ -2,24 +2,25 @@ include $(TOPDIR)/rules.mk
PKG_NAME := zstd
PKG_NAME := zstd
PKG_VERSION := 1.4.0
PKG_VERSION := 1.4.0
PKG_RELEASE := 3
PKG_RELEASE := 4
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/facebook/zstd/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/facebook/zstd/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := 63be339137d2b683c6d19a9e34f4fb684790e864fee13c7dd40e197a64c705c1
PKG_HASH := 63be339137d2b683c6d19a9e34f4fb684790e864fee13c7dd40e197a64c705c1
PKG_MAINTAINER := Amol Bhave <ambhave@fb.com>
PKG_LICENSE := GPL-2.0-or-later
PKG_LICENSE := GPL-2.0-or-later
PKG_LICENSE_FILES := COPYING
PKG_LICENSE_FILES := COPYING
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 ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
HOST_BUILD_PARALLEL := 1
HOST_BUILD_PARALLEL := 1
CMAKE_SOURCE_SUBDIR := build/cmake
CMAKE_SOURCE_SUBDIR := build/cmake
CMAKE_INSTALL := 1
CMAKE_INSTALL := 1
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 ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
i f e q ( $( CONFIG_ZSTD_OPTIMIZE_O 3) , y )
i f e q ( $( CONFIG_ZSTD_OPTIMIZE_O 3) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) )
TARGET_CFLAGS += -O3
TARGET_CFLAGS += -O3
@ -30,7 +31,6 @@ endif
d e f i n e P a c k a g e / z s t d / D e f a u l t
d e f i n e P a c k a g e / z s t d / D e f a u l t
SUBMENU:= Compression
SUBMENU:= Compression
URL:= https://github.com/facebook/zstd
URL:= https://github.com/facebook/zstd
MAINTAINER:= Amol Bhave <ambhave@fb.com>
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b z s t d
d e f i n e P a c k a g e / l i b z s t d
@ -68,12 +68,12 @@ endef
d e f i n e P a c k a g e / l i b z s t d / i n s t a l l
d e f i n e P a c k a g e / l i b z s t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA ) $( PKG_INSTALL_DIR) /usr/lib/libzstd.so* $( 1) /usr/lib/
$( CP ) $( PKG_INSTALL_DIR) /usr/lib/libzstd.so* $( 1) /usr/lib/
e n d e f
e n d e f
d e f i n e P a c k a g e / z s t d / i n s t a l l
d e f i n e P a c k a g e / z s t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN ) $( PKG_INSTALL_DIR) /usr/bin/{ unzstd,zstd,zstdcat,zstdmt} $( 1) /usr/bin/
$( CP ) $( PKG_INSTALL_DIR) /usr/bin/{ unzstd,zstd,zstdcat,zstdmt} $( 1) /usr/bin/
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,libzstd ) )
$( eval $ ( call BuildPackage ,libzstd ) )