kumquat-buildroot/package/p7zip/p7zip.mk
André Zwing dd2eec6b2f package/p7zip: bump to version v17.05
The project now has its own group on github, so switch to that one. Also
update the Config.in URL to point to that one - the sourceforge project
is pretty much abandoned.

What's Changed

  - add UTF-8 support for Client7z by @flyfishzy in #214
  - fix issue 130 by @jinfeihan57 in 295dac8

Signed-off-by: André Zwing <nerv@dawncrow.de>
[Arnout: also update URL; extend commit message]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
2024-03-25 21:42:48 +01:00

35 lines
1.0 KiB
Makefile

################################################################################
#
# p7zip
#
################################################################################
P7ZIP_VERSION = 17.05
P7ZIP_SITE = $(call github,p7zip-project,p7zip,v$(P7ZIP_VERSION))
P7ZIP_LICENSE = LGPL-2.1+ with unRAR restriction
P7ZIP_LICENSE_FILES = DOC/License.txt
P7ZIP_CPE_ID_VENDOR = 7-zip
ifeq ($(BR2_PACKAGE_P7ZIP_7ZA),y)
P7ZIP_TARGET = 7za
else
P7ZIP_TARGET = 7zr
endif
# p7zip buildsystem is a mess: it plays dirty tricks with CFLAGS and
# CXXFLAGS, so we can't pass them. Instead, it accepts ALLFLAGS_C
# and ALLFLAGS_CPP as variables to pass the CFLAGS and CXXFLAGS.
define P7ZIP_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" ALLFLAGS_C="$(TARGET_CFLAGS)" \
CXX="$(TARGET_CXX)" ALLFLAGS_CPP="$(TARGET_CXXFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
-C $(@D) $(P7ZIP_TARGET)
endef
define P7ZIP_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/bin/$(P7ZIP_TARGET) \
$(TARGET_DIR)/usr/bin/$(P7ZIP_TARGET)
endef
$(eval $(generic-package))