import p7zip 4.44

p7zip is a port of 7-zip for *nix platforms.
7-zip is a file archiver with a high compression ratio.

from Josh Grosse <josh at jggimi.homeip.net> and
Stuart Henderson <stu at spacehopper.org>

with testing, feedback, and ok from naddy@
This commit is contained in:
steven 2007-04-20 17:50:05 +00:00
parent 26536c1e60
commit a2610717e5
9 changed files with 257 additions and 0 deletions

57
archivers/p7zip/Makefile Normal file
View File

@ -0,0 +1,57 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
SHARED_ONLY= Yes
COMMENT-main= "file archiver with high compression ratio"
COMMENT-rar= "rar modules for p7zip"
V= 4.44
DISTNAME= p7zip_${V}_src_all
PKGNAME= p7zip-${V}
PKGNAME-main= p7zip-${V}
PKGNAME-rar= p7zip-rar-${V}
CATEGORIES= archivers
HOMEPAGE= http://www.7-zip.org/
MAINTAINER= Josh Grosse <josh@jggimi.homeip.net>
# LGPL, except unRar plugin which is licensed as Freeware
PERMIT_PACKAGE_CDROM-rar= "no fee"
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= "no fee"
PERMIT_DISTFILES_FTP= Yes
WANTLIB-main= c m pthread stdc++
WANTLIB-rar= pthread
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -rar
RUN_DEPENDS-rar=::archivers/p7zip,-main
WRKDIST= ${WRKDIR}/p7zip_${V}
MAKE_FILE= makefile
MAKE_FLAGS= MYCC="${CC}" MYCXX="${CXX}" \
MYCFLAGS="${CFLAGS}" MYCXXFLAGS="${CXXFLAGS}"
ALL_TARGET= all3
REGRESS_TARGET= test
do-configure:
cp ${WRKSRC}/makefile.openbsd ${WRKSRC}/makefile.machine
do-install:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} PREFIX=${TRUEPREFIX} \
DESTDIR=${DESTDIR} /bin/sh install.sh
.include <bsd.port.mk>
# unaligned access error in NCompress::NPPMD::CInfo::CreateSuccessors()
.if ${MACHINE_ARCH} == "alpha"
CXXFLAGS:= ${CXXFLAGS:N-O*}
.endif

5
archivers/p7zip/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (p7zip_4.44_src_all.tar.bz2) = eLBL7Rah5+kbW/Lx+Eq4EQ==
RMD160 (p7zip_4.44_src_all.tar.bz2) = oE8TxVziF4HEY968V4/UgZ8XGt8=
SHA1 (p7zip_4.44_src_all.tar.bz2) = R04keafOsZ/PdeYXhOLE7PLS9+c=
SHA256 (p7zip_4.44_src_all.tar.bz2) = y4cwT2gucXarlc5z084re2U4TgUScvw075NOJCe7068=
SIZE (p7zip_4.44_src_all.tar.bz2) = 1518820

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-CPP_myWindows_myGetNumberOfProcessors_cpp,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
--- CPP/myWindows/myGetNumberOfProcessors.cpp.orig Sat Jan 20 18:06:41 2007
+++ CPP/myWindows/myGetNumberOfProcessors.cpp Sat Apr 14 07:28:38 2007
@@ -14,16 +14,16 @@ namespace NWindows
{
#if defined (__NetBSD__) || defined(__OpenBSD__)
int GetNumberOfProcessors() {
- int mib[2];
- size_t value[2];
+ int mib[2], value;
+ size_t len;
int nbcpu = 1;
mib[0] = CTL_HW;
mib[1] = HW_NCPU;
- value[1] = sizeof(size_t);
- if (sysctl(mib, 2, value, value+1, NULL, 0) >= 0)
- if (value[0] > nbcpu)
- nbcpu = value[0];
+ len = sizeof(value);
+ if (sysctl(mib, 2, &value, &len, NULL, 0) >= 0)
+ if (value > nbcpu)
+ nbcpu = value;
return nbcpu;
}
#elif defined (__FreeBSD__)

View File

@ -0,0 +1,35 @@
$OpenBSD: patch-install_sh,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
--- install.sh.orig Tue Jun 27 23:09:12 2006
+++ install.sh Wed Jan 10 19:27:47 2007
@@ -1,14 +1,14 @@
#! /bin/sh
# global install
-DEST_HOME=/usr/local
+DEST_HOME=${PREFIX}
# for testing
# DEST_HOME=${HOME}/INSTALL/usr/local
DEST_BIN=${DEST_HOME}/bin
DEST_SHARE=${DEST_HOME}/lib/p7zip
DEST_SHARE_DOC=${DEST_HOME}/share/doc/p7zip
DEST_MAN=${DEST_HOME}/man
-DEST_DIR=
+DEST_DIR=${DESTDIR}
[ "$1" ] && DEST_BIN=$1
[ "$2" ] && DEST_SHARE=$2
[ "$3" ] && DEST_MAN=$3
@@ -163,10 +163,10 @@ fi
if [ -d DOCS ]
then
- echo "- installing HTML help in ${DEST_DIR}${DEST_SHARE_DOC}/DOCS"
+ echo "- installing HTML help in ${DEST_DIR}${DEST_SHARE_DOC}"
mkdir -p ${DEST_DIR}${DEST_SHARE_DOC}
- cp -r DOCS ${DEST_DIR}${DEST_SHARE_DOC}/DOCS
- find ${DEST_DIR}${DEST_SHARE_DOC}/DOCS -type d -exec chmod 555 {} \;
- find ${DEST_DIR}${DEST_SHARE_DOC}/DOCS -type f -exec chmod 444 {} \;
+ cp -r DOCS/* ${DEST_DIR}${DEST_SHARE_DOC}
+ find ${DEST_DIR}${DEST_SHARE_DOC} -type d -exec chmod 555 {} \;
+ find ${DEST_DIR}${DEST_SHARE_DOC} -type f -exec chmod 444 {} \;
fi

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-makefile_openbsd,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
--- makefile.openbsd.orig Fri May 19 19:52:42 2006
+++ makefile.openbsd Mon Apr 16 09:52:33 2007
@@ -3,17 +3,17 @@
# LITTLE_ENDIAN and BIG_ENDIAN are already defined by the system headers
#
-OPTFLAGS=-O
+MYCFLAGS?=-O
+MYCXXFLAGS?=-O
-ALLFLAGS=${OPTFLAGS} -s \
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
- -DNDEBUG -D_REENTRANT -DENV_UNIX \
+ALLFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
+ -DNDEBUG -D_REENTRANT -DENV_UNIX -fPIC \
$(LOCAL_FLAGS)
-
-CXX=g++ $(ALLFLAGS)
-CC=gcc $(ALLFLAGS)
+
+CXX=$(MYCXX) $(ALLFLAGS) $(MYCXXFLAGS)
+CC=$(MYCC) $(ALLFLAGS) $(MYCFLAGS)
LINK_SHARED=-shared
-
+
LOCAL_LIBS=-lpthread
LOCAL_LIBS_DLL=$(LOCAL_LIBS)

View File

@ -0,0 +1,10 @@
p7zip is a port of 7-zip for *nix platforms.
7-zip is a file archiver with a high compression ratio.
7z uses plugins to handle archives, excepting rar archives.
unRar is available as a subpackage due to licensing.
7za is a stand-alone executable, and handles less archive
formats than 7z.
7zr is a light stand-alone executable that supports only
7z/LZMA/BCJ/BCJ2.

View File

@ -0,0 +1 @@
rar modules for p7zip.

View File

@ -0,0 +1,90 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
bin/7z
bin/7za
bin/7zr
lib/p7zip/
lib/p7zip/7z
lib/p7zip/7zCon.sfx
lib/p7zip/7za
lib/p7zip/7zr
lib/p7zip/Codecs/
lib/p7zip/Codecs/7zAES.so
lib/p7zip/Codecs/AES.so
lib/p7zip/Codecs/BZip2.so
lib/p7zip/Codecs/Branch.so
lib/p7zip/Codecs/Copy.so
lib/p7zip/Codecs/Deflate.so
lib/p7zip/Codecs/LZMA.so
lib/p7zip/Codecs/PPMD.so
lib/p7zip/Codecs/Swap.so
lib/p7zip/Formats/
lib/p7zip/Formats/7z.so
lib/p7zip/Formats/Tar.so
lib/p7zip/Formats/Zip.so
lib/p7zip/Formats/arj.so
lib/p7zip/Formats/bz2.so
lib/p7zip/Formats/cab.so
lib/p7zip/Formats/chm.so
lib/p7zip/Formats/cpio.so
lib/p7zip/Formats/deb.so
lib/p7zip/Formats/gz.so
lib/p7zip/Formats/iso.so
lib/p7zip/Formats/lzh.so
lib/p7zip/Formats/nsis.so
lib/p7zip/Formats/rpm.so
lib/p7zip/Formats/split.so
lib/p7zip/Formats/z.so
@man man/man1/7z.1
@man man/man1/7za.1
@man man/man1/7zr.1
share/doc/p7zip/
share/doc/p7zip/7zC.txt
share/doc/p7zip/7zFormat.txt
share/doc/p7zip/ChangeLog
share/doc/p7zip/MANUAL/
share/doc/p7zip/MANUAL/commands/
share/doc/p7zip/MANUAL/commands/add.htm
share/doc/p7zip/MANUAL/commands/delete.htm
share/doc/p7zip/MANUAL/commands/extract.htm
share/doc/p7zip/MANUAL/commands/extract_full.htm
share/doc/p7zip/MANUAL/commands/index.htm
share/doc/p7zip/MANUAL/commands/list.htm
share/doc/p7zip/MANUAL/commands/style.css
share/doc/p7zip/MANUAL/commands/test.htm
share/doc/p7zip/MANUAL/commands/update.htm
share/doc/p7zip/MANUAL/exit_codes.htm
share/doc/p7zip/MANUAL/index.htm
share/doc/p7zip/MANUAL/style.css
share/doc/p7zip/MANUAL/switches/
share/doc/p7zip/MANUAL/switches/ar_exclude.htm
share/doc/p7zip/MANUAL/switches/ar_include.htm
share/doc/p7zip/MANUAL/switches/ar_no.htm
share/doc/p7zip/MANUAL/switches/charset.htm
share/doc/p7zip/MANUAL/switches/email.htm
share/doc/p7zip/MANUAL/switches/exclude.htm
share/doc/p7zip/MANUAL/switches/include.htm
share/doc/p7zip/MANUAL/switches/index.htm
share/doc/p7zip/MANUAL/switches/large_pages.htm
share/doc/p7zip/MANUAL/switches/list_tech.htm
share/doc/p7zip/MANUAL/switches/method.htm
share/doc/p7zip/MANUAL/switches/output_dir.htm
share/doc/p7zip/MANUAL/switches/overwrite.htm
share/doc/p7zip/MANUAL/switches/password.htm
share/doc/p7zip/MANUAL/switches/recurse.htm
share/doc/p7zip/MANUAL/switches/sfx.htm
share/doc/p7zip/MANUAL/switches/stdin.htm
share/doc/p7zip/MANUAL/switches/stdout.htm
share/doc/p7zip/MANUAL/switches/stop_switch.htm
share/doc/p7zip/MANUAL/switches/style.css
share/doc/p7zip/MANUAL/switches/type.htm
share/doc/p7zip/MANUAL/switches/update.htm
share/doc/p7zip/MANUAL/switches/volume.htm
share/doc/p7zip/MANUAL/switches/working_dir.htm
share/doc/p7zip/MANUAL/switches/yes.htm
share/doc/p7zip/MANUAL/syntax.htm
share/doc/p7zip/Methods.txt
share/doc/p7zip/README
share/doc/p7zip/copying.txt
share/doc/p7zip/history.txt
share/doc/p7zip/lzma.txt
share/doc/p7zip/readme.txt

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST-rar,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
lib/p7zip/Codecs/Rar29.so
lib/p7zip/Formats/Rar.so
share/doc/p7zip/unRarLicense.txt