2010-11-22 05:16:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.66 2010/11/22 10:16:08 espie Exp $
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= audio/video converter and streamer with bktr(4) support
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
V= 20100512
|
|
|
|
DISTNAME= ffmpeg-svn-${V}
|
|
|
|
PKGNAME= ffmpeg-${V}
|
2010-11-19 03:59:32 -05:00
|
|
|
REVISION= 5
|
2010-05-26 17:38:52 -04:00
|
|
|
CATEGORIES= graphics multimedia
|
2010-08-25 19:27:21 -04:00
|
|
|
MASTER_SITES= http://comstyle.com/source/ \
|
|
|
|
http://gormsby.com/downloads/
|
2007-05-25 11:54:14 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
SHARED_LIBS= avcodec 14.0 \
|
|
|
|
avdevice 3.0 \
|
|
|
|
avfilter 1.0 \
|
|
|
|
avformat 13.0 \
|
|
|
|
avutil 7.0 \
|
|
|
|
postproc 13.0 \
|
|
|
|
swscale 2.0
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
|
|
|
|
# LGPLv2.1 / GPLv2
|
2007-09-15 16:09:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= patents
|
2003-07-19 14:16:34 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2006-03-20 00:50:49 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-06-15 06:07:41 -04:00
|
|
|
MODULES= gcc3
|
|
|
|
MODGCC3_ARCHES= sparc
|
|
|
|
|
2010-11-19 03:59:32 -05:00
|
|
|
WANTLIB= SDL X11 Xext Xfixes bz2 c faac faad gsm m mp3lame ogg \
|
2010-11-22 05:16:08 -05:00
|
|
|
orc-0.4 pthread schroedinger-1.0>=2 sndio speex theora \
|
2010-11-19 03:59:32 -05:00
|
|
|
theoradec theoraenc vorbis vorbisenc x264 z
|
2010-05-26 17:38:52 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS= textproc/texi2html
|
2010-08-20 08:10:52 -04:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS+= devel/yasm
|
2010-08-20 08:10:52 -04:00
|
|
|
.endif
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= archivers/bzip2 \
|
|
|
|
audio/faac \
|
|
|
|
audio/faad \
|
|
|
|
audio/lame \
|
|
|
|
audio/libvorbis \
|
|
|
|
audio/speex \
|
|
|
|
audio/gsm \
|
|
|
|
devel/sdl \
|
|
|
|
multimedia/libtheora \
|
2010-11-19 03:59:32 -05:00
|
|
|
multimedia/schroedinger>=1.0.10 \
|
2010-11-17 03:05:12 -05:00
|
|
|
multimedia/x264
|
2003-09-26 10:40:29 -04:00
|
|
|
|
2010-08-07 18:41:47 -04:00
|
|
|
.if ${MACHINE_ARCH:Marm}
|
2010-11-19 03:59:32 -05:00
|
|
|
# uses ARM EABI
|
2010-08-07 18:41:47 -04:00
|
|
|
CONFIGURE_ARGS+= --arch=generic
|
|
|
|
.endif
|
|
|
|
|
2007-05-25 11:54:14 -04:00
|
|
|
# inter-library dependencies for the current configuration
|
2010-08-25 19:27:21 -04:00
|
|
|
LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -lfaac -lfaad -lgsm -lm -lmp3lame -logg -lorc-0.4 -lschroedinger-1.0 -lspeex -ltheora -lvorbis -lvorbisenc -lx264 -lz -pthread -Wl,-rpath,${LOCALBASE}/lib
|
2010-05-26 17:38:52 -04:00
|
|
|
LIBavdevice_EXTRALIBS=-L${X11BASE}/lib -lX11 -lXext -lXfixes -lm -lsndio -Wl,-rpath,${LOCALBASE}/lib -Wl,-rpath,${X11BASE}/lib
|
|
|
|
LIBavfilter_EXTRALIBS=-lm
|
2008-07-08 21:57:44 -04:00
|
|
|
LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -lbz2 -lm -Wl,-rpath,${LOCALBASE}/lib
|
2010-05-26 17:38:52 -04:00
|
|
|
LIBavutil_EXTRALIBS=-lm
|
2008-07-08 21:57:44 -04:00
|
|
|
LIBpostproc_EXTRALIBS=-lm
|
|
|
|
LIBswscale_EXTRALIBS=-lm
|
2007-05-25 11:54:14 -04:00
|
|
|
|
|
|
|
# configure wants a directory it can execute files in
|
2010-05-26 17:38:52 -04:00
|
|
|
WRKTMP= ${WRKDIR}/tmp
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-10-18 14:13:12 -04:00
|
|
|
USE_GROFF = Yes
|
2010-05-26 17:38:52 -04:00
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--cc=${CC} \
|
|
|
|
--disable-altivec \
|
|
|
|
--disable-armv5te \
|
|
|
|
--disable-armv6 \
|
|
|
|
--disable-armv6t2 \
|
|
|
|
--disable-armvfp \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-indev=jack \
|
|
|
|
--disable-indev=oss \
|
|
|
|
--disable-iwmmxt \
|
|
|
|
--disable-neon \
|
|
|
|
--disable-optimizations \
|
|
|
|
--disable-outdev=oss \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-libfaac \
|
|
|
|
--enable-libfaad \
|
|
|
|
--enable-libgsm \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libschroedinger \
|
|
|
|
--enable-libspeex \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-nonfree \
|
|
|
|
--enable-postproc \
|
|
|
|
--enable-pthreads \
|
|
|
|
--enable-runtime-cpudetect \
|
|
|
|
--enable-x11grab \
|
|
|
|
--extra-cflags="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
--extra-libs="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
|
|
--mandir=${PREFIX}/man
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= LIBavcodec_EXTRALIBS="${LIBavcodec_EXTRALIBS}" \
|
|
|
|
LIBavdevice_EXTRALIBS="${LIBavdevice_EXTRALIBS}" \
|
|
|
|
LIBavfilter_EXTRALIBS="${LIBavfilter_EXTRALIBS}" \
|
|
|
|
LIBavformat_EXTRALIBS="${LIBavformat_EXTRALIBS}" \
|
|
|
|
LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
|
|
|
|
LIBpostproc_EXTRALIBS="${LIBpostproc_EXTRALIBS}" \
|
|
|
|
LIBswscale_EXTRALIBS="${LIBswscale_EXTRALIBS}" \
|
|
|
|
TMPDIR=${WRKTMP} \
|
|
|
|
CPPFLAGS="-I${X11BASE}/include"
|
|
|
|
|
|
|
|
VERSION_FLAGS= libavcodec_VERSION=$(LIBavcodec_VERSION) \
|
|
|
|
libavdevice_VERSION=$(LIBavdevice_VERSION) \
|
|
|
|
libavfilter_VERSION=$(LIBavfilter_VERSION) \
|
|
|
|
libavformat_VERSION=$(LIBavformat_VERSION) \
|
|
|
|
libavutil_VERSION=$(LIBavutil_VERSION) \
|
|
|
|
libpostproc_VERSION=$(LIBpostproc_VERSION) \
|
|
|
|
libswscale_VERSION=${LIBswscale_VERSION}
|
|
|
|
|
|
|
|
MAKE_ENV= V=1
|
|
|
|
|
|
|
|
MAKE_FLAGS= ${VERSION_FLAGS} \
|
|
|
|
LIBavcodec_EXTRALIBS="-lavutil ${LIBavcodec_EXTRALIBS}" \
|
|
|
|
LIBavdevice_EXTRALIBS="-lavcodec -lavformat -lavutil ${LIBavdevice_EXTRALIBS}" \
|
|
|
|
LIBavfilter_EXTRALIBS="-lavcodec -lavutil -lswscale ${LIBavfilter_EXTRALIBS}" \
|
|
|
|
LIBavformat_EXTRALIBS="-lavcodec -lavutil ${LIBavformat_EXTRALIBS}" \
|
|
|
|
LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
|
|
|
|
LIBpostproc_EXTRALIBS="-lavutil ${LIBpostproc_EXTRALIBS}" \
|
|
|
|
LIBswscale_EXTRALIBS="-lavutil ${LIBswscale_EXTRALIBS}"
|
|
|
|
|
|
|
|
FAKE_FLAGS= ${VERSION_FLAGS} \
|
|
|
|
LDCONFIG=true
|
2008-07-08 21:57:44 -04:00
|
|
|
|
2009-01-24 05:31:15 -05:00
|
|
|
.ifdef DEBUG
|
2010-05-26 17:38:52 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-stripping
|
2009-01-24 05:31:15 -05:00
|
|
|
.endif
|
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
ALL_TARGET= all tools/qt-faststart
|
2008-07-08 21:57:44 -04:00
|
|
|
# regression tests incompatible with libswscale
|
|
|
|
#REGRESS_TARGET= codectest
|
2010-05-26 17:38:52 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
HTML_DOCS= developer faq ffmpeg-doc ffplay-doc ffprobe-doc ffserver-doc \
|
|
|
|
general libavfilter
|
|
|
|
|
|
|
|
post-extract:
|
2010-09-03 12:39:13 -04:00
|
|
|
@cp -f ${FILESDIR}/sndio_* ${WRKSRC}/libavdevice
|
2003-08-15 10:25:08 -04:00
|
|
|
|
2007-05-25 11:54:14 -04:00
|
|
|
pre-configure:
|
2010-05-26 17:38:52 -04:00
|
|
|
@mkdir -p ${WRKTMP}
|
2007-05-25 11:54:14 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
post-install:
|
2010-05-26 17:38:52 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg
|
2009-09-02 07:50:56 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/tools/qt-faststart ${PREFIX}/bin
|
2004-10-12 21:38:21 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
|
2010-05-26 17:38:52 -04:00
|
|
|
.for doc in ${HTML_DOCS}
|
2006-03-20 00:50:49 -05:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/${doc}.html ${PREFIX}/share/doc/ffmpeg
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/ffserver.conf \
|
2004-10-07 02:12:11 -04:00
|
|
|
${PREFIX}/share/examples/ffmpeg
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
.include <bsd.port.mk>
|