2011-08-23 07:59:59 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.78 2011/08/23 11:59:59 sthen Exp $
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2011-04-12 18:59:07 -04:00
|
|
|
COMMENT= audio/video converter and streamer
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2011-04-12 18:59:07 -04:00
|
|
|
V= 20110408
|
2011-03-29 16:01:43 -04:00
|
|
|
DISTNAME= ffmpeg-git-${V}
|
2010-05-26 17:38:52 -04:00
|
|
|
PKGNAME= ffmpeg-${V}
|
2011-08-23 07:59:59 -04:00
|
|
|
REVISION= 6
|
2010-05-26 17:38:52 -04:00
|
|
|
CATEGORIES= graphics multimedia
|
2011-04-12 18:59:07 -04:00
|
|
|
MASTER_SITES= http://comstyle.com/source/
|
2011-03-29 16:01:43 -04:00
|
|
|
|
2011-06-24 07:16:21 -04:00
|
|
|
SHARED_LIBS= avcodec 16.0 \
|
2011-03-29 16:01:43 -04:00
|
|
|
avdevice 4.0 \
|
2011-04-12 18:59:07 -04:00
|
|
|
avfilter 2.1 \
|
|
|
|
avformat 14.1 \
|
|
|
|
avutil 8.1 \
|
2011-03-29 16:01:43 -04:00
|
|
|
postproc 14.0 \
|
2011-04-12 18:59:07 -04:00
|
|
|
swscale 3.1
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2011-04-12 18:59:07 -04:00
|
|
|
HOMEPAGE= http://ffmpeg.org/
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
|
2011-06-04 05:20:36 -04:00
|
|
|
# LGPLv2.1 and 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
|
|
|
|
|
2011-06-24 07:16:21 -04:00
|
|
|
WANTLIB= SDL X11 Xext Xfixes bz2 c gsm m mp3lame ogg orc-0.4 \
|
|
|
|
pthread schroedinger-1.0>=2 sndio speex theoradec \
|
|
|
|
theoraenc vorbis vorbisenc vpx 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/lame \
|
|
|
|
audio/libvorbis \
|
|
|
|
audio/speex \
|
|
|
|
audio/gsm \
|
|
|
|
devel/sdl \
|
|
|
|
multimedia/libtheora \
|
2011-04-12 18:59:07 -04:00
|
|
|
multimedia/libvpx \
|
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
|
|
|
|
2007-05-25 11:54:14 -04:00
|
|
|
# inter-library dependencies for the current configuration
|
2011-06-27 09:36:44 -04:00
|
|
|
LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -pthread -Wl,-rpath,${LOCALBASE}/lib -lgsm -lmp3lame -logg -lorc-0.4 -lschroedinger-1.0 -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lz -lavutil -lm
|
|
|
|
LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-rpath,${LOCALBASE}/lib -Wl,-rpath,${X11BASE}/lib -pthread -lX11 -lXext -lXfixes -lsndio -lavformat -lbz2 -lavcodec -lgsm -lmp3lame -logg -lorc-0.4 -lschroedinger-1.0 -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lz -lavutil -lm
|
|
|
|
LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib -pthread -lavformat -lbz2 -lavcodec -lgsm -lmp3lame -logg -lorc-0.4 -lschroedinger-1.0 -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lz -lswscale -lavutil -lm
|
|
|
|
LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib -pthread -lbz2 -lavcodec -lgsm -lmp3lame -logg -lorc-0.4 -lschroedinger-1.0 -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lz -lavutil -lm
|
|
|
|
LIBavutil_EXTRALIBS=-L${LOCALBASE}/lib -lm
|
|
|
|
LIBpostproc_EXTRALIBS=-L${LOCALBASE}/lib -lavutil -lm
|
|
|
|
LIBswscale_EXTRALIBS=-L${LOCALBASE}/lib -lavutil -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
|
|
|
|
|
2011-04-12 18:59:07 -04:00
|
|
|
.if ${MACHINE_ARCH:Marm}
|
|
|
|
# uses ARM EABI
|
|
|
|
FFMPEG_ARCH= generic
|
|
|
|
.else
|
|
|
|
FFMPEG_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
2010-05-26 17:38:52 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2011-04-12 18:59:07 -04:00
|
|
|
--arch=${FFMPEG_ARCH} \
|
2010-05-26 17:38:52 -04:00
|
|
|
--cc=${CC} \
|
2011-04-12 18:59:07 -04:00
|
|
|
--disable-altivec \
|
2010-05-26 17:38:52 -04:00
|
|
|
--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-libgsm \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libschroedinger \
|
|
|
|
--enable-libspeex \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-libvorbis \
|
2011-04-12 18:59:07 -04:00
|
|
|
--enable-libvpx \
|
2010-05-26 17:38:52 -04:00
|
|
|
--enable-libx264 \
|
|
|
|
--enable-postproc \
|
|
|
|
--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"
|
|
|
|
|
2011-06-04 05:20:36 -04:00
|
|
|
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} \
|
2010-05-26 17:38:52 -04:00
|
|
|
libswscale_VERSION=${LIBswscale_VERSION}
|
|
|
|
|
|
|
|
MAKE_ENV= V=1
|
|
|
|
|
|
|
|
MAKE_FLAGS= ${VERSION_FLAGS} \
|
2011-06-27 09:36:44 -04:00
|
|
|
LIBavcodec_EXTRALIBS="${LIBavcodec_EXTRALIBS}" \
|
|
|
|
LIBavdevice_EXTRALIBS="${LIBavdevice_EXTRALIBS}" \
|
|
|
|
LIBavfilter_EXTRALIBS="${LIBavfilter_EXTRALIBS}" \
|
|
|
|
LIBavformat_EXTRALIBS="${LIBavformat_EXTRALIBS}" \
|
2010-05-26 17:38:52 -04:00
|
|
|
LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
|
2011-06-27 09:36:44 -04:00
|
|
|
LIBpostproc_EXTRALIBS="${LIBpostproc_EXTRALIBS}" \
|
|
|
|
LIBswscale_EXTRALIBS="${LIBswscale_EXTRALIBS}"
|
2010-05-26 17:38:52 -04:00
|
|
|
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
|
2011-06-04 05:20:36 -04:00
|
|
|
|
2008-07-08 21:57:44 -04:00
|
|
|
# regression tests incompatible with libswscale
|
2010-05-26 17:38:52 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-04-12 18:59:07 -04:00
|
|
|
HTML_DOCS= developer faq ffmpeg ffplay ffprobe ffserver general libavfilter
|
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>
|