1 ################################################################################
5 ################################################################################
7 P7ZIP_VERSION
= 15.14.1
8 P7ZIP_SOURCE
= p7zip_
$(P7ZIP_VERSION
)_src_all.
tar.bz2
9 P7ZIP_SITE
= http
://downloads.sourceforge.net
/project
/p7zip
/p7zip
/$(P7ZIP_VERSION
)
10 P7ZIP_LICENSE
= LGPLv2.1
+ with unRAR restriction
11 P7ZIP_LICENSE_FILES
= DOC
/License.txt
13 # p7zip buildsystem is a mess: it plays dirty tricks with CFLAGS and
14 # CXXFLAGS, so we can't pass them. Instead, it accepts ALLFLAGS_C
15 # and ALLFLAGS_CPP as variables to pass the CFLAGS and CXXFLAGS.
16 define P7ZIP_BUILD_CMDS
17 $(TARGET_MAKE_ENV
) $(MAKE
) CC
="$(TARGET_CC)" ALLFLAGS_C
="$(TARGET_CFLAGS)" \
18 CXX
="$(TARGET_CXX)" ALLFLAGS_CPP
="$(TARGET_CXXFLAGS)" \
19 LDFLAGS
="$(TARGET_LDFLAGS)" \
23 define P7ZIP_INSTALL_TARGET_CMDS
24 $(INSTALL
) -D
-m
0755 $(@D
)/bin
/7zr
$(TARGET_DIR
)/usr
/bin
/7zr
27 $(eval
$(generic-package
))