2007-03-02 18:38:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2007/03/02 23:38:28 kurt Exp $
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2004-04-17 20:36:22 -04:00
|
|
|
COMMENT= "audio/video converter and streamer with bktr(4) support"
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2007-01-23 04:34:45 -05:00
|
|
|
DISTNAME= ffmpeg-cvs-20070110
|
2007-03-02 18:38:28 -05:00
|
|
|
PKGNAME= ${DISTNAME:S/-cvs//}p1
|
2007-01-23 04:34:45 -05:00
|
|
|
SHARED_LIBS= avutil 2.0 \
|
|
|
|
avcodec 8.0 \
|
|
|
|
avformat 8.0 \
|
2007-03-02 18:38:28 -05:00
|
|
|
postproc 8.0
|
2006-03-20 00:50:49 -05:00
|
|
|
CATEGORIES= graphics multimedia
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
HOMEPAGE= http://www.ffmpeg.org/
|
2007-01-23 04:34:45 -05:00
|
|
|
MAINTAINER= Nikns Siankin <nikns@secure.lv>
|
2003-07-19 14:16:34 -04:00
|
|
|
|
|
|
|
# GPL
|
2006-03-20 00:50:49 -05: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
|
|
|
|
|
|
|
|
# only available through CVS
|
2007-01-23 04:34:45 -05:00
|
|
|
MASTER_SITES= ftp://ftp.secure.lv/pub/distfiles/
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
BUILD_DEPENDS= ::textproc/texi2html
|
2007-01-23 04:34:45 -05:00
|
|
|
LIB_DEPENDS= SDL.>=4::devel/sdl \
|
|
|
|
faac::audio/faac \
|
|
|
|
faad::audio/faad \
|
|
|
|
mp3lame.>=0.1::audio/lame \
|
|
|
|
vorbis.>=4.0,vorbisenc.>=2.0::audio/libvorbis
|
|
|
|
|
2007-01-26 11:03:20 -05:00
|
|
|
WANTLIB= X11 Xext c freetype m pthread ogg ossaudio usbhid z
|
2004-04-17 20:36:22 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2003-09-26 10:40:29 -04:00
|
|
|
# It's either this or disable mmx so postprocess_template.c will build.
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CFLAGS+=-fomit-frame-pointer
|
|
|
|
.endif
|
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--cc=${CC} \
|
|
|
|
--disable-opts \
|
|
|
|
--enable-a52 \
|
|
|
|
--enable-pp \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-pthreads \
|
2007-01-23 04:34:45 -05:00
|
|
|
--disable-debug \
|
|
|
|
--enable-faac \
|
|
|
|
--enable-faad \
|
|
|
|
--enable-mp3lame \
|
|
|
|
--enable-libogg \
|
|
|
|
--enable-vorbis \
|
2007-01-26 11:03:20 -05:00
|
|
|
--extra-libs="-L${LOCALBASE}/lib" \
|
2007-01-23 04:34:45 -05:00
|
|
|
--extra-cflags=-I${LOCALBASE}/include
|
|
|
|
|
2004-04-17 20:36:22 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
MAKE_FLAGS= LIBavutil_VERSION=$(LIBavutil_VERSION) \
|
|
|
|
LIBavcodec_VERSION=$(LIBavcodec_VERSION) \
|
|
|
|
LIBavformat_VERSION=$(LIBavformat_VERSION) \
|
2007-03-02 18:38:28 -05:00
|
|
|
LIBpostproc_VERSION=$(LIBpostproc_VERSION)
|
2003-07-19 14:16:34 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
FAKE_FLAGS= DESTDIR=${WRKINST} \
|
|
|
|
LDCONFIG=true \
|
|
|
|
LIBavutil_VERSION=$(LIBavutil_VERSION) \
|
|
|
|
LIBavcodec_VERSION=$(LIBavcodec_VERSION) \
|
|
|
|
LIBavformat_VERSION=$(LIBavformat_VERSION) \
|
2007-03-02 18:38:28 -05:00
|
|
|
LIBpostproc_VERSION=$(LIBpostproc_VERSION)
|
2005-02-09 18:41:42 -05:00
|
|
|
|
2007-01-23 04:34:45 -05:00
|
|
|
REGRESS_TARGET= codectest
|
2003-08-15 10:25:08 -04:00
|
|
|
|
2006-03-20 00:50:49 -05:00
|
|
|
post-install:
|
2004-10-12 21:38:21 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
|
2006-03-20 00:50:49 -05:00
|
|
|
.for doc in faq ffmpeg-doc ffplay-doc ffserver-doc hooks
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/${doc}.html ${PREFIX}/share/doc/ffmpeg
|
|
|
|
.endfor
|
2004-10-07 02:12:11 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg
|
2006-03-20 00:50:49 -05:00
|
|
|
${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>
|