Commit Graph

3093 Commits

Author SHA1 Message Date
Erik de Castro Lopo
cd3162a2f6 test/test_compression.sh : Replace seq with numbers.
Apparently seq is a GNU program that isn't installed by default
on OpenBSD.
2013-03-09 19:40:19 +11:00
Erik de Castro Lopo
712b578539 configure.ac : Disable stack protector on FreeBSD. 2013-03-09 18:42:59 +11:00
Erik de Castro Lopo
71d630dbba FLAC/ordinals.h : Add <stdint.h> definitions for MSVC < 2010. 2013-03-09 10:25:39 +11:00
Erik de Castro Lopo
d5b03bcc36 configure.ac : Don't enable stack protector for mingw* host_os. 2013-03-09 09:18:06 +11:00
Erik de Castro Lopo
ae663c36af FLAC/ordinals.h : Provide links for <stdint.h> replacements. 2013-03-08 21:13:13 +11:00
Erik de Castro Lopo
139ffb090d Fix version number in Visual Studio project files.
Patch from Ben Allison <benski@winamp.com> and tweaked to change
version from 1.3.0 (which hasn't been released yet) to 1.3.0pre1.
2013-03-08 21:06:48 +11:00
Erik de Castro Lopo
fd6b192d25 Another MSVC patch from Ben Alison. 2013-03-08 20:47:43 +11:00
Erik de Castro Lopo
a4c321e492 Large patch from Ben Allison fixing the MSVC build.
Patch tweaked a little to fix Linux build and clean up minor problems.
2013-03-06 22:17:51 +11:00
Erik de Castro Lopo
91790ef965 Fix compiler warnings from new compiler flags. 2013-03-06 07:42:08 +11:00
Erik de Castro Lopo
05609d5b4b configure.ac : Add hardening compile options.
Extra compile options are detected at configure time with new
XIPH_ADD_*FLAGS m4 macros.

Options enabled include -Wextra, -D_FORTIFY_SOURCE=2 and stack
protection.
2013-03-06 07:39:24 +11:00
Erik de Castro Lopo
9d057c7179 Fix a bunch of WDG validation warnings in HTML docs. 2013-03-05 18:25:15 +11:00
Erik de Castro Lopo
9c024f2bd8 documentation_tools_flac.html : Document --ignore-chunk-sizes command line option. 2013-03-05 17:46:04 +11:00
Erik de Castro Lopo
5eb63fc8e4 documentation_tools_flac.html : Fix WDG HTML validator warnings. 2013-03-05 17:40:57 +11:00
Erik de Castro Lopo
9b11da76a4 src/flac/main.c : Mention --ignore-chunk-sizes in help output.
Also mention --no-ignore-chunk-sizes option.
2013-03-05 17:35:21 +11:00
Erik de Castro Lopo
0432b96490 test/test_compression.sh : Use wc instead of stat to get file size.
The stat program has different command line parameters depend on
whether its the GNU or BSD version. Sitch to 'wc -c' instead which
seems more portable.
Plus other minor improvements.
2013-03-04 21:24:58 +11:00
Erik de Castro Lopo
538ce85eae configure.ac : Version 1.3.0pre1. 2013-03-02 19:06:56 +11:00
Erik de Castro Lopo
2227ec7936 src/flac/decode.c : Remove repeated code block. 2013-03-02 19:06:20 +11:00
Erik de Castro Lopo
c8adb080b0 Add appropriate WAV channel masks for 7 and 8 channel files.
This commit accepts the new default channel masks for 6.1 and 7.1
surround input WAV files, and writes the corresponding masks when
decoding to WAV without a channel mask from the metadata block.

The local copy of the format spec is also updated with the new text
from the flac-website repository.

Patch from Ralph Giles <giles@mozilla.com>
2013-03-02 14:09:46 +11:00
Timothy B. Terriberry
d75cb67d7f Robustify autogen.sh
This allows the script to be run from somewhere other than the
 top-level build directory.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-08 18:58:33 +11:00
Timothy B. Terriberry
81c917829a xmms - Fix inline linking problems with old glib
f0296255 switched to --std=c99 by default, but old glib relies on
 the pre-C99 extern inline rules.
Override G_INLINE_FUNC for it to avoid multiple definition linker
 errors.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-08 18:58:29 +11:00
Timothy B. Terriberry
100c82e18b xmms - #include <inttypes.h> for PRIu64
Not sure where this was coming from before, but it's not getting
 included elsewhere on my system, so include it explicitly.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-08 18:58:25 +11:00
Timothy B. Terriberry
5c8bb1333f xmms - Fix libtool usage.
9b7cb22f removed the extra libtool-disable-static script in favor
 of always building with disable-static, but plugin_xmms still
 referenced libtool-disable-static explicitly.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-08 18:58:21 +11:00
Erik de Castro Lopo
b104c6d8af include/share/compat.h : For MSVC define inline as __inline. 2013-01-26 10:11:39 +11:00
Ralph Giles
4632f945de Fix the 'distclean' target.
Generated documentation needs to be removed by this target
for 'distcheck' to succeed.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-19 11:52:33 +11:00
Ralph Giles
f1841caba3 Hoist a repeated conditional in the channel mapping code.
This is equivalent and just makes the code shorter.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-18 16:46:35 +11:00
Erik de Castro Lopo
a53e85b889 autogen.sh : Make sure config.rpath exists. 2013-01-17 20:13:33 +11:00
Olivier Blin
f699788f31 doc: fix out-of-tree build
When building outside of the source tree, the Doxyfile needs to be
generated in the build tree and should point to the proper paths for
include directories and html footer.

The generated api files to install should also be taken from the build
tree instead of the source tree.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-14 21:52:43 +11:00
Erik de Castro Lopo
fb13acc457 Revert parts of 96d081c1 that touched source code or autotools files. 2013-01-03 06:25:21 +11:00
Erik de Castro Lopo
f67928dec4 Fix VC project files to use /objs/ directory instead of /obj/ directory. 2013-01-02 22:49:55 +11:00
Erik de Castro Lopo
33fa7dc643 Minor Linux fixes for Makefile.lite build method. 2013-01-02 22:49:55 +11:00
Erik de Castro Lopo
85d5c53803 Fix all Makefile.lite to use /objs/ directory instead of /obj/ directory. 2013-01-02 22:49:37 +11:00
Hendricks266
96d081c1c9 Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:

make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples

This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0

These improvements make use of some use-time Makefile variable expansion.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-02 21:35:47 +11:00
nu774
0da96d3cfd Fix to allow the flac command to parse piped WAV input with
WAVEFORMATEXTENSIBLE format.

MinGW's fseeko() doesn't return error for the attempt to seek on non
seekable file (same behavior as MSVC).
The simplest solution would be to change #ifdef _MSC_VER to #ifdef
_WIN32 here.
Instead, this patch tests file with fstat(), and use fseeko() only when
it is a regular file.
This is confirmed to work properly both on MSVC and MinGW, can seek if
stdin is a redirected regular file, and doesn't require #ifdef.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2012-12-28 11:31:35 +11:00
Erik de Castro Lopo
55788ea96b Rename obj/ directory to objs/ to avoid BSD make issue. 2012-12-28 11:06:38 +11:00
Erik de Castro Lopo
592021edf7 configure.ac : Treat powerpc64 like powerpc. 2012-12-28 09:50:49 +11:00
Max Horn
0b47ede01b configure: modernize autoconf usage
In particular:
- quote several macro arguments properly
- switch to the extended version of AC_INIT
- replace AM_CONFIG_HEADER by AC_CONFIG_HEADERS
- remove obsolete extra AC_CHECK_SIZEOF param
- upgrade minimal automake version from 1.7 to 1.11
  (which is when dist-xz was introduced)

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:56 +11:00
Max Horn
21f68f4fad configure: merge AC_CHECK_HEADERS calls
Also removed some pointless AC_SUBST invocation, which would only be
necessary if the Makefiles were using the results of the header
detection, which they are not.

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:43 +11:00
Max Horn
cdcb88bdc9 configure: always print ac_cv_c_compiler_gnu
Previously, we only printed whether the used compiler was
detected as gcc if the answer was positive. Now we always
print the result (but the GCC version still is only
printed when we are using GCC)

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:30 +11:00
Max Horn
66c0a581d2 autogen.sh: replace this by a simple call to autoreconf
The autoreconf tool is provided by autoconf to do what custom
autogen.sh scripts in many projects used to do. Only it is more
robust and widely tested. It has been available for several years,
too. No reason to rely on custom code for this.

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:14 +11:00
Max Horn
f20164e41e configure: replace XIPH_C_FIND_ENDIAN by AC_C_BIGENDIAN
Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:11:32 +11:00
Timothy B. Terriberry
0920bc1ffb Fix a copy & paste error in a comment. 2012-12-09 13:13:12 +11:00
Erik de Castro Lopo
762ae01893 Covert 2 C source files from dos to unix line endings. 2012-12-06 06:42:34 +11:00
Miroslav Lichvar
6a1f59b58f Update FSF address. 2012-12-06 06:17:26 +11:00
Miroslav Lichvar
a43f56c0b2 Update library version-info. 2012-12-04 17:45:51 +11:00
Miroslav Lichvar
49b9673c89 Hide symbols with nasm.
Hide all cglobal symbols with nasm >= 2.
2012-12-04 17:45:32 +11:00
Miroslav Lichvar
19c78e58d7 Hide symbols with gcc.
With gcc >= 4 and ELF, set default visibility to hidden and make visible
only the symbols with FLAC_API or FLACPP_API.

A convenience libFLAC-static.la is created for test_libFLAC as it
depends on the hidden symbols.
2012-12-04 17:45:06 +11:00
Miroslav Lichvar
18e01547ac Don't override user-specified CFLAGS. 2012-12-04 17:44:42 +11:00
Miroslav Lichvar
7edf67769f Remove old GNU-stack sections from nasm files.
They are not needed since the section is defined in nasm.h.
2012-12-04 17:43:49 +11:00
Miroslav Lichvar
b61825df87 Add missing options to flac man page. 2012-12-04 17:42:27 +11:00
Erik de Castro Lopo
70be52b1dd src/libFLAC/stream_encoder.c : Fix typo.
FLAC__treamEncoderReadStatusString -> FLAC__StreamEncoderReadStatusString

Thanks to nu774 on github.
2012-11-30 15:33:59 +11:00