board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / p7zip / p7zip.mk
blob15d513814936c2e9b91c7657c53f40bc18e73cd5
1 ################################################################################
3 # p7zip
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)" \
20 -C $(@D) 7zr
21 endef
23 define P7ZIP_INSTALL_TARGET_CMDS
24 $(INSTALL) -D -m 0755 $(@D)/bin/7zr $(TARGET_DIR)/usr/bin/7zr
25 endef
27 $(eval $(generic-package))