# $OpenBSD: Makefile,v 1.78 2011/08/23 11:59:59 sthen Exp $ COMMENT= audio/video converter and streamer V= 20110408 DISTNAME= ffmpeg-git-${V} PKGNAME= ffmpeg-${V} REVISION= 6 CATEGORIES= graphics multimedia MASTER_SITES= http://comstyle.com/source/ SHARED_LIBS= avcodec 16.0 \ avdevice 4.0 \ avfilter 2.1 \ avformat 14.1 \ avutil 8.1 \ postproc 14.0 \ swscale 3.1 HOMEPAGE= http://ffmpeg.org/ MAINTAINER= Brad Smith # LGPLv2.1 and GPLv2 PERMIT_PACKAGE_CDROM= patents PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes 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 BUILD_DEPENDS= textproc/texi2html .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" BUILD_DEPENDS+= devel/yasm .endif LIB_DEPENDS= archivers/bzip2 \ audio/lame \ audio/libvorbis \ audio/speex \ audio/gsm \ devel/sdl \ multimedia/libtheora \ multimedia/libvpx \ multimedia/schroedinger>=1.0.10 \ multimedia/x264 # inter-library dependencies for the current configuration 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 # configure wants a directory it can execute files in WRKTMP= ${WRKDIR}/tmp .if ${MACHINE_ARCH:Marm} # uses ARM EABI FFMPEG_ARCH= generic .else FFMPEG_ARCH= ${MACHINE_ARCH} .endif USE_GMAKE= Yes CONFIGURE_STYLE= simple CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \ --arch=${FFMPEG_ARCH} \ --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-libgsm \ --enable-libmp3lame \ --enable-libschroedinger \ --enable-libspeex \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --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" 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="${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}" FAKE_FLAGS= ${VERSION_FLAGS} \ LDCONFIG=true .ifdef DEBUG CONFIGURE_ARGS+=--disable-stripping .endif ALL_TARGET= all tools/qt-faststart # regression tests incompatible with libswscale NO_REGRESS= Yes HTML_DOCS= developer faq ffmpeg ffplay ffprobe ffserver general libavfilter pre-configure: @mkdir -p ${WRKTMP} post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg ${INSTALL_PROGRAM} ${WRKBUILD}/tools/qt-faststart ${PREFIX}/bin ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg .for doc in ${HTML_DOCS} ${INSTALL_DATA} ${WRKBUILD}/doc/${doc}.html ${PREFIX}/share/doc/ffmpeg .endfor ${INSTALL_DATA} ${WRKBUILD}/doc/ffserver.conf \ ${PREFIX}/share/examples/ffmpeg .include