2003-01-03 17:03:22 +00:00
|
|
|
# this doesn't trigger the distdir target in the ffmpeg checkout
|
2003-09-12 12:56:55 +00:00
|
|
|
DIST_SUBDIR=
|
2003-01-03 17:03:22 +00:00
|
|
|
|
2003-01-08 16:41:27 +00:00
|
|
|
if USE_FFMPEG
|
|
|
|
FFMPEG_DIR=ffmpeg
|
|
|
|
else
|
|
|
|
FFMPEG_DIR=
|
|
|
|
endif
|
|
|
|
|
2003-07-22 23:13:45 +00:00
|
|
|
MAKEFLAGS=-j1
|
|
|
|
|
2003-01-16 17:13:00 +00:00
|
|
|
# patch it up before descending into dirs
|
|
|
|
all-recursive: patches
|
2003-01-16 16:58:29 +00:00
|
|
|
|
|
|
|
# ignore failures on patching
|
|
|
|
# ignore failures on rm
|
|
|
|
PATCHES = patch/function.patch
|
|
|
|
|
|
|
|
patches:
|
2003-01-16 17:13:00 +00:00
|
|
|
@echo -n Patching ffmpeg if necessary ...
|
2003-09-12 12:56:55 +00:00
|
|
|
@patch -p0 -N -r rejects <$(srcdir)/patch/function.patch > /dev/null || true
|
2003-01-16 16:58:29 +00:00
|
|
|
@rm -f rejects || true
|
2003-01-16 17:13:00 +00:00
|
|
|
@echo done.
|
2003-01-16 16:58:29 +00:00
|
|
|
|
|
|
|
|
2003-09-12 12:56:55 +00:00
|
|
|
SUBDIRS =
|
2002-12-27 16:24:01 +00:00
|
|
|
|
2003-09-12 12:56:55 +00:00
|
|
|
EXTRA_DIST = \
|
2003-01-16 16:58:29 +00:00
|
|
|
$(PATCHES) \
|
2003-01-10 11:01:27 +00:00
|
|
|
Tag \
|
2003-01-03 17:03:22 +00:00
|
|
|
ffmpeg/CREDITS \
|
|
|
|
ffmpeg/INSTALL \
|
|
|
|
ffmpeg/README \
|
|
|
|
ffmpeg/config.mak \
|
|
|
|
ffmpeg/configure \
|
|
|
|
ffmpeg/cygwin_inttypes.h \
|
2003-01-08 16:41:27 +00:00
|
|
|
ffmpeg/ffserver.h \
|
2003-01-03 17:03:22 +00:00
|
|
|
ffmpeg/ffmpeg.c \
|
|
|
|
ffmpeg/ffserver.c \
|
|
|
|
ffmpeg/berrno.h \
|
2003-07-07 22:40:55 +00:00
|
|
|
ffmpeg/config.h \
|
2003-01-03 17:03:22 +00:00
|
|
|
ffmpeg/libavcodec/alpha/*.c \
|
|
|
|
ffmpeg/libavcodec/alpha/*.h \
|
|
|
|
ffmpeg/libavcodec/alpha/*.S \
|
|
|
|
ffmpeg/libavcodec/armv4l/*.c \
|
|
|
|
ffmpeg/libavcodec/armv4l/*.S \
|
|
|
|
ffmpeg/libavcodec/i386/*.c \
|
|
|
|
ffmpeg/libavcodec/i386/*.h \
|
|
|
|
ffmpeg/libavcodec/liba52/*.c \
|
|
|
|
ffmpeg/libavcodec/liba52/*.h \
|
|
|
|
ffmpeg/libavcodec/ppc/*.c \
|
|
|
|
ffmpeg/libavcodec/ppc/*.h \
|
|
|
|
ffmpeg/libavcodec/ps2/*.c \
|
|
|
|
ffmpeg/libavcodec/ps2/*.h \
|
|
|
|
ffmpeg/libavcodec/*.c \
|
|
|
|
ffmpeg/libavcodec/*.h \
|
|
|
|
ffmpeg/libavformat/*.c \
|
|
|
|
ffmpeg/libavformat/*.h \
|
|
|
|
ffmpeg/tests/*.c \
|
|
|
|
ffmpeg/tests/*.ref \
|
|
|
|
ffmpeg/tests/*.sh \
|
|
|
|
ffmpeg/tests/test.conf \
|
2003-09-12 12:56:55 +00:00
|
|
|
ffmpeg/vhook/*.c
|
2003-01-03 17:03:22 +00:00
|
|
|
|
|
|
|
|
2002-12-27 16:24:01 +00:00
|
|
|
checkout:
|
2003-10-26 11:51:17 +00:00
|
|
|
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
|
2002-12-27 16:24:01 +00:00
|
|
|
|
2003-01-03 17:03:22 +00:00
|
|
|
# on running make install, make sure make has been run first
|
2003-06-11 19:42:20 +00:00
|
|
|
install: all
|
|
|
|
@true
|
2003-01-03 17:03:22 +00:00
|
|
|
|
2003-01-20 11:58:56 +00:00
|
|
|
# we don't install stuff so no need to uninstall
|
|
|
|
uninstall:
|
|
|
|
@true
|
|
|
|
|
2003-01-03 17:03:22 +00:00
|
|
|
# override recursive targets
|
2003-01-20 11:58:56 +00:00
|
|
|
# FIXME: maybe this can be prettier, so it doesn't generate warnings
|
2003-01-03 17:03:22 +00:00
|
|
|
dvi-recursive:
|
|
|
|
true
|
|
|
|
check-recursive:
|
|
|
|
true
|
|
|
|
installcheck-recursive:
|
|
|
|
true
|
2003-09-11 19:28:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libavformat.la libavcodec.la
|
|
|
|
|
|
|
|
if HAVE_CPU_I386
|
|
|
|
defs_i386 = -DARCH_X86=1 -DHAVE_MMX=1
|
|
|
|
else
|
|
|
|
defs_i386 =
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_CPU_PPC
|
|
|
|
defs_powerpc = -DARCH_PPC=1
|
|
|
|
else
|
|
|
|
defs_powerpc =
|
|
|
|
endif
|
|
|
|
|
|
|
|
defs = \
|
|
|
|
$(defs_i386) \
|
|
|
|
$(defs_powerpc) \
|
|
|
|
-DTUNECPU=generic \
|
|
|
|
-DHAVE_STRPTIME=1 \
|
|
|
|
-DHAVE_LRINTF=1 \
|
|
|
|
-DCONFIG_ENCODERS=1 \
|
|
|
|
-DCONFIG_DECODERS=1 \
|
|
|
|
-DCONFIG_PP=1 \
|
|
|
|
-DCONFIG_MPEGAUDIO_HP=1 \
|
|
|
|
-DCONFIG_HAVE_DLOPEN=1 \
|
|
|
|
-DCONFIG_HAVE_DLFCN=1 \
|
|
|
|
-DHAVE_MALLOC_H=1 \
|
|
|
|
-DHAVE_MEMALIGN=1 \
|
|
|
|
-DSIMPLE_IDCT=1 \
|
|
|
|
-DCONFIG_RISKY=1
|
|
|
|
|
|
|
|
libavformat_la_SOURCES = \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/4xm.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavformat/allformats.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/amr.c \
|
|
|
|
ffmpeg/libavformat/asf.c \
|
|
|
|
ffmpeg/libavformat/au.c \
|
|
|
|
ffmpeg/libavformat/audio.c \
|
|
|
|
ffmpeg/libavformat/avidec.c \
|
|
|
|
ffmpeg/libavformat/avienc.c \
|
|
|
|
ffmpeg/libavformat/aviobuf.c \
|
|
|
|
ffmpeg/libavformat/avio.c \
|
|
|
|
ffmpeg/libavformat/crc.c \
|
|
|
|
ffmpeg/libavformat/cutils.c \
|
|
|
|
ffmpeg/libavformat/dv1394.c \
|
|
|
|
ffmpeg/libavformat/dv.c \
|
|
|
|
ffmpeg/libavformat/ffm.c \
|
|
|
|
ffmpeg/libavformat/file.c \
|
|
|
|
ffmpeg/libavformat/flvdec.c \
|
|
|
|
ffmpeg/libavformat/flvenc.c \
|
|
|
|
ffmpeg/libavformat/framehook.c \
|
|
|
|
ffmpeg/libavformat/gif.c \
|
|
|
|
ffmpeg/libavformat/gifdec.c \
|
|
|
|
ffmpeg/libavformat/grab.c \
|
|
|
|
ffmpeg/libavformat/idcin.c \
|
|
|
|
ffmpeg/libavformat/idroq.c \
|
|
|
|
ffmpeg/libavformat/img.c \
|
|
|
|
ffmpeg/libavformat/ipmovie.c \
|
|
|
|
ffmpeg/libavformat/jpeg.c \
|
|
|
|
ffmpeg/libavformat/mov.c \
|
|
|
|
ffmpeg/libavformat/movenc.c \
|
|
|
|
ffmpeg/libavformat/mp3.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavformat/mpeg.c \
|
|
|
|
ffmpeg/libavformat/mpegts.c \
|
|
|
|
ffmpeg/libavformat/mpegtsenc.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/mpjpeg.c \
|
|
|
|
ffmpeg/libavformat/nut.c \
|
|
|
|
ffmpeg/libavformat/os_support.c \
|
|
|
|
ffmpeg/libavformat/png.c \
|
|
|
|
ffmpeg/libavformat/pnm.c \
|
|
|
|
ffmpeg/libavformat/psxstr.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavformat/raw.c \
|
|
|
|
ffmpeg/libavformat/rm.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/segafilm.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavformat/swf.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/utils.c \
|
|
|
|
ffmpeg/libavformat/wav.c \
|
|
|
|
ffmpeg/libavformat/wc3movie.c \
|
|
|
|
ffmpeg/libavformat/westwood.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavformat/yuv4mpeg.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavformat/yuv.c
|
2003-09-11 19:28:09 +00:00
|
|
|
|
|
|
|
libavformat_la_LDFLAGS = -lm -lz
|
|
|
|
libavformat_la_CFLAGS = $(defs) -Wall -I$(srcdir)/ffmpeg -I$(srcdir)/ffmpeg/libavformat \
|
|
|
|
-I$(srcdir)/ffmpeg/libavcodec -DHAVE_AV_CONFIG_H \
|
|
|
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
|
|
|
|
|
|
|
|
|
|
|
if HAVE_CPU_I386
|
|
|
|
sources_i386 = \
|
|
|
|
ffmpeg/libavcodec/i386/cputest.c \
|
|
|
|
ffmpeg/libavcodec/i386/dsputil_mmx.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/i386/fdct_mmx.c \
|
|
|
|
ffmpeg/libavcodec/i386/fft_sse.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/i386/idct_mmx.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/i386/motion_est_mmx.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/i386/mpegvideo_mmx.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/i386/simple_idct_mmx.c
|
2003-09-11 19:28:09 +00:00
|
|
|
else
|
|
|
|
sources_i386 =
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_CPU_PPC
|
|
|
|
sources_powerpc = \
|
|
|
|
ffmpeg/libavcodec/ppc/dsputil_ppc.c \
|
|
|
|
ffmpeg/libavcodec/ppc/mpegvideo_ppc.c
|
2003-11-04 15:22:42 +00:00
|
|
|
# disabled Altivec support for now until someone shows up that make them compile conditionally
|
|
|
|
# ffmpeg/libavcodec/ppc/dsputil_altivec.c \
|
|
|
|
# ffmpeg/libavcodec/ppc/fft_altivec.c \
|
|
|
|
# ffmpeg/libavcodec/ppc/gmc_altivec.c \
|
|
|
|
# ffmpeg/libavcodec/ppc/idct_altivec.c \
|
2003-11-05 10:57:58 +00:00
|
|
|
# ffmpeg/libavcodec/ppc/mpegvideo_altivec.c
|
2003-09-11 19:28:09 +00:00
|
|
|
else
|
|
|
|
sources_powerpc =
|
|
|
|
endif
|
|
|
|
|
|
|
|
libavcodec_la_DEFS = $(defs)
|
|
|
|
libavcodec_la_CFLAGS = $(defs) -Wall -I$(srcdir)/ffmpeg -I$(srcdir)/ffmpeg/libavformat \
|
|
|
|
-I$(srcdir)/ffmpeg/libavcodec -DHAVE_AV_CONFIG_H \
|
|
|
|
-I$(srcdir)/ffmpeg/libavcodec/liba52 \
|
|
|
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
|
|
|
libavcodec_la_LDFLAGS = -lm -lz
|
|
|
|
libavcodec_la_SOURCES = \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/4xm.c \
|
|
|
|
ffmpeg/libavcodec/ac3enc.c \
|
|
|
|
ffmpeg/libavcodec/adpcm.c \
|
|
|
|
ffmpeg/libavcodec/adx.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/allcodecs.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/apiexample.c \
|
|
|
|
ffmpeg/libavcodec/asv1.c \
|
|
|
|
ffmpeg/libavcodec/avcodec.c \
|
|
|
|
ffmpeg/libavcodec/cabac.c \
|
|
|
|
ffmpeg/libavcodec/cinepak.c \
|
|
|
|
ffmpeg/libavcodec/cljr.c \
|
|
|
|
ffmpeg/libavcodec/common.c \
|
|
|
|
ffmpeg/libavcodec/cyuv.c \
|
|
|
|
ffmpeg/libavcodec/dpcm.c \
|
|
|
|
ffmpeg/libavcodec/dsputil.c \
|
|
|
|
ffmpeg/libavcodec/dv.c \
|
|
|
|
ffmpeg/libavcodec/error_resilience.c \
|
|
|
|
ffmpeg/libavcodec/eval.c \
|
|
|
|
ffmpeg/libavcodec/faandct.c \
|
|
|
|
ffmpeg/libavcodec/fdctref.c \
|
|
|
|
ffmpeg/libavcodec/fft.c \
|
|
|
|
ffmpeg/libavcodec/ffv1.c \
|
|
|
|
ffmpeg/libavcodec/golomb.c \
|
|
|
|
ffmpeg/libavcodec/h263.c \
|
|
|
|
ffmpeg/libavcodec/h263dec.c \
|
|
|
|
ffmpeg/libavcodec/h264.c \
|
|
|
|
ffmpeg/libavcodec/huffyuv.c \
|
|
|
|
ffmpeg/libavcodec/idcinvideo.c \
|
|
|
|
ffmpeg/libavcodec/imgconvert.c \
|
|
|
|
ffmpeg/libavcodec/imgresample.c \
|
|
|
|
ffmpeg/libavcodec/indeo3.c \
|
|
|
|
ffmpeg/libavcodec/interplayvideo.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/jfdctfst.c \
|
|
|
|
ffmpeg/libavcodec/jfdctint.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/jrevdct.c \
|
|
|
|
ffmpeg/libavcodec/mace.c \
|
|
|
|
ffmpeg/libavcodec/mdct.c \
|
|
|
|
ffmpeg/libavcodec/mem.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/mjpeg.c \
|
|
|
|
ffmpeg/libavcodec/motion_est.c \
|
|
|
|
ffmpeg/libavcodec/mpeg12.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/mpegaudio.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/mpegaudiodec.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/mpegvideo.c \
|
|
|
|
ffmpeg/libavcodec/msmpeg4.c \
|
|
|
|
ffmpeg/libavcodec/msrle.c \
|
|
|
|
ffmpeg/libavcodec/msvideo1.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/opts.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/pcm.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/ra144.c \
|
|
|
|
ffmpeg/libavcodec/ra288.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/ratecontrol.c \
|
|
|
|
ffmpeg/libavcodec/rational.c \
|
|
|
|
ffmpeg/libavcodec/raw.c \
|
|
|
|
ffmpeg/libavcodec/resample.c \
|
|
|
|
ffmpeg/libavcodec/roqvideo.c \
|
|
|
|
ffmpeg/libavcodec/rpza.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/rv10.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/simple_idct.c \
|
|
|
|
ffmpeg/libavcodec/svq1.c \
|
|
|
|
ffmpeg/libavcodec/utils.c \
|
|
|
|
ffmpeg/libavcodec/vcr1.c \
|
|
|
|
ffmpeg/libavcodec/vp3.c \
|
|
|
|
ffmpeg/libavcodec/vqavideo.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
ffmpeg/libavcodec/wmadec.c \
|
2003-10-26 11:51:17 +00:00
|
|
|
ffmpeg/libavcodec/xan.c \
|
|
|
|
ffmpeg/libavcodec/xvmcvideo.c \
|
2003-09-11 19:28:09 +00:00
|
|
|
$(sources_i386) \
|
|
|
|
$(sources_powerpc)
|
|
|
|
|