Commit graph

55 commits

Author SHA1 Message Date
nros
21e2a01370 Fix build on non-linux ppc machines
Fix build on non-linux ppc machines, tested by julian sevard.
2019-12-17 13:59:50 +00:00
adam
b7b1fedf7c flac: updated to 1.3.3
FLAC 1.3.3:

General:
- Fix CPU detection
- Switch from unsigned types to uint32_t
- CppCheck fixes
- Improve SIMD decoding of 24 bit files
- POWER* amnd POWER9 improvements
- More tests.

flac:
- When converting to WAV, use WAVEFORMATEXTENSIBLE when bits per second is not 8 or 16
- Fix --output-prefix with input-files in sub-directories

build system:
- Cmake support
- Visual Studio updates
- Fix for MSVC when UNICODE is enabled
- Fix for OpenBSD/i386
2019-08-05 15:35:12 +00:00
wiz
8733ee0040 Follow some http -> https redirects. 2017-08-01 14:58:51 +00:00
prlw1
0f9300e6d4 flac-1.3.2.tar.xz changed trivially, but not its filename. Update to
version which matches http://downloads.xiph.org/releases/flac/SHA1SUMS
2017-01-05 09:16:41 +00:00
adam
a160a29ba8 FLAC 1.3.2:
General:
* Fix undefined behaviour using GCC/Clang UBSAN (erikd).
* General hardening via fuzz testing with AFL (erikd and others).
* General code improvements (lvqcl, erikd and others).
* Add FLAC in MP4 specification docs (Ralph Giles).
* MSVS build cleanups (lvqcl).
* Fix some cppcheck warnings (erikd).
* Assume all currently used OSes support SSE2.

flac:
* Fix potential infinite loop on flac-to-flac conversion (erikd).
* Add WAVEFORMATEXTENSIBLE to WAV (as needed) when decoding (lvqcl).
* Only write vorbis-comments if they are non-empty.
* Error out if decoding RAW with bits != (8|16|24).

metaflac:
* Add --scan-replay-gain option.

build system:
* Fixes for MSVC and Makefile.lite build systems.

libraries:
* CPU detection cleanup and fixes (Julian Calaby, erikd and lvqcl).
* Fix two stream decoder bugs (Max Kellermann).
* Fix a NULL dereference bug (on a malformed file).
* Changed the LPC order guess for a slight compression improvement, particularly for classical music (Martijn van Beurden).
* Improved encoding speed on older Intel CPUs.
* Fixed a seeking bug when decoding certain files (Miroslav Lichvar).
* Put an upper bound (32768) on the number of seek points.
* Fix potential memory leaks.
* Support 64bit brword/bwword allowing FLAC__BYTES_PER_WORD to be set to 8 (disabled by default).
* Fix an out-of-bounds heap read.
* Win32: Only use large buffers when writing to disk.
2017-01-01 11:52:36 +00:00
adam
fde70501ad Changes 1.3.1:
* Improved decoding efficiency of all bit depths but especially so for 24 bits for IA32 architecture.
* Faster encoding using SSE and AVX.
* Fixed bartlett, bartlett_hann and triangle functions.
* New apodization functions partial_tukey and punchout_tukey for improved compression.
* Retuned compression presets to incorporate new apodization functions.
* Fix -Wcast-align warnings on armhf architecture
2014-11-29 20:42:12 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
adam
cb4fc73081 Avoid -fgnu89-inline when using Clang 2013-10-27 20:05:14 +00:00
wiz
435b213ee7 Update to 1.3.0:
FLAC 1.3.0 (26-May-2013)

    General:
        Move development to Xiph.org git repository.
        The --sector-align option of flac has been deprecated and may not exist in future versions. shntool provides similar functionality.
        Support for the RF64 and Wave64 formats in flac (see below).
        Better handling of cuesheets with non-CD-DA sample rates.
        The --ignore-chunk-sizes option has been added to the flac command line tool.
    FLAC format:
        (none)
    Ogg FLAC format:
        (none)
    flac:
        Added support for encoding from and decoding to the RF64 format, and a new corresponding option --force-rf64-format. (SF #1762502). --keep-foreign-metadata is also supported.
        Added support for encoding from and decoding to the Sony Wave64 format, and a new corresponding option --force-wave64-format. (SF #1769582). --keep-foreign-metadata is also supported.
        Added new options --preserve-modtime and --no-preserve-modtime to specify whether or not output files should copy the timestamp and permissions from their input files. The default is --preserve-modtime as in previous versions. (SF #1805428).
        Allow MM:SS:FF and MM:SS.SS time formats in non-CD-DA cuesheets. (SF #1947353, SF #2182432)
        The --sector-align option of flac has been deprecated and may not exist in future versions. shntool provides similar functionality. (SF #1805946)
        Improved error message when user attempts to decode a non-FLAC file (SF #2222789).
        Fix bug where flac was disallowing use of --replay-gain when encoding from stdin (SF #1840124).
        Fix bug with fractional seconds on some locales (SF #1815517, SF #1858012).
        Read and write appropriate channel masks for 6.1 and 7.1 surround input WAV files. Documentation was also updated.
        Correct Wave64 GUIDs.
        Support 56kHz to 192kHz gain analysis (patch from Earl Chew)
        Add ability to handle utf8 filenames on Windows (large set of patches from Janne Hyvärinen)
    metaflac:
        Allow MM:SS:FF and MM:SS.SS time formats in non-CD-DA cuesheets. (SF #1947353, SF #2182432)
    plugins:
        Minor updates for XMMS plugin.
        Winamp2 plugin was dropped because Nullsoft has provided native FLAC support since 2006.
    build system:
        Fixes for autotools (including SF #1859664).
        Fixes for MinGW (including SF #2000973, SF #2209829).
        Fixes for gcc (including SF #1834168, SF #2002481).
        Fixes for Sun Studio/Forte (SF #1701960).
        Fixes for windows builds (including SF #1676822, SF #1756624, SF #1809863, SF #1911149).
        Fixes for FreeBSD and OpenBSD.
        Compile with GNU gcc _FORTIFY_SOURCE=2 and stack protection where those features are detected.
        Enable a bunch of GCC compiler warnings and fix code that generates warnings.
    documentation:
        Document --ignore-chunk-sizes and --apply-replaygain-which-is-not-lossless option for flac.
    libraries:
        libFLAC encoder was defaulting to level 0 compression instead of 5 (SF #1816825).
        Fix bug in bitreader handling of read callback returning a short count (SF #2490454).
        Improve decoder's ability to distinguish between a FLAC sync code and an MPEG one (SF #2491433).
    Interface changes:
        libFLAC:
            Added FLAC__format_blocksize_is_subset()
        libFLAC++:
            Add a number of convienience methods.
2013-06-12 20:31:51 +00:00
asau
2fead99d50 "user-destdir" is default these days 2012-09-11 23:59:21 +00:00
heinz
d653ce6a74 Added LICENSE information. 2010-01-24 17:11:17 +00:00
rillig
e8d73a886a Moved the HTML documentation from share/doc/html to share/doc/${PKGNAME}.
PKGREVISION++
2009-06-05 21:02:45 +00:00
rillig
3e429219c8 Added a patch for Linux.
Fixed pkglint warnings.
2009-06-05 20:47:30 +00:00
drochner
a6e120373a update to 1.2.1
This fixes a number of security problems (integer overflows resulting
in heap-based buffer overflow, CVE-2007-4619).

Other changes:
-speedup
-some new options
-bugfixes
-added support for all RIFF/AIFF metadata

Thanks to Chavdar Ivanov for providing a patch.
2007-11-21 12:47:04 +00:00
wiz
54cae78725 Link libFLAC against libogg, since libFLAC references symbols from
there. Bump PKGREVISION and ABI depends (dependencies probably wouldn't
have built anyway).
2007-01-07 15:01:52 +00:00
wiz
e27eb57c49 Update to 1.1.3:
*   General:
      o Improved compression with no impact on format or decoding speed.
      o Much better recovery for corrupted files
      o Better multichannel support
      o Large file (>2GB) support everywhere
      o flac now supports FLAC and Ogg FLAC as input to the encoder (e.g. can re-encode FLAC to FLAC) and preserve all the metadata like tags, etc.
      o New PICTURE metadata block for storing things like cover art, new --picture option to flac and --import-picture-from option to metaflac for importing pictures, new --export-picture-to option to metaflac for exporting pictures, and metadata API additions for searching for suitable pictures based on type, size and color constraints.
      o Support for new REPLAYGAIN_REFERENCE_LOUDNESS tag.
      o Fixed a bug in Ogg FLAC encoding where metadata was not being updated properly. Existing Ogg FLAC files should be recoded to fix up the metadata, e.g. flac -Vf -S 10s --ogg file.ogg
      o In the developer libraries, the interface has been simplfied by merging the three decoding layers into a single class; ditto for the encoders. Also, libOggFLAC has been merged into libFLAC and libOggFLAC++ has been merged into libFLAC++ so there is a single API supporting both native FLAC and Ogg FLAC.
* FLAC format:
      o New PICTURE metadata block for storing things like cover art.
      o Speaker assignments and channel orders for 3-6 channels (see frame header).
      o Further restrictions on the FLAC subset when the sample rate is <=48kHz; in this case the maximum LPC order is now 12 and maximum blocksize is 4608. This is to further limit the processing and memory requirements for hardware implementations while not measurably affecting compression.
* Ogg FLAC format:
      o (none)
* flac:
      o Improved the -F option to allow decoding of FLAC files whose metadata is corrupted, and other kinds of severe corruption.
      o Encoder can now take FLAC and Ogg FLAC as input. The output FLAC file will have all the same metadata as the original unless overridden with options on the command line.
      o Encoder can now take WAVEFORMATEXTENSIBLE WAVE files as input; decoder will output WAVEFORMATEXTENSIBLE WAVE files when necessary to conform to the latest Microsoft specifications.
      o Now properly supports AIFF and WAVEFORMATEXTENSIBLE multichannel input, performing necessary channel reordering both for encoding and decoding. WAVEFORMATEXTENSIBLE channel mask is also saved to a tag on encoding and restored on decoding for situations when there is no natural mapping to FLAC channel assignments.
      o Expanded support for "odd" sample resolutions to WAVE and AIFF input; all resolutions from 4 to 24 bits-per-sample now supported for all input types.
      o Added a new option --tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
      o Added a new option --picture for adding pictures.
      o Added a new option --apodization for specifying the window function(s) to be used in LPC analysis.
      o Added support for encoding from non-compressed AIFF-C (SF #1090933).
      o Importing of non-CDDA-compliant cuesheets now only issues a warning, not an error (see here).
      o MD5 comparison failures on decoding are now an error instead of a warning and will also return a non-zero exit code (SF #1493725).
      o The default padding size is now 8K, or 64K if the input audio stream is more than 20 minutes long.
      o Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.
      o Fixed a bug that caused a crash when -a and -t were used together (SF #1229481).
      o Fixed a bug with --sector-align where appended samples were not always totally silent (SF #1237707).
      o Fixed bugs with --sector-align and raw input files.
      o Fixed a bug printing out unknown AIFF subchunk names (SF #1267476).
      o Fixed a bug where WAVE files with "data" subchunks of size 0 where accepted (SF #1293830).
      o Fixed a bug where sync error at end-of-stream of truncated files was not being caught (SF #1244071).
      o Fixed a problem with filename parsing if file does not have extension but also has a . in the path (SF #1161916).
      o Fixed a problem with fractional-second parsing for --skip/--until in some locales (SF #1031043).
      o Increase progress report rate when -p and -e are used together (SF #1580122).
* metaflac:
      o Added support for read-only operations on Ogg FLAC files.
      o Added a new option --set-tag-from-file for setting a tag from file (e.g. for importing a cuesheet as a tag).
      o Added a new option --import-picture-from for importing pictures.
      o Added a new option --export-picture-to for exporting pictures.
      o Added shorthand operation --remove-replay-gain for removing ReplayGain tags.
      o --export-cuesheet-to now properly specifies the FLAC file name (SF #1272825).
      o Importing of non-CDDA-compliant cuesheets now issues a warning.
      o Removed the following deprecated tag editing options; you should use the new option names shown instead:
            + Removed --show-vc-vendor; use --show-vendor-tag
            + Removed --show-vc-field; use --show-tag
            + Removed --remove-vc-all; use --remove-all-tags
            + Removed --remove-vc-field; use --remove-tag
            + Removed --remove-vc-firstfield; use --remove-first-tag
            + Removed --set-vc-field; use --set-tag
            + Removed --import-vc-from; use --import-tags-from
            + Removed --export-vc-to; use --export-tags-to
      o Disallow multiple input FLAC files when --import-tags-from=- is used (SF #1082577).
* plugins:
      o When ReplayGain is on, if tags for the preferred kind of gain (album/track) are not in a stream, the other kind will be used.
      o Added ReplayGain info to file info box in XMMS plugin
      o Fixed UTF-8 decoder to disallow non-shortest-form and surrogate sequences (see here).
* build system:
      o Added support for building on OS/2 with EMX (SF #1229495)
      o Added support for building with Borland C++ (SF #1599018)
      o Added a --disable-xmms-plugin option to configure to prevent building the XMMS plugin (SF #930494).
      o Added a --disable-doxygen-docs option to configure for disabling Doxygen-based API doc generation (SF #1365935).
      o Added a --disable-thorough-tests option to configure to do the basic library, stream, and tool tests in a reasonable time (SF #1077948).
      o Added large file support with AC_SYS_LARGEFILE; use --disable-largefile with configure to disable.
* libraries:
      o Merged libOggFLAC into libFLAC; both formats are now supporte through the same API.
      o Merged libOggFLAC++ into libFLAC++; both formats are now supporte through the same API.
      o libFLAC and libFLAC++: Simplified encoder setup with new FLAC__stream_encoder_set_compression_level() function.
      o libFLAC: Improved compression with no impact on FLAC format or decoding time by adding a windowing stage before LPC analysis.
      o libFLAC: Fixed a bug where missing STREAMINFO fields (min/max framesize, total samples, MD5 sum) and seek point offsets were not getting rewritten back to Ogg FLAC file (SF #1338969).
      o libFLAC: Fixed a bug in cuesheet parsing where it would return an error if the last line of the cuesheet did not end with a newline.
      o libFLAC: Fixed UTF-8 decoder to disallow non-shortest-form and surrogate sequences (see here).
      o libFLAC: Fixed a bug in the return value for FLAC__stream_decoder_set_metadata_respond_application() and FLAC__stream_decoder_set_metadata_ignore_application() when there was a memory allocation error (SF #1235005).
* Interface changes (see also the porting guide for specific instructions on porting to FLAC 1.1.3):
      o all libraries;
            + Merged libOggFLAC into libFLAC; both formats are now supporte through the same API.
            + Merged libOggFLAC++ into libFLAC++; both formats are now supporte through the same API.
            + Merged seekable stream decoder and file decoder into the stream decoder.
            + Merged seekable stream encoder and file encoder into the stream encoder.
            + Added #defines for the API version number to make porting easier; see include/lib*FLAC*/export.h.
      o libFLAC:
            + Added FLAC__stream_encoder_set_apodization()
            + Added FLAC__stream_encoder_set_compression_level()
            + Added FLAC__metadata_object_cuesheet_calculate_cddb_id()
            + Added FLAC__metadata_get_cuesheet()
            + Added FLAC__metadata_get_picture()
            + Added FLAC__metadata_chain_read_ogg() and FLAC__metadata_chain_read_ogg_with_callbacks()
            + Changed FLAC__stream_encoder_finish() now returns a FLAC__bool to signal a verify failure, or error processing last frame or updating metadata.
            + Changed FLAC__StreamDecoderState: removed state FLAC__STREAM_DECODER_UNPARSEABLE_STREAM
            + Changed FLAC__StreamDecoderErrorStatus: new error code FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM
            + The above two changes mean that when the decoder encounters what it thinks are unparseable frames from a future decoder, instead of returning a fatal error with the FLAC__STREAM_DECODER_UNPARSEABLE_STREAM state, it just calls the error callback with FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM and leaves the behavior up to the application.
      o libFLAC++:
            + Added FLAC::Metadata::Picture
            + Added FLAC::Encoder::Stream::set_apodization()
            + Added FLAC::Encoder::Stream::set_compression_level()
            + Added FLAC::Metadata::CueSheet::calculate_cddb_id()
            + Added FLAC::Metadata::get_cuesheet()
            + Added FLAC::Metadata::get_picture()
            + Changed FLAC::Metadata::Chain::read() to accept a flag denoting Ogg FLAC input
            + Changed FLAC::Decoder::Stream::finish() now returns a bool to signal an MD5 failure like FLAC__stream_decoder_finish() does.
            + Changed FLAC::Encoder::Stream::finish() now returns a bool to signal a verify failure, or error processing last frame or updating metadata.
      o libOggFLAC:
            + Merged into libFLAC.
      o libOggFLAC++:
            + Merged into libFLAC++.

Shlib major bump -> bump ABI depends.
2007-01-07 12:25:05 +00:00
wiz
b20d01b785 Reset maintainer, ben@ has resigned. 2006-12-15 14:34:18 +00:00
joerg
7f279c69f3 DESTDIR support. 2006-11-02 17:59:37 +00:00
ben
689ee474c2 Fix build on i386 Mac OS X 10.4.7. 2006-08-27 03:00:19 +00:00
jmmv
3ae62b8818 Explicitly disable doxygen support to avoid installing extra documentation
files when it is installed.
2006-08-02 21:22:26 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
741b01ba5d Update to 1.1.2:
New in this release are small decoding speedups for all platforms,
small encoding speedups in fast (non-LPC) mode, streaming support
in the XMMS plugin, and several bug fixes. For developers there
are also a few additions and changes to the metadata API to make
working with tags easier. See the changelog entry for complete
details. This release actually wasn't supposed to happen so soon,
but needed to be made to fix library naming and build problems in
FLAC 1.1.1 that caused trouble for package maintainers, so unless
you are having trouble with one of the particular bugs that got
fixed in 1.1.2 then there is not much of a need to upgrade.
2005-02-28 14:09:19 +00:00
sketch
7850b349c7 Rearrange statements to make the compiler section more readable. 2004-11-16 12:07:03 +00:00
sketch
346c51cc6e Various C++ tweaks/cleanups to get this package compiling with SunPro. 2004-11-16 12:05:54 +00:00
ben
e91ac2c19c Correct platform from *-*-ppc to *-*-powerpc. 2004-10-18 18:25:49 +00:00
ben
8cb5a03640 FLAC recently gained PPC optimizations that only work with Apple's
assembler.  Since they cause the FLAC build to fail on AIX and NetBSD,
only enable the optimizations if the OPSYS is Darwin.

There is also a misplaced #endif in lpc.h that causes the build to
fail on all platforms if assembler optimizations are disabled.  This
is fixed by patch-af.

Thanks to Michael <macallan18@earthlink.net> for troubleshooting!
2004-10-18 14:23:29 +00:00
minskim
66c8c7d291 Enable pkgviews installation. 2004-10-14 18:07:10 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
adam
f9cab5be8f Changes 1.1.1:
* Almost 2x decoding speed-up on Macintosh
* Better Ogg FLAC support
* Several new options to flac and metaflac
2004-10-01 13:17:50 +00:00
jlam
8d572feba3 Use the new BUILDLINK_TRANSFORM commands to more precisely state the
intended transformation: use "rm" to remove an option, "rmdir" to remove
all options containing a path starting with a given directory name, and
"rename" to rename options to something else.
2004-08-28 06:05:31 +00:00
grant
0324fee09a mark flac as NOT_FOR_COMPILER sunpro. 2004-05-15 14:39:54 +00:00
salo
9ba8196a22 Follow libogg into multimedia/. 2004-04-12 23:15:01 +00:00
jlam
74b7389192 Include compiler.mk before checking the value of PKGSRC_COMPILER. 2004-02-18 17:39:27 +00:00
jlam
ec993afa1a LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:32 +00:00
jlam
3cb6329f44 USE_GCC[23], USE_SUNPRO, and USE_MIPSPRO are all deprecated. 2004-02-09 19:57:54 +00:00
abs
1781b764e1 Set 'USE_LANGUAGES=c c++' 2004-02-03 12:38:51 +00:00
jlam
4110a61dab bl3ify and fix issue with MIPSpro compiler and this package by stripping
"-O3" from the compiler options.
2004-01-25 16:14:15 +00:00
grant
ed16993a08 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-22 07:14:59 +00:00
agc
dc52048e01 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:07:06 +00:00
jmmv
2b07fc26d8 s/@netbsd.org/@NetBSD.org/ in MAINTAINER. 2003-12-24 09:53:47 +00:00
ben
0d43bf684d Update MAINTAINER email address. 2003-12-13 20:14:26 +00:00
wiz
2a3d44f723 Bump PKGREVISION for libogg update, and fix bl2 file while here. 2003-12-08 14:42:44 +00:00
martti
470fac731a HOMEPAGEs without a trailing slash are incorrect and also bad style. 2003-07-22 05:14:42 +00:00
martti
ff0278ea30 COMMENT should start with a capital letter. 2003-07-21 16:24:36 +00:00
wiz
04f62f706a Change address of maintainer per PR 22170. 2003-07-19 08:54:23 +00:00
agc
1cf87833d6 When constructing the WRKSRC definition, use ${PKGNAME_NOREV} rather than
${PKGNAME}, so that the WRKSRC definition is immune from any subsequent
PKGREVISION changes. With thanks to jmc for the nudge.
2003-06-18 09:22:14 +00:00
wiz
c1eb52c910 Update to 1.1.0: This release adds ReplayGain and cue sheet support,
and improves 24-bit compression, tag editing in the plugins, and
decoding to AIFF.
2003-02-14 23:25:32 +00:00
wiz
e1e2ff0628 Replace collver@linuxfreemail.com with collver1@attbi.com.
Closes PRs 19516, 19517, 19518, 19519, 19520, 19521, 19522, 19523,
19524, 19525 and some more, perhaps.
2002-12-24 18:55:32 +00:00