From 2fca8259a61061a4e0cba941b63692d4cebf0374 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Sat, 28 Sep 2024 00:01:17 -0500 Subject: [PATCH] archivers/7zip --- archivers-7zip/Makefile | 41 +++++++++++++++++++ archivers-7zip/distinfo | 2 + .../patches/patch-CPP_7zip_7zip_gcc_mak | 12 ++++++ archivers-7zip/pkg/DESCR | 6 +++ archivers-7zip/pkg/PLIST | 1 + 5 files changed, 62 insertions(+) create mode 100644 archivers-7zip/Makefile create mode 100644 archivers-7zip/distinfo create mode 100644 archivers-7zip/patches/patch-CPP_7zip_7zip_gcc_mak create mode 100644 archivers-7zip/pkg/DESCR create mode 100644 archivers-7zip/pkg/PLIST diff --git a/archivers-7zip/Makefile b/archivers-7zip/Makefile new file mode 100644 index 0000000..a2d8dd2 --- /dev/null +++ b/archivers-7zip/Makefile @@ -0,0 +1,41 @@ +COMMENT = file archiver with a high compression ratio + +V = 24.08 +DISTNAME = 7z2408-src +PKGNAME = 7zip-${V} + +CATEGORIES = archivers + +HOMEPAGE = https://7-zip.org + +MAINTAINER = "Ed " + +# LGPLv2.1 +PERMIT_PACKAGE = Yes + +WANTLIB = ${COMPILER_LIBCXX} c m + +SITES = "https://github.com/ip7z/7zip/releases/download/${V}/" + +EXTRACT_SUFX = .tar.xz + +FIX_CRLF_FILES = CPP/7zip/7zip_gcc.mak + +COMPILER = base-clang ports-gcc + +USE_GMAKE = Yes +CONFIGURE_STYLE = none + +NO_TEST = Yes + +MAKE_FILE_base-clang = ../../cmpl_clang.mak +MAKE_FILE_ports-gcc = ../../cmpl_gcc.mak +MAKE_FILE = ${MAKE_FILE_${CHOSEN_COMPILER}} + +WRKDIST = ${WRKDIR} +WRKSRC = ${WRKDIST}/CPP/7zip/Bundles/Alone2 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/b/c/7zz ${PREFIX}/bin + +.include diff --git a/archivers-7zip/distinfo b/archivers-7zip/distinfo new file mode 100644 index 0000000..a1873cf --- /dev/null +++ b/archivers-7zip/distinfo @@ -0,0 +1,2 @@ +SHA256 (7z2408-src.tar.xz) = qgSqyQagTfWecwH0xp6fSICObI7K5OtpdwOke/sKwEI= +SIZE (7z2408-src.tar.xz) = 1493700 diff --git a/archivers-7zip/patches/patch-CPP_7zip_7zip_gcc_mak b/archivers-7zip/patches/patch-CPP_7zip_7zip_gcc_mak new file mode 100644 index 0000000..4a9606d --- /dev/null +++ b/archivers-7zip/patches/patch-CPP_7zip_7zip_gcc_mak @@ -0,0 +1,12 @@ +Index: CPP/7zip/7zip_gcc.mak +--- CPP/7zip/7zip_gcc.mak.orig Sun Jun 16 03:00:00 2024 ++++ CPP/7zip/7zip_gcc.mak Fri Sep 27 22:21:23 2024 +@@ -162,7 +162,7 @@ DEL_OBJ_EXE = -$(RM) $(PROGPATH) $(PROGPATH_STATIC) $( + # LOCAL_LIBS=-lpthread + # LOCAL_LIBS_DLL=$(LOCAL_LIBS) -ldl + LIB2 = -lpthread +-LIB2 = -lpthread -ldl ++#LIB2 = -lpthread -ldl + + + endif diff --git a/archivers-7zip/pkg/DESCR b/archivers-7zip/pkg/DESCR new file mode 100644 index 0000000..690ffd3 --- /dev/null +++ b/archivers-7zip/pkg/DESCR @@ -0,0 +1,6 @@ +7-Zip is a file archiver with a high compression ratio. + +The main features of 7-Zip are: +- High compression ratio in 7z format with LZMA and LZMA2 compression +- Multiple supported formats (7z, XZ, BZIP2, GZIP, TAR, ZIP, WIM, etc.) +- Strong AES-256 encryption in 7z and ZIP formats diff --git a/archivers-7zip/pkg/PLIST b/archivers-7zip/pkg/PLIST new file mode 100644 index 0000000..78958a4 --- /dev/null +++ b/archivers-7zip/pkg/PLIST @@ -0,0 +1 @@ +@bin bin/7zz