NetBSD pkgsrc (package source) is a package management system for
Unix-like operating systems
p7zip is a port of the Windows program 7za.exe.
7za.exe is a file archiver with the highest compression ratio.
# $NetBSD: Makefile,v 1.47 2010/06/16 08:30:09 adam Exp $
DISTNAME= p7zip_9.13_src_all
PKGNAME= p7zip-9.13
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://p7zip.sourceforge.net/
COMMENT= File archiver with high compression
LICENSE= gnu-lgpl-v2.1 AND unrar-license
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
MAKE_FILE= makefile
MAKE_JOBS_SAFE= no # missing header when compiling sfx
NO_CONFIGURE= yes
PTHREAD_OPTS+= require
PLIST_VARS= dll
# compiles, but does not recognize any archives as supported
DYNAMIC_7Z= NO
.if !empty(DYNAMIC_7Z:MYES)
BUILD_TARGET= all2
PLIST.dll= yes
.endif
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/-/_/}
GCC_REQD+= 3.0
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
.if !empty(DYNAMIC_7Z:MYES)
INSTALLATION_DIRS+= lib/7z
INSTALLATION_DIRS+= lib/7z/Codecs
INSTALLATION_DIRS+= lib/7z/Formats
.endif
INSTALLATION_DIRS+= share/doc/p7zip
INSTALLATION_DIRS+= share/doc/p7zip/commands
INSTALLATION_DIRS+= share/doc/p7zip/switches
.include "../../mk/endian.mk"
.if !empty(MACHINE_ENDIAN:Mbig)
CFLAGS+= -DBIG_ENDIAN
.else
CFLAGS+= -DLITTLE_ENDIAN
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${DESTDIR}${PREFIX}/bin
.if !empty(DYNAMIC_7Z:MYES)
${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${DESTDIR}${PREFIX}/lib/7z
ln -s ${PREFIX}/lib/7z/7z ${DESTDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/bin/Codecs/* \
${DESTDIR}${PREFIX}/lib/7z/Codecs
${INSTALL_LIB} ${WRKSRC}/bin/Formats/* \
${DESTDIR}${PREFIX}/lib/7z/Formats
.else
ln -s 7za ${DESTDIR}${PREFIX}/bin/7z
.endif
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/p7zip
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/*.* \
${DESTDIR}${PREFIX}/share/doc/p7zip
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/commands/*.* \
${DESTDIR}${PREFIX}/share/doc/p7zip/commands
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/switches/*.* \
${DESTDIR}${PREFIX}/share/doc/p7zip/switches
${INSTALL_MAN} ${WRKSRC}/man1/7z.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/man1/7za.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/man1/7zr.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.16 2010/06/16 08:30:09 adam Exp $
bin/7z
bin/7za
${PLIST.dll}lib/7z/7z
${PLIST.dll}lib/7z/Codecs/7zAES.dll
${PLIST.dll}lib/7z/Codecs/AES.dll
${PLIST.dll}lib/7z/Codecs/BZip2.dll
${PLIST.dll}lib/7z/Codecs/Branch.dll
${PLIST.dll}lib/7z/Codecs/Copy.dll
${PLIST.dll}lib/7z/Codecs/Deflate.dll
${PLIST.dll}lib/7z/Codecs/Implode.dll
${PLIST.dll}lib/7z/Codecs/LZMA.dll
${PLIST.dll}lib/7z/Codecs/PPMD.dll
${PLIST.dll}lib/7z/Codecs/Swap.dll
${PLIST.dll}lib/7z/Formats/7z.dll
${PLIST.dll}lib/7z/Formats/Rar.dll
${PLIST.dll}lib/7z/Formats/Tar.dll
${PLIST.dll}lib/7z/Formats/Zip.dll
${PLIST.dll}lib/7z/Formats/arj.dll
${PLIST.dll}lib/7z/Formats/bz2.dll
${PLIST.dll}lib/7z/Formats/cab.dll
${PLIST.dll}lib/7z/Formats/cpio.dll
${PLIST.dll}lib/7z/Formats/deb.dll
${PLIST.dll}lib/7z/Formats/gz.dll
${PLIST.dll}lib/7z/Formats/rpm.dll
${PLIST.dll}lib/7z/Formats/split.dll
man/man1/7z.1
man/man1/7za.1
man/man1/7zr.1
share/doc/p7zip/README
share/doc/p7zip/commands/add.htm
share/doc/p7zip/commands/bench.htm
share/doc/p7zip/commands/delete.htm
share/doc/p7zip/commands/extract.htm
share/doc/p7zip/commands/extract_full.htm
share/doc/p7zip/commands/index.htm
share/doc/p7zip/commands/list.htm
share/doc/p7zip/commands/style.css
share/doc/p7zip/commands/test.htm
share/doc/p7zip/commands/update.htm
share/doc/p7zip/exit_codes.htm
share/doc/p7zip/index.htm
share/doc/p7zip/style.css
share/doc/p7zip/switches/ar_exclude.htm
share/doc/p7zip/switches/ar_include.htm
share/doc/p7zip/switches/ar_no.htm
share/doc/p7zip/switches/charset.htm
share/doc/p7zip/switches/exclude.htm
share/doc/p7zip/switches/include.htm
share/doc/p7zip/switches/index.htm
share/doc/p7zip/switches/large_pages.htm
share/doc/p7zip/switches/list_tech.htm
share/doc/p7zip/switches/method.htm
share/doc/p7zip/switches/output_dir.htm
share/doc/p7zip/switches/overwrite.htm
share/doc/p7zip/switches/password.htm
share/doc/p7zip/switches/recurse.htm
share/doc/p7zip/switches/sfx.htm
share/doc/p7zip/switches/ssc.htm
share/doc/p7zip/switches/stdin.htm
share/doc/p7zip/switches/stdout.htm
share/doc/p7zip/switches/stop_switch.htm
share/doc/p7zip/switches/style.css
share/doc/p7zip/switches/type.htm
share/doc/p7zip/switches/update.htm
share/doc/p7zip/switches/volume.htm
share/doc/p7zip/switches/working_dir.htm
share/doc/p7zip/switches/yes.htm
share/doc/p7zip/syntax.htm
$NetBSD: distinfo,v 1.36 2010/06/16 08:30:09 adam Exp $
SHA1 (p7zip_9.13_src_all.tar.bz2) = 81da0729561ce123c0a82656ec96a04ad5bfa522
RMD160 (p7zip_9.13_src_all.tar.bz2) = beb9181330f4dfa75aa4f473c68a462c76b7ab19
Size (p7zip_9.13_src_all.tar.bz2) = 3753579 bytes
SHA1 (patch-aa) = 6df31ad2f391b7f1b5220f05ff0142ee258a92e7
SHA1 (patch-ab) = fedaf15990d9c01bdefcd2a0bd9a740f965247b0
SHA1 (patch-ac) = f5f0acd488a7c524b692b5660042baa79f9937ce