mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
patch by Heliodoro Tammaro <helio at interactives dot org>
- configures/builds on all darwin versions - ffserver builds on darwin (if you have the extra libraries) - builds correctly (again) on non-darwin ppc (no -faltivec in gcc-3.2) Originally committed as revision 880 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
252f397509
commit
a43bd1d715
5
Makefile
5
Makefile
@ -9,8 +9,10 @@ VPATH=$(SRC_PATH)
|
|||||||
CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
||||||
ifeq ($(CONFIG_DARWIN),yes)
|
ifeq ($(CONFIG_DARWIN),yes)
|
||||||
LDFLAGS+= -g -d
|
LDFLAGS+= -g -d
|
||||||
|
FFSLDFLAGS= -Wl,-bind_at_load
|
||||||
else
|
else
|
||||||
LDFLAGS+= -g -Wl,--warn-common
|
LDFLAGS+= -g -Wl,--warn-common
|
||||||
|
FFSLDFLAGS= -Wl,-E
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_GPROF),yes)
|
ifeq ($(TARGET_GPROF),yes)
|
||||||
@ -53,7 +55,8 @@ ffmpeg$(EXE): ffmpeg_g$(EXE)
|
|||||||
$(STRIP) -o $@ $<
|
$(STRIP) -o $@ $<
|
||||||
|
|
||||||
ffserver$(EXE): ffserver.o $(DEP_LIBS)
|
ffserver$(EXE): ffserver.o $(DEP_LIBS)
|
||||||
$(CC) $(LDFLAGS) -Wl,-E -o $@ ffserver.o -L./libavcodec -L./libav \
|
$(CC) $(LDFLAGS) $(FFSLDFLAGS) \
|
||||||
|
-o $@ ffserver.o -L./libavcodec -L./libav \
|
||||||
-lavformat -lavcodec -ldl $(EXTRALIBS)
|
-lavformat -lavcodec -ldl $(EXTRALIBS)
|
||||||
|
|
||||||
ffplay: ffmpeg$(EXE)
|
ffplay: ffmpeg$(EXE)
|
||||||
|
7
configure
vendored
7
configure
vendored
@ -35,7 +35,7 @@ case "$cpu" in
|
|||||||
alpha)
|
alpha)
|
||||||
cpu="alpha"
|
cpu="alpha"
|
||||||
;;
|
;;
|
||||||
"Power Macintosh")
|
"Power Macintosh"|ppc)
|
||||||
cpu="powerpc"
|
cpu="powerpc"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -85,12 +85,13 @@ extralibs="-lpoll -lgnugetopt -lm"
|
|||||||
make="gmake"
|
make="gmake"
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
|
cc="cc"
|
||||||
v4l="no"
|
v4l="no"
|
||||||
audio_oss="no"
|
audio_oss="no"
|
||||||
CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer"
|
CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer"
|
||||||
SHFLAGS=-dynamic
|
SHFLAGS="-dynamiclib"
|
||||||
extralibs=""
|
extralibs=""
|
||||||
darwin=yes
|
darwin="yes"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -1340,8 +1340,10 @@ void dsputil_init(void)
|
|||||||
use_permuted_idct = 0;
|
use_permuted_idct = 0;
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_POWERPC
|
#ifdef ARCH_POWERPC
|
||||||
|
#ifdef CONFIG_DARWIN
|
||||||
dsputil_init_altivec();
|
dsputil_init_altivec();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SIMPLE_IDCT
|
#ifdef SIMPLE_IDCT
|
||||||
if (ff_idct == NULL) {
|
if (ff_idct == NULL) {
|
||||||
|
@ -167,7 +167,9 @@ void dsputil_init_alpha(void);
|
|||||||
#define emms_c()
|
#define emms_c()
|
||||||
#define __align8 __attribute__ ((aligned (16)))
|
#define __align8 __attribute__ ((aligned (16)))
|
||||||
|
|
||||||
|
#ifdef CONFIG_DARWIN
|
||||||
void dsputil_init_altivec(void);
|
void dsputil_init_altivec(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user