pkgsrc/archivers/p7zip/Makefile
adam 550ef29509 Changes 9.13:
- From Windows version of 7-zip 9.12
  - Some bugs were fixed.
- "Crash in Rar decoder on a corrupted file" fixed
- "Dereferencing a zero pointer in cab handler" fixed
- "Division by zero in cab decoder" fixed

Changes 9.12:
- From Windows version of 7-zip 9.12
  - ZIP / PPMd compression ratio was improved in Maximum and Ultra modes.
  - The BUG in 7-Zip 9.* beta was fixed: LZMA2 codec didn't work,
    if more than 10 threads were used (or more than 20 threads in some modes).
- makefile.openbsd is now compatible with OpenBSD ports tree.
- cmake projects added.
- 7zFM and 7zG can be built on MacOSX but these ports are in very alpha stage.
  make app to build p7zip.app (p7zip for MacOSX)

Changes 9.11:
- From Windows version of 7-zip 9.11
  - 7-Zip now supports PPMd compression in .ZIP archives.
  - Speed optimizations in PPMd codec.
  - The support for archives in installers was improved.
  - Some bugs were fixed.
2010-06-16 08:30:09 +00:00

81 lines
2.3 KiB
Makefile

# $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"