pkgsrc/archivers/p7zip/Makefile

81 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.44 2009/02/18 07:19:06 adam Exp $
DISTNAME= p7zip_4.65_src_all
PKGNAME= p7zip-4.65
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
2004-07-05 16:44:22 +02:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
2004-07-05 16:44:22 +02:00
USE_LANGUAGES= c c++
2006-09-09 04:41:53 +02:00
MAKE_FILE= makefile
2007-06-01 02:54:47 +02:00
MAKE_JOBS_SAFE= no # missing header when compiling sfx
NO_CONFIGURE= yes
PTHREAD_OPTS+= require
PLIST_VARS= dll
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
# compiles, but does not recognize any archives as supported
DYNAMIC_7Z= NO
.if !empty(DYNAMIC_7Z:MYES)
BUILD_TARGET= all2
PLIST.dll= yes
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
.endif
2005-10-08 10:27:42 +02:00
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/-/_/}
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
GCC_REQD+= 3.0
2008-04-07 19:48:14 +02:00
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
2004-07-05 16:44:22 +02:00
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
.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
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
.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
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
.else
2008-04-05 02:34:07 +02:00
ln -s 7za ${DESTDIR}${PREFIX}/bin/7z
Update to 4.12: Version 4.12 ============ - new port of 7za from the source of 7za 4.12Beta for Windows - From Windows version of 7-zip 4.11 and 4.12 : - 7-Zip now supports Zip64 extension of ZIP format. So now it's possible to compress files bigger than 4 GB to ZIP archives. - Some bugs were fixed - fix "7za a archive.7z file" that added all the files and directories with filename "file", "FILE", "File" ... - p7zip now displays the locale (ex : en_US.UTF-8) in the banner. - new flag "-no-utf16" to avoid lossly conversion in filenames. CAUTION : use this flag when you do not plan to export your archive. - support creation of self extracting archive. - better support of symbolic link (now, an invalid symbolic link do not stop archiving but displays a warning). - better support of files that the user cannot read. (now this kind of file is not added to the archive, and p7zip displays a warning). - return of 7z and its plugins. - support of listing/testing/extracting files from a splitted archive (only with 7z). - support of MacOX X 10.X. - creation of Gzip/Tar archives didn't work on Linux Alpha. - see "contrib/VirtualFileSystemForMidnightCommander/readme" to use 7za with "mc". Version 4.10 ============ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z is not available, 7z is unless on Unix). Version 0.91 ============ - add support for FreeBSD 5.2.1 In Windows/Time.h add "#include <time.h>" and prototype change for FileTimeToUnixTime() - bug 990684 Corrected : support of filesystem that support case sensitive filenames. Example, since version 0.91 : "7z a glibc -r glibc-2.3.2" does not terminate with error : Duplicate filename: glibc-2.3.2\sysdeps\m88k\m88100\add_n.S glibc-2.3.2\sysdeps\m88k\m88100\add_n.s Version 0.90 ============ - build of 7z.exe and its DLL. 7z.exe support more archive formats than 7za.exe thanks to DLL in Formats and Codecs directories - "#pragma once" is now in comments - mainly For OpenBSD : - add #include <wchar.h> in include_windows/winnt.h - remove stuff for GUID_SECTION and GUID_SECT in include_windows/basetyps.h and include_windows/initguid.h - some changes in 7zip/Crypto/aesopt.h because of endian.h Version 0.81 ============ - add a copy of the help of 7-zip (see html directory) - "7z a -r tmp.7z directory" works as expected. no more need for commands like : 7z a -r tmp.7z "directory/*" - 7z restores the date of each files (but not directories) - 7z supports UNICODE filenames (version 0.80 supports only ASCII/Latin1 filenames) - support of gcc 2.95 - support of gcc 3.4 - 7z needs no more libgen.h (dirname() and basename()) - less "Internal Error #7" during arguments parsing - minor change in class CThread
2004-11-23 15:57:52 +01:00
.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"