Browse Source

Merge pull request #9198 from xinxijishuwyq/master

pigz: add package
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
b4d504e2b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions
  1. +35
    -0
      utils/pigz/Makefile
  2. +14
    -0
      utils/pigz/patches/001.patch

+ 35
- 0
utils/pigz/Makefile View File

@ -0,0 +1,35 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=pigz
PKG_VERSION:=2.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://zlib.net/pigz/
PKG_HASH:=a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73
PKG_MAINTAINER:=Ken Wong <xinxijishuwyq@gmail.com>
PKG_LICENSE:=CUSTOM
PKG_LICENSE_FILES:=README
PKG_CPE_ID:=cpe:/a:zlib:pigz
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/pigz
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Compression
TITLE:=pigz
URL:=https://zlib.net/pigz
DEPENDS:=+zlib
endef
define Package/pigz/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pigz $(1)/usr/bin/pigz
endef
$(eval $(call BuildPackage,pigz))

+ 14
- 0
utils/pigz/patches/001.patch View File

@ -0,0 +1,14 @@
--- a/Makefile 2019-05-22 19:54:23.980451289 +0800
+++ b/Makefile 2019-06-10 10:32:58.054675929 +0800
@@ -1,7 +1,7 @@
-CC=gcc
-CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas
-LDFLAGS=
-LIBS=-lm -lpthread -lz
+CC?=gcc
+CFLAGS?=-O3 -Wall -Wextra -Wno-unknown-pragmas
+LDFLAGS?=
+LIBS?=-lm -lpthread -lz
ZOPFLI=zopfli/src/zopfli/
ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o

Loading…
Cancel
Save