| 1 | NAME = p7zip |
|---|
| 2 | VERSION = 9.20.1 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = File archiver with high compression ratio |
|---|
| 6 | define BLURB |
|---|
| 7 | p7zip is a Unix port of 7-Zip, a file archiver with high compression |
|---|
| 8 | ratio (www.7-zip.org) with lots of features: |
|---|
| 9 | |
|---|
| 10 | * 7-Zip is free software distributed under the GNU LGPL |
|---|
| 11 | * High compression ratio in new 7z format with LZMA compression |
|---|
| 12 | o Unicode file names |
|---|
| 13 | o Variable dictionary size (up to 4 GB) |
|---|
| 14 | o Compressing speed: about 1 MB/s on 2 GHz CPU |
|---|
| 15 | o Decompressing speed: about 10-20 MB/s on 2 GHz CPU |
|---|
| 16 | * Supported formats: |
|---|
| 17 | o Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR |
|---|
| 18 | o Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM, Z, CPIO, RPM, DEB |
|---|
| 19 | and NSIS |
|---|
| 20 | * For ZIP and GZIP formats 7-Zip provides compression ratio that is |
|---|
| 21 | 2-10 % better than ratio provided by PKZip and WinZip |
|---|
| 22 | * Self-extracting capability for 7z format |
|---|
| 23 | endef |
|---|
| 24 | |
|---|
| 25 | MASTER_SITES = $(SF_MIRROR) |
|---|
| 26 | DISTNAME = $(NAME)_$(VERSION) |
|---|
| 27 | DISTFILES = $(DISTNAME)_src_all.tar.bz2 |
|---|
| 28 | PATCHFILES += patch-CPP-7zip-Archive-Zip-ZipHandler.cpp |
|---|
| 29 | PATCHFILES += patch-install.sh |
|---|
| 30 | PATCHFILES += 0001-Disable-unrecognized-pragma.patch |
|---|
| 31 | |
|---|
| 32 | VENDOR_URL = http://p7zip.sourceforge.net/ |
|---|
| 33 | LICENSE = DOCS/License.txt |
|---|
| 34 | |
|---|
| 35 | # since there is no configure script, this is intentionally left empty |
|---|
| 36 | CONFIGURE_SCRIPTS = |
|---|
| 37 | |
|---|
| 38 | # Defaults taken from makefile.solaris_sparc_CC_32 |
|---|
| 39 | EXTRA_CPPFLAGS = -s -mt \ |
|---|
| 40 | -DHAVE_LONG_LONG \ |
|---|
| 41 | -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ |
|---|
| 42 | -DENV_UNIX \ |
|---|
| 43 | -DNDEBUG -D_REENTRANT |
|---|
| 44 | EXTRA_CPPFLAGS += -DBREAK_HANDLER -DUNICODE -D_UNICODE |
|---|
| 45 | EXTRA_CPPFLAGS += -I../../C |
|---|
| 46 | |
|---|
| 47 | BUILD_OVERRIDE_VARS = CXX CC CC_SHARED LINK_SHARED LOCAL_LIBS LOCAL_LIBS_DLL OBJ_CRC32 |
|---|
| 48 | BUILD_OVERRIDE_VAR_CXX = $(CXX) $(CPPFLAGS) $(CXXFLAGS) |
|---|
| 49 | BUILD_OVERRIDE_VAR_CC = $(CC) $(CPPFLAGS) $(CFLAGS) |
|---|
| 50 | BUILD_OVERRIDE_VAR_CC_SHARED = $(LDFLAGS) -KPIC |
|---|
| 51 | BUILD_OVERRIDE_VAR_LINK_SHARED = $(LDFLAGS) -KPIC -G |
|---|
| 52 | BUILD_OVERRIDE_VAR_LOCAL_LIBS = -lpthread -lCrun |
|---|
| 53 | BUILD_OVERRIDE_VAR_LOCAL_LIBS += -norunpath |
|---|
| 54 | BUILD_OVERRIDE_VAR_LOCAL_LIBS_DLL = -lpthread -lCrun -ldl |
|---|
| 55 | BUILD_OVERRIDE_VAR_LOCAL_LIBS_DLL += -norunpath |
|---|
| 56 | BUILD_OVERRIDE_VAR_OBJ_CRC32 = $$(OBJ_CRC32_C) |
|---|
| 57 | |
|---|
| 58 | INSTALL_ARGS = DEST_HOME="$(DESTDIR)$(prefix)" |
|---|
| 59 | INSTALL_ARGS += DEST_MAN="$(DESTDIR)$(mandir)" |
|---|
| 60 | |
|---|
| 61 | # Location of the system locale |
|---|
| 62 | CHECKPKG_OVERRIDES_CSWp7zip += file-with-bad-content|/usr/share|root/opt/csw/share/doc/p7zip/README |
|---|
| 63 | # This is an example |
|---|
| 64 | CHECKPKG_OVERRIDES_CSWp7zip += file-with-bad-content|/usr/local|root/opt/csw/share/doc/p7zip/README |
|---|
| 65 | |
|---|
| 66 | include gar/category.mk |
|---|