2016-05-31 23:57:51 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# p7zip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
P7ZIP_VERSION = 15.14.1
|
|
|
|
P7ZIP_SOURCE = p7zip_$(P7ZIP_VERSION)_src_all.tar.bz2
|
|
|
|
P7ZIP_SITE = http://downloads.sourceforge.net/project/p7zip/p7zip/$(P7ZIP_VERSION)
|
2017-03-30 15:43:34 +02:00
|
|
|
P7ZIP_LICENSE = LGPL-2.1+ with unRAR restriction
|
2016-05-31 23:57:51 +02:00
|
|
|
P7ZIP_LICENSE_FILES = DOC/License.txt
|
|
|
|
|
|
|
|
# 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
|
2016-10-17 18:06:45 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" ALLFLAGS_C="$(TARGET_CFLAGS)" \
|
2016-05-31 23:57:51 +02:00
|
|
|
CXX="$(TARGET_CXX)" ALLFLAGS_CPP="$(TARGET_CXXFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
-C $(@D) 7zr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define P7ZIP_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/7zr $(TARGET_DIR)/usr/bin/7zr
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|