Commit Graph

2902 Commits

Author SHA1 Message Date
diego d114f96b2e configure: add inline_asm_check() and simplify some tests
Add inline_asm_check function to simplify configure checks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32243 b3059339-0415-0410-9bf9-f77b7e298cf2

Use inline_asm_check to simplify a bunch of configure checks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32244 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:55 +02:00
diego 8ef19870e2 configure: simplify some checks
Simplify dynamic loader check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32232 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify DirectFB check using function_check().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32235 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify FreeType check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32236 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify math function checks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32238 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify mman.h/mmap check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32239 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify libdv test.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32240 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove pointless casts from configure checks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32245 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify a bunch of configure checks through the use of function_check().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32246 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify kstat check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32248 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify libggiwmh check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32249 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:55 +02:00
diego 54230cd539 configure: fix warnings in check programs
Mark local functions in configure tests as static; fixes the warnings:
tmp.c:1: warning: no previous prototype for 'foo'
tmp.c:2: warning: no previous prototype for 'func'
tmp.c:3: warning: no previous prototype for 'catch'

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32228 b3059339-0415-0410-9bf9-f77b7e298cf2

Add some missing headers to configure checks; fixes the warnings:
tmp.c:3: warning: implicit declaration of function 'exit'
tmp.c:6: warning: implicit declaration of function 'printf'
tmp.c:4: warning: implicit declaration of function 'printf'

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32229 b3059339-0415-0410-9bf9-f77b7e298cf2

Fix parameter types in swab() check; fixes the warnings:
tmp.c:3: warning: null argument where non-null required (argument 1)
tmp.c:3: warning: null argument where non-null required (argument 2)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32230 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove unnecessary extern declarations from aalib check; fixes the warnings:
tmp.c:2: warning: redundant redeclaration of 'aa_defparams'
tmp.c:3: warning: redundant redeclaration of 'aa_defrenderparams'

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32231 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove bogus cast from configure check; fixes the warning:
tmp.c:21: warning: passing argument 2 of 'iconv' from incompatible pointer type

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32233 b3059339-0415-0410-9bf9-f77b7e298cf2

Initialize variable in libspeex configure check; fixes the warning:
tmp.c:2: warning: 'dec' is used uninitialized in this function

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32237 b3059339-0415-0410-9bf9-f77b7e298cf2

Initialize variable in giflib check; fixes the warning:
tmp.c:5: warning: 'gif.UserData' is used uninitialized in this function

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32242 b3059339-0415-0410-9bf9-f77b7e298cf2

Cast return value to long instead of int in byte order check.
This avoids the following warning on 64 bit systems:
tmp.c:3: warning: cast from pointer to integer of different size

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32250 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:55 +02:00
Uoti Urpala c5e462b33d build: enable/disable all FFmpeg libraries together
Enable all of libavcodec, libavformat, libswscale, and libpostproc
together (libavutil is always required).

based on svn commit by diego:

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32226 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:55 +02:00
Uoti Urpala 389c32b5c7 Remove MEncoder
Disable MEncoder compilation and remove files used by MEncoder
only. There's no attempt to remove all references to MEncoder from the
build system, documentation etc at this point.

Removed files: (muxers, audio/video encoders, misc)

mencoder.c
cfg-mencoder.h
parser-mecmd.[ch]
xvid_vbr.[ch]
libmpdemux/muxer*
libmpcodecs/ae*
libmpcodecs/ve*
libmpcodecs/native/rtjpegn.[ch]
libmpcodecs/native/mmx.h   // was used by rtjpegn only

Rationale:

MEncoder is still useful for some people, but there's not much
potential for further development; in the long run almost all use
cases can be handled better by solutions based on something else (for
example using FFmpeg or encoding MPlayer output). FFmpeg is already
getting video filtering support which should work for some common
MEncoder uses.

Keeping MEncoder working takes extra work that is away from player
development. While that amount of work is not huge (mostly MEncoder
can be just ignored), it's not completely insignificant either.

MEncoder is still maintained to some degree in the svn tree, so if
necessary it's possible to use it from there for now. This tree has
never had major improvements for the MEncoder side, so using svn
MEncoder instead should be no major loss.
2010-11-02 04:16:55 +02:00
diego 4093dd23af configure: change Apple remote test to just compile, not run
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32175 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:46 +02:00
Uoti Urpala 1913d92f25 configure: remove duplicated CFLAGS from DEPFLAGS
The DEPFLAGS definition included the CFLAGS variable. All uses of
DEPFLAGS in Makefile use CFLAGS too, so this resulted in duplicated
options. Make DEPFLAGS contain "-MD -MP" only.
2010-11-02 04:16:46 +02:00
diego 14ff4026c2 configure: Separate compiler warning flags from other flags
This allows setting some warning flags for C but not for C++ and fixes
a bunch of warnings that resulted from compiling C++ files with C-only
warning flags.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32173 b3059339-0415-0410-9bf9-f77b7e298cf2

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32227 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:46 +02:00
Uoti Urpala 62112dedb0 enable vo_mga, vo_xmga, vf_palette, vf_halfpack
Nothing should depend on libswscale internals any more, so re-enable
everything. vf_palette and vf_halfpack were actually fixed earlier but
were not properly enabled.
2010-11-02 04:16:45 +02:00
reimar a027b5533f configure: Add a hack to work with BeOS/Haiku libsdl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32045 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:45 +02:00
reimar 8172eec08d configure: Attempt to fix compilation with FreeBSD's dvdio.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32039 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:49 +02:00
reimar 04b8751a5c configure: make libarts check verify linking
Fix arts check to actually check linking so it doesn't
get enabled when e.g. cross-compiling under Linux for Windows.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32024 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:49 +02:00
diego a32a8756f5 configure: Fix documentation language variables in summary output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31981 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:49 +02:00
diego 2f1d60f422 configure: avoid unsupported options with clang on Darwin/PPC
Suppress unsupported compiler options when building with clang on Darwin/PPC.
patch by Rowan James, rowanj@phere.net

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31910 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:01 +02:00
diego bab0811d56 configure: Add -Wno-parentheses to CFLAGS
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31909 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:01 +02:00
diego bb336639a4 configure: fix OpenBSD default for CD-ROM device
The default CD-ROM device on OpenBSD is /dev/rcd0c, not /dev/rcd0a.
patch by Edd Barrett, vext01 gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31908 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:15:01 +02:00
diego d1a3dd5cad configure: Default to -O2 optimization level for the clang compiler
patch by Rowan James, rowanj phere net

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31880 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:46 +02:00
reimar 9e6b34e040 configure: add header_check_broken, use for cdio
Make the sys/cdio.h header test work by explictly including
sys/types.h before.
Broken headers are a Solaris and BSD tradition, hoping
for them to get their act together is hopeless, so we
work around it (for now at least).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31855 b3059339-0415-0410-9bf9-f77b7e298cf2

Add a special header_check_broken to be used for broken
system headers taht do not include all dependencies
and use it for the Solaris uscsi header.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31856 b3059339-0415-0410-9bf9-f77b7e298cf2

Use header_check_broken to simplify cdio.h check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31857 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:46 +02:00
diego 578ad534b3 configure: Rename "network" variable and option to "networking"
This avoids conflicts with the FFmpeg variable of the same name.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31749 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:44 +02:00
diego fea2d4dd45 configure: Fix LADSPA test variable initialization
Don't use NULL (which would required stddef.h).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31748 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:44 +02:00
diego a22c69b980 configure: use correct arguments in signal handler tests
Give signal handler function in test programs correct argument list.
This avoids a number of warnings from those test programs.
patch by Giorgio, mywing81 gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31735 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:44 +02:00
diego 3f413403e8 configure: Move PIC test out of the x86 section
It is not only required on x86.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31729 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:44 +02:00
diego 5e95024317 configure: Move EBX availability #define within config.h
It is not FFmpeg-specific.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31667 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:43 +02:00
ben 6704008a46 stream_bluray: add unencrypted Blu-ray playback
Support for unencrypted Blu-ray playback through libbluray.
Use it through: mplayer br:////path/to/disc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31631 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego 5583369c98 configure: Add return statement to function_check test program.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31617 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego ce9dc765af configure: use cflag_check function for more cases
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31616 b3059339-0415-0410-9bf9-f77b7e298cf2

Use cflag_check utility function in cross-compilation check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31618 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego 853dc929e4 configure: Separate dependency flags from general CFLAGS
Before, there was an unfortunate interaction with 'make checkheaders':
Compiling a .h file would generate a .d dependency information file for
that .h file as a sideeffect of compilation. Unfortunately this would
clobber the .d files of the .c files with the same basename, resulting
in broken dependency information when running plain make.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31614 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego 948fa5d070 configure: add function to check compiler flags directly
Add a convenience function to check for compiler flags directly
without specifying a test program, and modify tests to use it.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31613 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego e9a53cd1e9 configure: Rename _warn_CFLAGS variable to warn_cflags.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31612 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:14:20 +02:00
diego bd5aaa5468 configure: Add function to check for particular function in header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31593 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:13:00 +02:00
diego 9ac700bc1a configure: Place temporary files in a subdirectory of their own
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31592 b3059339-0415-0410-9bf9-f77b7e298cf2

Fix variable name for tmpdir selection iterator.
Temporary directories should now be properly created on Linux.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31594 b3059339-0415-0410-9bf9-f77b7e298cf2

config.log belongs into mplayer's root directory, not into the tmp directory

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31596 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:13:00 +02:00
diego d86aad3d56 ad_mpg123: add MP3 decoding through libmpg123
patch by Thomas Orgis, thomas-forum orgis org

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31590 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:46 +02:00
astrange a701c81f6d configure: Fix detection of SDL backend for vo_gl on OS X
SDL overrides main, and provides a prototype for SDL_main
which uses argc and argv. Since the prototype didn't match
the main() in the test program, it failed to compile, making
the test fail when it should have worked.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31589 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
reimar 5701c30061 configure: Fix indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31572 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
reimar 15a5cb8525 configure: Experimental support for clang compiler.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31569 b3059339-0415-0410-9bf9-f77b7e298cf2

clang also does not support -march=native.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31570 b3059339-0415-0410-9bf9-f77b7e298cf2

Simplify clang version extraction.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31571 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
diego 4fbe3768b8 configure: Fix catch() callback function declaration in two compile tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31548 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
diego 485b9313fe configure: whitespace cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31547 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
diego 8090af20b5 configure: Remove unnecessary #includes from libnut test.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31546 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
diego 19484c7ec5 configure: Replace manual header checks by header_check function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31545 b3059339-0415-0410-9bf9-f77b7e298cf2

Fix arpa/inet.h configure check.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31563 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:43 +02:00
diego 877c93becf configure: Remove some unnecessary #includes from tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31526 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:42 +02:00
diego c8fd0f2a7f configure: Simplify fribidi check - console output is not necessary
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31457 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:11:07 +02:00
diego 5b62426443 configure: Add header_check convenience function
Used to check for header availability.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31436 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:10:47 +02:00
diego 5d7f80c68b configure: change gettimeofday() test function parameters
Use a struct timezone as second parameter for gettimeofday in the
function test. This works around (broken?) systems where just

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31433 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:10:47 +02:00
diego 8db622ceaf configure: Remove some unnecessary #includes from compilation tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31431 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:10:41 +02:00
diego ab12b8e872 configure: Drop linux-devfs configure option.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31416 b3059339-0415-0410-9bf9-f77b7e298cf2

cosmetics: Reindent after last commit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31417 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:09:17 +02:00
diego 713284ea26 build: Rename configure.log file to config.log
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31415 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:08:56 +02:00
reimar cc43883825 configure: make gif test check linking too
Add QuantizeBuffer function call to gif test to actually test linking.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31373 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:07:42 +02:00
diego cfffbd5c17 cosmetics: Drop leading underscore from configuration variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31351 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:07:27 +02:00
Uoti Urpala 0ef8b61999 Merge svn changes r31306, r31307 2010-06-05 23:16:40 +03:00
Uoti Urpala 2b252e9acf configure: fix disabling of (x)mga without swscale internals
The _mga/_xmga variables weren't changed to "no", causing a build
failure if mga/xmga support would have been otherwise enabled but was
only switched off because of the swscale test.
2010-06-04 16:00:18 +03:00
reimar 9b04897e76 Add the -march fallback for amdfam10 also to the x86_64 case.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31307 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-06-02 22:09:04 +00:00
cehoyos ac02b9ee47 libavcodec/libx264.c requires x264 0.98 since r23430.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31306 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-06-02 20:50:55 +00:00
Uoti Urpala 5aa7c02984 Merge svn changes up to r31284 2010-06-02 17:59:10 +03:00
Uoti Urpala 4cf9a52a64 Merge svn changes up to r31265 2010-06-02 17:46:33 +03:00
cehoyos 971633b168 Fix compilation without librtmp.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31285 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-30 14:29:18 +00:00
Uoti Urpala 2f1a518d45 Merge svn changes up to r31211
The merged cache2.c changes are known to have problems. Will merge
further fixes to them before merging this to the master branch.
2010-05-30 16:14:55 +03:00
Uoti Urpala a286506467 Merge svn changes up to r31176 2010-05-30 15:37:34 +03:00
Uoti Urpala 6f199ab3d9 Merge svn changes up to r31169 2010-05-30 15:27:58 +03:00
Uoti Urpala 18657beb19 Merge svn changes up to r31145 2010-05-30 15:21:18 +03:00
reimar 3ae81e84be Change compiler argument order for compile_check to avoid incorrect linking
errors during detection with static libraries (in particular OpenGL + static SDL).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31282 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-30 12:14:40 +00:00
hyc 76f5a30854 Add librtmp support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31277 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-30 05:16:29 +00:00
reimar 7f62842e74 Remove obsolete may_alias-related defines, lavu handles this now
directly with compiler-version checks.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31267 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-29 15:07:16 +00:00
reimar b2219eaa07 Actually run a detection whether external libass exists, instead
of just assuming it does when internal libass is disabled.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31266 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-29 14:57:17 +00:00
reimar 2bdc2412a1 Fix compilation if the compiler does not support -march=amdfam10
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31265 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-29 14:44:02 +00:00
diego 47d1b72f46 cosmetics: Drop leading '_' from noinputmodules variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31264 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-29 10:43:51 +00:00
diego ab1c858071 Add support for decoding VP8 through libvpx wrapper in FFmpeg.
patch by James Zern, jzern google com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31220 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-25 23:41:30 +00:00
siretart 2032889bb5 support linking to fribidi without pkg-config
reintroduce the logic that was removed with the previous commit. In case
the naive approach to link fails, try again with pkg-config.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31210 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-24 21:13:22 +00:00
siretart 30748b8a55 make configure use pkg-config for fribidi checks
fribidi upstream has dropped fribidi-config in favor of pkg-config
now: http://lists.freedesktop.org/archives/fribidi/2008-May/000532.html

This commit fixes:

http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1675
https://launchpad.net/bugs/556200
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582784


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31209 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-24 19:32:17 +00:00
diego e4fc48153e vf_zr requires the lavc MJPEG encoder even when MEncoder has been disabled.
This fixes compilation with vo_zr enabled and MEncoder disabled.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31178 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-14 16:56:43 +00:00
diego 0624a90c9a Remove duplicate and nonsense libavencoders #define for OpenCORE AMR-WB.
OpenCORE AMR-WB only has a decoder, no encoder.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31177 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-14 16:13:53 +00:00
diego 0a33fdb83a Check for termios.h before sys/termios.h.
The former location is the more current and standard variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31176 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-14 15:34:30 +00:00
Uoti Urpala 0ae292fbcb vdpau: drop support for old versions
Since I dropped the hack to support older libvdpau versions (without
MPEG4 / hqscaling features) from the FFmpeg version used in the build
repo it's better to disable those libvdpau versions in MPlayer
too. Change the configure check to require a newer libvdpau version,
and drop compatibility code in vo_vdpau.c.
2010-05-11 04:07:31 +03:00
diego 12f67b8372 Remove internal liba52 copy.
Nowadays FFmpeg is faster than liba52 and external liba52 is well supported.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31147 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-09 14:45:29 +00:00
diego 8d0afdaa88 cosmetics: Drop leading underscore from some commonly-used variable names.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31145 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-09 11:20:15 +00:00
Uoti Urpala eee666c3b5 Merge svn changes up to r31133 2010-05-07 21:19:53 +03:00
Uoti Urpala a817e69131 Merge svn changes up to r31100 2010-05-07 20:59:01 +03:00
cehoyos 84de3e95a8 Fix compilation with old libschroedinger-dev installed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31138 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-05-06 10:10:34 +00:00
reimar aca523bf78 Revert accidental change to default CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31109 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-30 21:18:17 +00:00
reimar 39fbfa0321 Add configure detection for SDL backend for -vo gl.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31108 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-30 19:04:13 +00:00
cehoyos 992e2d666f Fix compilation with gcc 2.95.3 (with --disable-ass).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31105 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-28 11:57:09 +00:00
diego eca4b87376 Add llrintf test for FFmpeg.
patch by Michael Kostylev, michael.kostylev gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31102 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-27 17:50:50 +00:00
cehoyos 727f4b2b8a Fix compilation with live555 after libavutil r22965.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31098 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-27 08:19:42 +00:00
Uoti Urpala f38efd166e Merge svn changes up to r31097 2010-04-26 19:23:32 +03:00
Uoti Urpala 9a34ae4fd0 Merge svn changes up to r31050 2010-04-26 18:46:18 +03:00
Uoti Urpala 7795726e0f Merge svn changes up to r31033 2010-04-26 18:25:34 +03:00
Uoti Urpala 837c48ddee Merge svn changes up to r31020 2010-04-26 18:06:00 +03:00
Uoti Urpala e913d6c5da Merge svn changes up to r31004 2010-04-26 17:55:05 +03:00
Uoti Urpala 4785c2617e Merge svn changes up to r30967 2010-04-26 17:42:20 +03:00
Uoti Urpala 95fba94860 Merge svn changes up to r30917 2010-04-26 17:11:04 +03:00
Uoti Urpala ff559b8e90 Merge svn changes up to r30907 2010-04-26 16:57:25 +03:00
reimar d5d3c203d3 Remove code to work around bugs in ancient libSDL versions, the code has been
accidentally disabled since some time and there were no complaints.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31067 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-24 17:15:28 +00:00
diego 701bbdfea6 VIDIX only works for Linux on the x86_64 architecture, not on other OSes.
Fixes Debian bug #578622.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31057 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-22 14:02:20 +00:00
diego a35ab28a5e Revert obscure hack that disables the malloc.h check on certain BSD platforms.
It's unclear what disabling the result of the check is good for and why it is
necessary.  Just avoiding a warning is not a good enough reason.  Furthermore
this hack introduces problems on 64 bit (k)FreeBSD, as reported in Debian bug
#578622, which indicates it might never have been a good idea at all.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31054 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-21 12:43:16 +00:00
lorenm c462186142 Tell x264 that we aren't going to give it timestamps.
Fixes some warnings starting in x264-r1480.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31049 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-20 09:14:54 +00:00
diego d226b09b2c Generate dependency information as a sideeffect of compilation.
This speeds up compilation times, simplifies the code and
fixes dependency file generation in libav*.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31026 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-06 10:08:19 +00:00
diego 151e497922 Add -MP to dependency command.
This should avoid issues with make stalling after header files
have been renamed or removed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31022 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-05 17:15:08 +00:00
diego 093e1cb672 Drop unused DEPEND_CMD from config.mak; FFmpeg no longer needs it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31021 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-05 17:11:58 +00:00
diego ce1ade971d Remove -O4 from FAAC check, it is in our standard CFLAGS already.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31008 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-04 17:57:00 +00:00
diego cc30ded639 Directly use CFLAGS for ASFLAGS instead of duplicating the variable content.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31007 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-04 17:18:47 +00:00
diego ad26195a80 cosmetics: prettyprint config.mak somewhat
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31005 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-04 16:48:46 +00:00
diego 00959d5cf7 Remove no longer necessary CONFIG_SWSCALE from config.h/config.mak.
FFmpeg now builds with the software scaler enabled by default.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31004 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-04 16:32:54 +00:00
cehoyos 103ca0c902 Cosmetics: Fix indentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30985 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-02 10:13:45 +00:00
cehoyos 1468d39b01 Do not try -march=native for icc.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30984 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-04-02 10:13:08 +00:00
Uoti Urpala 97db8519c8 build: create and install .mo translation files
If --enable-translation was specified to configure, build and install
.mo files for the selected message language(s). The languages enabled
can be chosen with the --language-msg option; by default all available
ones will be installed. The .po source files for available languages
are seached under the po/ subdirectory; at the moment that
subdirectory is not included in the sources so no languages will be
enabled unless you add the actual translations before running
configure.

The .mo files are created in the locale/ subdirectory when compiling.
By default MPlayer will only look for them in the installed location,
so the newly compiled .mo files will not be found if you run MPlayer
without installing. You can set the MPLAYER_LOCALEDIR environment
variable to point to the locale/ directory to test the translations
without installing.
2010-04-01 13:09:32 +03:00
diego ceaa91f0a1 Add HAVE_STRERROR_R definition for FFmpeg to config.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30976 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-28 19:02:58 +00:00
diego a7b500e6ff Add definition of CONFIG_LIBRTMP to config.h for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30974 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-28 16:49:23 +00:00
reimar 7a82111f82 Fix compilation after librtmp support in FFmpeg.
Should be replaced by a proper configure check for librtmp later.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30973 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-28 16:31:17 +00:00
diego f72822d9e6 Remove unused OPTFLAGS variable from config.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30960 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-25 19:53:05 +00:00
diego a36308f42d Remove unused MACOSX_BUNDLE config.mak entry.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30959 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-25 18:53:37 +00:00
diego 9d38fc0678 Move some FFmpeg-specific entries to the FFmpeg section of config.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30958 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-25 18:51:57 +00:00
diego 9e8f301f22 Introduce mak_enable function to set variables in config.mak.
This avoids manually setting target architecture and CPU extensions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30925 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 14:41:32 +00:00
diego d32a13a467 Rename SGI_MIPS architecture to plain MIPS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30924 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 14:09:09 +00:00
diego 82b8a649ae Drop libavcodec_arch hack; ARCH can now be set directly in config.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30923 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 13:55:59 +00:00
diego c52aed20ee Lowercase arch and subarch values.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30922 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 13:41:54 +00:00
diego 0be7b19c27 cosmetics: Drop leading underscore from cpuexts variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30921 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 13:37:36 +00:00
diego dc440b47d3 Make ff_config_enable work with lowercase values.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30920 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 13:34:33 +00:00
diego f3928b9464 Split subarch handling off from generic arch handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30919 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 13:20:06 +00:00
cehoyos 8e8387f7bd Fix compilation after FFmpeg r22569 at least for some architectures.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30916 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 10:46:18 +00:00
diego 43ccbad38c cosmetics: Drop leading underscores from arch variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30915 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-17 10:10:47 +00:00
cehoyos 151e9a8303 Fix compilation after FFmpeg r22565.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30905 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-16 10:25:54 +00:00
diego 2c2097601e Add CONFIG_DCT and CONFIG_DWT to config.h as well as to config.mak for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30896 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-15 06:39:21 +00:00
diego ee2ac03ccc variable renaming cosmetics: _have_yasm --> have_yasm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30894 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:39:02 +00:00
diego 7d51464c27 Remove unused MMX_FFT Makefile variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30893 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:37:58 +00:00
diego 3aee1115a8 cosmetics: Simplify _codecsdir setting for MinGW and OS/2.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30892 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:00:06 +00:00
diego 0dd44a006e Add -Wstrict-prototypes to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30891 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:58:20 +00:00
diego 70fafd7803 Use menu instead of GUI as example for an internal feature turned on by a flag.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30890 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:55:13 +00:00
cehoyos 299f7ad933 Fix compilation after FFmpeg r22522.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30889 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:50:15 +00:00
diego aee9749bca Replace separate Win32, XAnim and Real codec directories by one global dir.
Nowadays MPlayer does not use the codecs from other installed programs.
A runtime setting will soon take over the rare case that binary codecs
should be searched for in non-standard directories.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30888 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 16:13:32 +00:00
Uoti Urpala 00323c06e2 Delete things related to old translation system
Remove the help/ subdirectory, configure code to create toplevel
help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
2010-03-10 03:47:14 +02:00
Uoti Urpala 0269d22d32 Merge svn changes up to r30876 2010-03-10 03:18:42 +02:00
Uoti Urpala 240550bbb9 Merge svn changes up to r30848 2010-03-10 03:00:14 +02:00
Uoti Urpala acdce0176a Merge svn changes up to r30732 2010-03-10 01:25:15 +02:00
Uoti Urpala e03e0597d0 Merge svn changes up to r30570 2010-03-09 23:20:56 +02:00
Uoti Urpala 36e7a20e69 Merge svn changes up to r30550 2010-03-09 23:03:14 +02:00
Uoti Urpala f1b6cdbe9d Merge svn changes up to r30484 2010-03-09 19:24:47 +02:00
cehoyos 27aa3db23e Fix help text for --disable-win32dll.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30871 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 12:01:42 +00:00
Uoti Urpala 81065d41b6 Add runtime translation support
Add support for gettext-based runtime translations. Enabled with
configure switch --enable-translation (no autodetection). Note that no
translation files are installed yet.
2010-03-08 22:53:12 +02:00
komh b10a6917f4 Define HAVE_SETMODE conditionally, and use it in stream/stream_file.c instead
of platform specific predefined macros.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30829 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-04 14:46:44 +00:00
komh 9beeeb1a9e Add a VCD support for OS/2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30819 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-03 14:32:29 +00:00
diego c106fe7751 Drop support for old-style DVB code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30818 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-02 19:57:17 +00:00
rectalogic d83eddc2a8 Remove RTSP_MUXER from libavmuxers to fix compilation with --disable-network
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30817 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-02 17:18:55 +00:00
diego e27159e748 Add CONFIG_LSP to config.h for libavcodec compilation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30816 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-02 16:29:21 +00:00
Uoti Urpala 74ffb51f33 build/vdpau: drop support for dynamic loading of libvdpau
After a recent library update on my system MPlayer started crashing on
exit in XCloseDisplay() if -vo vdpau had been used. With normal
linking it works OK. Since there should be little need for the dynamic
loading functionality any more, I'll just drop it rather than try
investigating the exact problem with dynamic loading and whether it
would be fixable. VDPAU is now linked normally with -lvdpau if
available.
2010-02-26 18:37:19 +02:00
diego dc33991b88 Add -Wmissing-prototypes to CFLAGS if available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30719 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-23 07:55:47 +00:00
diego c6ef2fce44 FFmpeg: Add HAVE_ALIGNED_{8,16} to config.h on ppc and x86.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30665 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 17:21:48 +00:00
diego 5f10e16f75 FFmpeg: Add tomi to architecture list.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30664 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-20 17:03:28 +00:00
reimar d58a991207 Add av_alias define as a hack to fix compilation of intreadwrite.h without
HAVE_AV_CONFIG_H.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30644 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 21:48:49 +00:00
reimar 2347661b0e Check that fontconfig version is at least 2.4.2, which is required for the
included libass.
A more fine-grained check would be possible to e.g. allow older versions
if internal libass is disabled, but seems like overkill.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30570 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-14 11:57:37 +00:00
diego 134e9685a2 10l: Revert previous commit about CONFIG_HARDCODED_TABLES/CONFIG_MPEGAUDIO_HP.
These two variables are handled different from others in libavcodec/Makefile,
thus the previous way of adding them to config.mak was correct.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30553 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-13 16:59:42 +00:00
diego 24959bb3b4 Use normal way to add CONFIG_HARDCODED_TABLES/CONFIG_MPEGAUDIO_HP to config.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30552 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-13 15:51:03 +00:00