pkgsrc/archivers/pbzip2/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

2012-09-11 21:46:58 +02:00
# $NetBSD: Makefile,v 1.24 2012/09/11 19:46:59 asau Exp $
#
Updated archivers/pbzip2 to 1.1.5. Changes in 1.1.5 (Jul 16, 2011) - Fixed excessive output permissions while compress/decompress is in progress (bug #807536) Changes in 1.1.4 (Apr 22, 2011) - Fixed hang on decompress with --ignore-trailing-garbage=1 when producer is interrupted on trailing garbage (bug #762464) - Added example to help for decompression piped to tar (bug #746806) - Fixed typo in Trailing Garbage printed message (bug #746799) Changes in 1.1.3 (Mar 27, 2011) - Print trailing garbage errors even when in quiet mode (bug #743635) - Default extension on decompress of .tbz2 changed to .tar for bzip2 compatibility (bug #743639) - Fixed hang on decompress with --ignore-trailing-garbage=1 and higher numCPU (e.g. > 2) (bug #740502) Changes in 1.1.2 (Feb 19, 2011) - Fix directdecompress segfault when destination file can't be opened (e.g. read-only) (bug #717852) - Implemented --ignore-trailing-garbage feature (bug #594868) - Fixed hang on decompress of some truncated archives (bug #590225) - Pulled an error check out of normal logic block for clarity - Debug print added after BZ2_bzDecompress to track it's return code. - A debug print fixed in queue::remove - Increased max memory usage limit from 1GB to 2GB - If no -m switch given on command line, default max memory limit will now automatically increase from 100 MB to minimum amount of memory required to support the number of CPUs requested - Improved performance when output buffer is full - Fixed bug which caused hang while decompressing prematurely truncated bzip2 stream - Consumer_decompress throttling modified to prevent potential deadlock/infinite loop in certain situations (Thanks to Laszlo Ersek for finding and helping track down the cause of this bug) - Fixed deadlock bug and performance issue when consumer working with long bzip2 sequences (Thanks to Tanguy Fautre for finding) - Fixed error message for block size range (max size was wrong) - Moved #include <pthread.h> from pbzip2.cpp to pbzip2.h to fix OS/2 compiler issue Changes in 1.1.1 (Apr 17, 2010) - Modified decompression to use low-level libbz2 API to improve performance of long bzip2 streams of large single-stream bzip2 blocks - This release should now decompress files created with bzip2 at least as fast as bzip2 or slightly faster - Handle decompression of long bzip2 streams incrementally instead of loading whole stream in memory at once - Fixed issue in safe_cond_timed_wait which caused segmentation fault when compiled in DEBUG mode - Fixed issue with Sun Studio compiler - required explicit declaration of static const members in .cpp Changes in 1.1.0 (Mar 13, 2010) - Added support for multi-threaded decompression using STDIN/pipes - Added code to support throttling compression to prevent memory exhaustion with slow output pipe - Added -m switch to specify max memory usage amount before throttling starts (default 100MB) - Fixed bug that did not allow command line parameters to be used when compressing data from STDIN - Added long options to man page and -h output - Added --loadavg, --read long options - Added support for CPU detection on Win32 - Major improvements to protection of shared variables, error and signal handling, program termination - Added -S switch for thread stack size customization (needs USE_STACKSIZE_CUSTOMIZATION defined when compiling) - Fixed command line parsing bug for -b, -p, -m switches - Fixed infinite loop when fileWriter fails to create output file at start - Fixed bug that deleted input filename (with .bz2 extension for compression and without .bz2 extension for decompression) when a user interrupts process with CTRL-C while outputting to STDOUT - Fixed bug where 0 byte files were not processed properly when data input from STDIN - Ignores fwrite return and passes chown errors in writeFileMetaData if effective uid root - OutputBuffer usage redesigned as fixed-size circular buffer - Lots of minor bugs fixed (see AUTHORS or pbzip2.cpp for full details) - Special thanks to Yavor Nikolov for providing the majority of contributions to this release and a significant amount of testing
2011-09-16 17:39:29 +02:00
DISTNAME= pbzip2-1.1.5
CATEGORIES= archivers
MASTER_SITES= http://compression.ca/pbzip2/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://compression.ca/pbzip2/
COMMENT= Parallel implementation of the bzip2 block-sorting file compressor
Updated archivers/pbzip2 to 1.1.5. Changes in 1.1.5 (Jul 16, 2011) - Fixed excessive output permissions while compress/decompress is in progress (bug #807536) Changes in 1.1.4 (Apr 22, 2011) - Fixed hang on decompress with --ignore-trailing-garbage=1 when producer is interrupted on trailing garbage (bug #762464) - Added example to help for decompression piped to tar (bug #746806) - Fixed typo in Trailing Garbage printed message (bug #746799) Changes in 1.1.3 (Mar 27, 2011) - Print trailing garbage errors even when in quiet mode (bug #743635) - Default extension on decompress of .tbz2 changed to .tar for bzip2 compatibility (bug #743639) - Fixed hang on decompress with --ignore-trailing-garbage=1 and higher numCPU (e.g. > 2) (bug #740502) Changes in 1.1.2 (Feb 19, 2011) - Fix directdecompress segfault when destination file can't be opened (e.g. read-only) (bug #717852) - Implemented --ignore-trailing-garbage feature (bug #594868) - Fixed hang on decompress of some truncated archives (bug #590225) - Pulled an error check out of normal logic block for clarity - Debug print added after BZ2_bzDecompress to track it's return code. - A debug print fixed in queue::remove - Increased max memory usage limit from 1GB to 2GB - If no -m switch given on command line, default max memory limit will now automatically increase from 100 MB to minimum amount of memory required to support the number of CPUs requested - Improved performance when output buffer is full - Fixed bug which caused hang while decompressing prematurely truncated bzip2 stream - Consumer_decompress throttling modified to prevent potential deadlock/infinite loop in certain situations (Thanks to Laszlo Ersek for finding and helping track down the cause of this bug) - Fixed deadlock bug and performance issue when consumer working with long bzip2 sequences (Thanks to Tanguy Fautre for finding) - Fixed error message for block size range (max size was wrong) - Moved #include <pthread.h> from pbzip2.cpp to pbzip2.h to fix OS/2 compiler issue Changes in 1.1.1 (Apr 17, 2010) - Modified decompression to use low-level libbz2 API to improve performance of long bzip2 streams of large single-stream bzip2 blocks - This release should now decompress files created with bzip2 at least as fast as bzip2 or slightly faster - Handle decompression of long bzip2 streams incrementally instead of loading whole stream in memory at once - Fixed issue in safe_cond_timed_wait which caused segmentation fault when compiled in DEBUG mode - Fixed issue with Sun Studio compiler - required explicit declaration of static const members in .cpp Changes in 1.1.0 (Mar 13, 2010) - Added support for multi-threaded decompression using STDIN/pipes - Added code to support throttling compression to prevent memory exhaustion with slow output pipe - Added -m switch to specify max memory usage amount before throttling starts (default 100MB) - Fixed bug that did not allow command line parameters to be used when compressing data from STDIN - Added long options to man page and -h output - Added --loadavg, --read long options - Added support for CPU detection on Win32 - Major improvements to protection of shared variables, error and signal handling, program termination - Added -S switch for thread stack size customization (needs USE_STACKSIZE_CUSTOMIZATION defined when compiling) - Fixed command line parsing bug for -b, -p, -m switches - Fixed infinite loop when fileWriter fails to create output file at start - Fixed bug that deleted input filename (with .bz2 extension for compression and without .bz2 extension for decompression) when a user interrupts process with CTRL-C while outputting to STDOUT - Fixed bug where 0 byte files were not processed properly when data input from STDIN - Ignores fwrite return and passes chown errors in writeFileMetaData if effective uid root - OutputBuffer usage redesigned as fixed-size circular buffer - Lots of minor bugs fixed (see AUTHORS or pbzip2.cpp for full details) - Special thanks to Yavor Nikolov for providing the majority of contributions to this release and a significant amount of testing
2011-09-16 17:39:29 +02:00
#LICENSE= pbzip2-license
PTHREAD_AUTO_VARS= yes
PTHREAD_OPTS+= require
2006-06-02 16:57:13 +02:00
USE_LANGUAGES= c++
CPPFLAGS+= -D_LARGEFILE_SOURCE=1
CPPFLAGS+= -D_FILE_OFFSET_BITS=64
Updated archivers/pbzip2 to 1.1.5. Changes in 1.1.5 (Jul 16, 2011) - Fixed excessive output permissions while compress/decompress is in progress (bug #807536) Changes in 1.1.4 (Apr 22, 2011) - Fixed hang on decompress with --ignore-trailing-garbage=1 when producer is interrupted on trailing garbage (bug #762464) - Added example to help for decompression piped to tar (bug #746806) - Fixed typo in Trailing Garbage printed message (bug #746799) Changes in 1.1.3 (Mar 27, 2011) - Print trailing garbage errors even when in quiet mode (bug #743635) - Default extension on decompress of .tbz2 changed to .tar for bzip2 compatibility (bug #743639) - Fixed hang on decompress with --ignore-trailing-garbage=1 and higher numCPU (e.g. > 2) (bug #740502) Changes in 1.1.2 (Feb 19, 2011) - Fix directdecompress segfault when destination file can't be opened (e.g. read-only) (bug #717852) - Implemented --ignore-trailing-garbage feature (bug #594868) - Fixed hang on decompress of some truncated archives (bug #590225) - Pulled an error check out of normal logic block for clarity - Debug print added after BZ2_bzDecompress to track it's return code. - A debug print fixed in queue::remove - Increased max memory usage limit from 1GB to 2GB - If no -m switch given on command line, default max memory limit will now automatically increase from 100 MB to minimum amount of memory required to support the number of CPUs requested - Improved performance when output buffer is full - Fixed bug which caused hang while decompressing prematurely truncated bzip2 stream - Consumer_decompress throttling modified to prevent potential deadlock/infinite loop in certain situations (Thanks to Laszlo Ersek for finding and helping track down the cause of this bug) - Fixed deadlock bug and performance issue when consumer working with long bzip2 sequences (Thanks to Tanguy Fautre for finding) - Fixed error message for block size range (max size was wrong) - Moved #include <pthread.h> from pbzip2.cpp to pbzip2.h to fix OS/2 compiler issue Changes in 1.1.1 (Apr 17, 2010) - Modified decompression to use low-level libbz2 API to improve performance of long bzip2 streams of large single-stream bzip2 blocks - This release should now decompress files created with bzip2 at least as fast as bzip2 or slightly faster - Handle decompression of long bzip2 streams incrementally instead of loading whole stream in memory at once - Fixed issue in safe_cond_timed_wait which caused segmentation fault when compiled in DEBUG mode - Fixed issue with Sun Studio compiler - required explicit declaration of static const members in .cpp Changes in 1.1.0 (Mar 13, 2010) - Added support for multi-threaded decompression using STDIN/pipes - Added code to support throttling compression to prevent memory exhaustion with slow output pipe - Added -m switch to specify max memory usage amount before throttling starts (default 100MB) - Fixed bug that did not allow command line parameters to be used when compressing data from STDIN - Added long options to man page and -h output - Added --loadavg, --read long options - Added support for CPU detection on Win32 - Major improvements to protection of shared variables, error and signal handling, program termination - Added -S switch for thread stack size customization (needs USE_STACKSIZE_CUSTOMIZATION defined when compiling) - Fixed command line parsing bug for -b, -p, -m switches - Fixed infinite loop when fileWriter fails to create output file at start - Fixed bug that deleted input filename (with .bz2 extension for compression and without .bz2 extension for decompression) when a user interrupts process with CTRL-C while outputting to STDOUT - Fixed bug where 0 byte files were not processed properly when data input from STDIN - Ignores fwrite return and passes chown errors in writeFileMetaData if effective uid root - OutputBuffer usage redesigned as fixed-size circular buffer - Lots of minor bugs fixed (see AUTHORS or pbzip2.cpp for full details) - Special thanks to Yavor Nikolov for providing the majority of contributions to this release and a significant amount of testing
2011-09-16 17:39:29 +02:00
CPPFLAGS+= -D_POSIX_PTHREAD_SEMANTICS
CPPFLAGS+= -DUSE_STACKSIZE_CUSTOMIZATION
LIBS+= -lbz2
2006-06-02 16:57:13 +02:00
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/pbzip2
do-build:
2006-07-12 19:04:41 +02:00
cd ${WRKSRC} && \
Updated archivers/pbzip2 to 1.1.5. Changes in 1.1.5 (Jul 16, 2011) - Fixed excessive output permissions while compress/decompress is in progress (bug #807536) Changes in 1.1.4 (Apr 22, 2011) - Fixed hang on decompress with --ignore-trailing-garbage=1 when producer is interrupted on trailing garbage (bug #762464) - Added example to help for decompression piped to tar (bug #746806) - Fixed typo in Trailing Garbage printed message (bug #746799) Changes in 1.1.3 (Mar 27, 2011) - Print trailing garbage errors even when in quiet mode (bug #743635) - Default extension on decompress of .tbz2 changed to .tar for bzip2 compatibility (bug #743639) - Fixed hang on decompress with --ignore-trailing-garbage=1 and higher numCPU (e.g. > 2) (bug #740502) Changes in 1.1.2 (Feb 19, 2011) - Fix directdecompress segfault when destination file can't be opened (e.g. read-only) (bug #717852) - Implemented --ignore-trailing-garbage feature (bug #594868) - Fixed hang on decompress of some truncated archives (bug #590225) - Pulled an error check out of normal logic block for clarity - Debug print added after BZ2_bzDecompress to track it's return code. - A debug print fixed in queue::remove - Increased max memory usage limit from 1GB to 2GB - If no -m switch given on command line, default max memory limit will now automatically increase from 100 MB to minimum amount of memory required to support the number of CPUs requested - Improved performance when output buffer is full - Fixed bug which caused hang while decompressing prematurely truncated bzip2 stream - Consumer_decompress throttling modified to prevent potential deadlock/infinite loop in certain situations (Thanks to Laszlo Ersek for finding and helping track down the cause of this bug) - Fixed deadlock bug and performance issue when consumer working with long bzip2 sequences (Thanks to Tanguy Fautre for finding) - Fixed error message for block size range (max size was wrong) - Moved #include <pthread.h> from pbzip2.cpp to pbzip2.h to fix OS/2 compiler issue Changes in 1.1.1 (Apr 17, 2010) - Modified decompression to use low-level libbz2 API to improve performance of long bzip2 streams of large single-stream bzip2 blocks - This release should now decompress files created with bzip2 at least as fast as bzip2 or slightly faster - Handle decompression of long bzip2 streams incrementally instead of loading whole stream in memory at once - Fixed issue in safe_cond_timed_wait which caused segmentation fault when compiled in DEBUG mode - Fixed issue with Sun Studio compiler - required explicit declaration of static const members in .cpp Changes in 1.1.0 (Mar 13, 2010) - Added support for multi-threaded decompression using STDIN/pipes - Added code to support throttling compression to prevent memory exhaustion with slow output pipe - Added -m switch to specify max memory usage amount before throttling starts (default 100MB) - Fixed bug that did not allow command line parameters to be used when compressing data from STDIN - Added long options to man page and -h output - Added --loadavg, --read long options - Added support for CPU detection on Win32 - Major improvements to protection of shared variables, error and signal handling, program termination - Added -S switch for thread stack size customization (needs USE_STACKSIZE_CUSTOMIZATION defined when compiling) - Fixed command line parsing bug for -b, -p, -m switches - Fixed infinite loop when fileWriter fails to create output file at start - Fixed bug that deleted input filename (with .bz2 extension for compression and without .bz2 extension for decompression) when a user interrupts process with CTRL-C while outputting to STDOUT - Fixed bug where 0 byte files were not processed properly when data input from STDIN - Ignores fwrite return and passes chown errors in writeFileMetaData if effective uid root - OutputBuffer usage redesigned as fixed-size circular buffer - Lots of minor bugs fixed (see AUTHORS or pbzip2.cpp for full details) - Special thanks to Yavor Nikolov for providing the majority of contributions to this release and a significant amount of testing
2011-09-16 17:39:29 +02:00
${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp \
BZ2StreamScanner.cpp ${LIBS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 \
${DESTDIR}${PREFIX}/bin
Updated archivers/pbzip2 to 1.1.5. Changes in 1.1.5 (Jul 16, 2011) - Fixed excessive output permissions while compress/decompress is in progress (bug #807536) Changes in 1.1.4 (Apr 22, 2011) - Fixed hang on decompress with --ignore-trailing-garbage=1 when producer is interrupted on trailing garbage (bug #762464) - Added example to help for decompression piped to tar (bug #746806) - Fixed typo in Trailing Garbage printed message (bug #746799) Changes in 1.1.3 (Mar 27, 2011) - Print trailing garbage errors even when in quiet mode (bug #743635) - Default extension on decompress of .tbz2 changed to .tar for bzip2 compatibility (bug #743639) - Fixed hang on decompress with --ignore-trailing-garbage=1 and higher numCPU (e.g. > 2) (bug #740502) Changes in 1.1.2 (Feb 19, 2011) - Fix directdecompress segfault when destination file can't be opened (e.g. read-only) (bug #717852) - Implemented --ignore-trailing-garbage feature (bug #594868) - Fixed hang on decompress of some truncated archives (bug #590225) - Pulled an error check out of normal logic block for clarity - Debug print added after BZ2_bzDecompress to track it's return code. - A debug print fixed in queue::remove - Increased max memory usage limit from 1GB to 2GB - If no -m switch given on command line, default max memory limit will now automatically increase from 100 MB to minimum amount of memory required to support the number of CPUs requested - Improved performance when output buffer is full - Fixed bug which caused hang while decompressing prematurely truncated bzip2 stream - Consumer_decompress throttling modified to prevent potential deadlock/infinite loop in certain situations (Thanks to Laszlo Ersek for finding and helping track down the cause of this bug) - Fixed deadlock bug and performance issue when consumer working with long bzip2 sequences (Thanks to Tanguy Fautre for finding) - Fixed error message for block size range (max size was wrong) - Moved #include <pthread.h> from pbzip2.cpp to pbzip2.h to fix OS/2 compiler issue Changes in 1.1.1 (Apr 17, 2010) - Modified decompression to use low-level libbz2 API to improve performance of long bzip2 streams of large single-stream bzip2 blocks - This release should now decompress files created with bzip2 at least as fast as bzip2 or slightly faster - Handle decompression of long bzip2 streams incrementally instead of loading whole stream in memory at once - Fixed issue in safe_cond_timed_wait which caused segmentation fault when compiled in DEBUG mode - Fixed issue with Sun Studio compiler - required explicit declaration of static const members in .cpp Changes in 1.1.0 (Mar 13, 2010) - Added support for multi-threaded decompression using STDIN/pipes - Added code to support throttling compression to prevent memory exhaustion with slow output pipe - Added -m switch to specify max memory usage amount before throttling starts (default 100MB) - Fixed bug that did not allow command line parameters to be used when compressing data from STDIN - Added long options to man page and -h output - Added --loadavg, --read long options - Added support for CPU detection on Win32 - Major improvements to protection of shared variables, error and signal handling, program termination - Added -S switch for thread stack size customization (needs USE_STACKSIZE_CUSTOMIZATION defined when compiling) - Fixed command line parsing bug for -b, -p, -m switches - Fixed infinite loop when fileWriter fails to create output file at start - Fixed bug that deleted input filename (with .bz2 extension for compression and without .bz2 extension for decompression) when a user interrupts process with CTRL-C while outputting to STDOUT - Fixed bug where 0 byte files were not processed properly when data input from STDIN - Ignores fwrite return and passes chown errors in writeFileMetaData if effective uid root - OutputBuffer usage redesigned as fixed-size circular buffer - Lots of minor bugs fixed (see AUTHORS or pbzip2.cpp for full details) - Special thanks to Yavor Nikolov for providing the majority of contributions to this release and a significant amount of testing
2011-09-16 17:39:29 +02:00
${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
${DESTDIR}${PREFIX}/bin/pbunzip2
${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
${DESTDIR}${PREFIX}/bin/pbzcat
${INSTALL_DATA} ${WRKSRC}/pbzip2.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/COPYING \
${DESTDIR}${PREFIX}/share/doc/pbzip2
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/pbzip2
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"