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.42 2008/06/23 16:50:24 adam Exp $
DISTNAME= p7zip_4.58_src_all
PKGNAME= p7zip-4.58
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
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.14 2008/04/12 22:42:57 jlam 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/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
@dirrm share/doc/p7zip/switches
@dirrm share/doc/p7zip/commands
@dirrm share/doc/p7zip
${PLIST.dll}@dirrm lib/7z/Formats
${PLIST.dll}@dirrm lib/7z/Codecs
${PLIST.dll}@dirrm lib/7z
$NetBSD: distinfo,v 1.32 2008/06/23 16:50:24 adam Exp $
SHA1 (p7zip_4.58_src_all.tar.bz2) = 7525bbb12ec94186e9e40d3614cdfd5f6f63cab6
RMD160 (p7zip_4.58_src_all.tar.bz2) = 2c31ab657275dc01d2d23c5de2327d5ee46f4e8a
Size (p7zip_4.58_src_all.tar.bz2) = 1948207 bytes
SHA1 (patch-aa) = 44db7bc8ce6b03b44fe3aba223396d157b49e845
SHA1 (patch-ab) = bc7955af7363154e04e1dac1d510c9b22c6fd360
SHA1 (patch-ac) = ad7be88ca5af55c8c40fdef2a0f9a19cb20db38b