-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
config BR2_PACKAGE_PIGZ | ||
bool "pigz" | ||
depends on BR2_TOOLCHAIN_HAS_THREADS | ||
select BR2_PACKAGE_ZLIB | ||
help | ||
pigz, which stands for parallel implementation of gzip, is a | ||
fully functional replacement for gzip that exploits multiple | ||
processors and multiple cores to the hilt when compressing | ||
data. | ||
|
||
http://www.zlib.net/pigz/ | ||
|
||
comment "pigz needs a toolchain w/ threads" | ||
depends on !BR2_TOOLCHAIN_HAS_THREADS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
############################################################# | ||
# | ||
# pigz | ||
# | ||
############################################################# | ||
PIGZ_VERSION = 2.4 | ||
PIGZ_SOURCE = pigz-$(PIGZ_VERSION).tar.gz | ||
PIGZ_SITE = zlib.net/pigz | ||
#download.freenas.org/distfiles | ||
PIGZ_CAT = $(ZCAT) | ||
PIGZ_DIR = $(BUILD_DIR)/pigz-$(PIGZ_VERSION) | ||
PIGZ_BINARY = pigz | ||
PIGZ_DEPENDENCIES = zlib | ||
|
||
define PIGZ_EXTRACT_CMDS | ||
$(ZCAT) $(DL_DIR)/$(PIGZ_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - | ||
endef | ||
|
||
define PIGZ_BUILD_CMDS | ||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ | ||
CFLAGS="$(TARGET_CFLAGS)" \ | ||
LDFLAGS="$(TARGET_LDFLAGS)" | ||
endef | ||
|
||
define PIGZ_INSTALL_TARGET_CMDS | ||
$(INSTALL) -D -m 0755 $(@D)/pigz $(TARGET_DIR)/usr/bin/pigz | ||
$(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/bin/pigz | ||
endef | ||
|
||
$(eval $(generic-package)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters