123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- # $OpenBSD: Makefile,v 1.162 2017/06/15 11:33:18 ajacoutot Exp $
- COMMENT= audio/video converter and streamer
- V= 20170610
- DISTNAME= ffmpeg-git-${V}
- PKGNAME= ffmpeg-${V}
- CATEGORIES= graphics multimedia
- MASTER_SITES= http://comstyle.com/source/
- EXTRACT_SUFX= .tar.xz
- SHARED_LIBS= avcodec 22.2 \
- avdevice 10.0 \
- avfilter 7.3 \
- avformat 19.4 \
- avresample 1.0 \
- avutil 12.4 \
- postproc 16.1 \
- swresample 1.2 \
- swscale 6.1
- HOMEPAGE= http://ffmpeg.org/
- MAINTAINER= Brad Smith <brad@comstyle.com>
- # LGPLv2.1 and GPLv2
- PERMIT_PACKAGE_CDROM= patents
- PERMIT_PACKAGE_FTP= Yes
- WANTLIB= SDL X11 Xext Xv ass bz2 c crypto fontconfig freetype fribidi \
- gsm m mp3lame opus pthread sndio speex ssl v4l2 vorbis \
- vorbisenc vpx>=5 x264 x265>=2 xcb xcb-shape xcb-shm xcb-xfixes \
- xvidcore z
- COMPILER = clang
- MODCLANG_ARCHS= amd64
- COMPILER_LANGS = c
- 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/opus \
- audio/speex \
- audio/gsm \
- devel/sdl \
- multimedia/libass \
- multimedia/libv4l \
- multimedia/libvpx>=1.3.0 \
- multimedia/x264 \
- multimedia/x265>=1.5 \
- multimedia/xvidcore
- # inter-library dependencies for the current configuration
- LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -lgsm -lmp3lame -lopus -lspeex -lvorbis -lvorbisenc -lvpx -lx264 -lx265 -lxvidcore -lz -pthread
- LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -lXv -lxcb-render -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb -lsndio -lv4l2
- LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lass -lfontconfig -lfreetype -lfribidi
- LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -lbz2 -lssl -lcrypto -pthread
- LIBavresample_EXTRALIBS=
- LIBavutil_EXTRALIBS=-lm -pthread
- LIBpostproc_EXTRALIBS=
- LIBswresample_EXTRALIBS=-lm
- LIBswscale_EXTRALIBS=-lm
- .if ${MACHINE_ARCH:Marm}
- # uses ARM EABI
- FFMPEG_ARCH= generic
- .else
- FFMPEG_ARCH= ${MACHINE_ARCH}
- .endif
- OPTFLAGS= ${CFLAGS}
- # until the system headers are fixed properly.
- OPTFLAGS+= -Wno-redundant-decls
- USE_GMAKE= Yes
- CONFIGURE_STYLE= simple
- CONFIGURE_ARGS+= --enable-shared \
- --arch=${FFMPEG_ARCH} \
- --cc=${CC} \
- --disable-altivec \
- --disable-armv5te \
- --disable-armv6 \
- --disable-armv6t2 \
- --disable-debug \
- --disable-iconv \
- --disable-indev=jack \
- --disable-indev=oss \
- --disable-lzma \
- --disable-mips32r5 \
- --disable-mips64r6 \
- --disable-mipsdspr1 \
- --disable-mipsdspr2 \
- --disable-mipsfpu \
- --disable-mmi \
- --disable-msa \
- --disable-neon \
- --disable-outdev=oss \
- --disable-outdev=sdl \
- --disable-vfp \
- --enable-avresample \
- --enable-fontconfig \
- --enable-gpl \
- --enable-libass \
- --enable-libfreetype \
- --enable-libfribidi \
- --enable-libgsm \
- --enable-libmp3lame \
- --enable-libopus \
- --enable-libspeex \
- --enable-libv4l2 \
- --enable-libvorbis \
- --enable-libvpx \
- --enable-libx264 \
- --enable-libx265 \
- --enable-libxvid \
- --enable-nonfree \
- --enable-openssl \
- --extra-cflags="-I${LOCALBASE}/include -I${X11BASE}/include" \
- --extra-libs="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
- --mandir=${PREFIX}/man \
- --optflags="${OPTFLAGS}"
- CONFIGURE_ENV+= LIBavcodec_EXTRALIBS="${LIBavcodec_EXTRALIBS}" \
- LIBavdevice_EXTRALIBS="${LIBavdevice_EXTRALIBS}" \
- LIBavfilter_EXTRALIBS="${LIBavfilter_EXTRALIBS}" \
- LIBavformat_EXTRALIBS="${LIBavformat_EXTRALIBS}" \
- LIBavresample_EXTRALIBS="${LIBavresample_EXTRALIBS}" \
- LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
- LIBpostproc_EXTRALIBS="${LIBpostproc_EXTRALIBS}" \
- LIBswresample_EXTRALIBS="${LIBswresample_EXTRALIBS}" \
- LIBswscale_EXTRALIBS="${LIBswscale_EXTRALIBS}" \
- LIBavcodec_LINKFLAGS="-Wl,-rpath-link,${LOCALBASE}/lib" \
- LIBavdevice_LINKFLAGS="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \
- LIBavfilter_LINKFLAGS="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \
- LIBavformat_LINKFLAGS="-Wl,-rpath-link,${LOCALBASE}/lib" \
- LIBavresample_LINKFLAGS="" \
- LIBavutil_LINKFLAGS="" \
- LIBpostproc_LINKFLAGS="" \
- LIBswresample_LINKFLAGS="" \
- LIBswscale_LINKFLAGS="" \
- LIBavcodec_REQUIRES="libavutil libswresample opus speex vpx x264 x265" \
- LIBavdevice_REQUIRES="libavcodec libavfilter libavformat libavutil libpostproc libswresample libswscale" \
- LIBavfilter_REQUIRES="libavcodec libavformat libavresample libavutil libpostproc libswresample libswscale" \
- LIBavformat_REQUIRES="libavcodec libavutil libswresample" \
- LIBavresample_REQUIRES="libavutil" \
- LIBavutil_REQUIRES="" \
- LIBpostproc_REQUIRES="libavutil" \
- LIBswresample_REQUIRES="libavutil" \
- LIBswscale_REQUIRES="libavutil" \
- TMPDIR=${WRKBUILD}
- VERSION_FLAGS= libavcodec_VERSION=${LIBavcodec_VERSION} \
- libavdevice_VERSION=${LIBavdevice_VERSION} \
- libavfilter_VERSION=${LIBavfilter_VERSION} \
- libavformat_VERSION=${LIBavformat_VERSION} \
- libavresample_VERSION=${LIBavresample_VERSION} \
- libavutil_VERSION=${LIBavutil_VERSION} \
- libpostproc_VERSION=${LIBpostproc_VERSION} \
- libswresample_VERSION=${LIBswresample_VERSION} \
- libswscale_VERSION=${LIBswscale_VERSION}
- MAKE_ENV= V=1
- MAKE_FLAGS= ${VERSION_FLAGS} \
- LIBavcodec_EXTRALIBS="-lavutil -lswresample ${LIBavcodec_EXTRALIBS}" \
- LIBavdevice_EXTRALIBS="-lavcodec -lavfilter -lavformat -lavutil -lpostproc -lswresample -lswscale ${LIBavdevice_EXTRALIBS}" \
- LIBavfilter_EXTRALIBS="-lavcodec -lavformat -lavresample -lavutil -lpostproc -lswresample -lswscale ${LIBavfilter_EXTRALIBS}" \
- LIBavformat_EXTRALIBS="-lavcodec -lavutil -lswresample ${LIBavformat_EXTRALIBS}" \
- LIBavresample_EXTRALIBS="-lavutil ${LIBavresample_EXTRALIBS}" \
- LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
- LIBpostproc_EXTRALIBS="-lavutil ${LIBpostproc_EXTRALIBS}" \
- LIBswresample_EXTRALIBS="-lavutil ${LIBswresample_EXTRALIBS}" \
- LIBswscale_EXTRALIBS="-lavutil ${LIBswscale_EXTRALIBS}"
- FAKE_FLAGS= ${VERSION_FLAGS} \
- LDCONFIG=true
- .ifdef DEBUG
- CONFIGURE_ARGS+=--disable-stripping
- .endif
- ALL_TARGET= all tools/qt-faststart
- TEST_TARGET= check
- HTML_DOCS= developer faq ffmpeg ffplay ffprobe ffserver general libavfilter
- post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg
- ${INSTALL_PROGRAM} ${WRKBUILD}/tools/qt-faststart ${PREFIX}/bin
- .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 <bsd.port.mk>
|