diff options
author | lioux <lioux@FreeBSD.org> | 2003-01-11 02:21:21 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-01-11 02:21:21 +0800 |
commit | 71f42afed38c396eb89ba5148f323356783f918a (patch) | |
tree | be5d4194c32360ef54c266c4b28c65d23a314773 /multimedia/ffmpeg/Makefile | |
parent | 680b79f6faa8ee94fbd33ee1ef40b9c4aed6b5e9 (diff) | |
download | freebsd-ports-gnome-71f42afed38c396eb89ba5148f323356783f918a.tar.gz freebsd-ports-gnome-71f42afed38c396eb89ba5148f323356783f918a.tar.zst freebsd-ports-gnome-71f42afed38c396eb89ba5148f323356783f918a.zip |
- After repo copy to ffmpeg045 port so that both older and faster
version 0.4.5 is preserved while the current version matures:
o Update to 0.4.6
o Remove ONLY_FOR_ARCHS, no longer i386 only
o Add PKGMESSAGE explaining the differences between this and ffmpeg045
port
Reviewed by: Steve O'Hara-Smith <steve@sohara.org>
Repo copied by: cvs (joe)
Approved by: portmgr (self)
Diffstat (limited to 'multimedia/ffmpeg/Makefile')
-rw-r--r-- | multimedia/ffmpeg/Makefile | 62 |
1 files changed, 45 insertions, 17 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 0de5e6a4f254..20010e6b096c 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -6,21 +6,15 @@ # PORTNAME= ffmpeg -PORTVERSION= 0.4.5 -PORTREVISION= 5 +PORTVERSION= 0.4.6 CATEGORIES= multimedia audio net -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= lioux -DISTNAME= ffmpeg-cvs-2002101400 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ffmpeg MAINTAINER= lioux@FreeBSD.org -BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt -WRKSRC= ${WRKDIR}/${PORTNAME} - -ONLY_FOR_ARCHS= i386 HAS_CONFIGURE= yes USE_GMAKE= yes USE_REINPLACE= yes @@ -34,18 +28,31 @@ SHLIB_VERSION= 0 # DOC_FILES= COPYING Changelog README VERSION # under subdir doc -DOC_DOCFILES= FAQ README.dev README.tech \ - TODO bench.txt ffmpeg.txt \ - HOWTO-STREAM README.beos \ - ffserver.txt +DOC_DOCFILES= TODO \ + faq.html faq.texi \ + ffmpeg-doc.html ffmpeg-doc.texi \ + ffserver-doc.html ffserver-doc.texi HEADER_FILES= libavcodec/avcodec.h libavcodec/common.h \ libavcodec/dsputil.h -LIB_FILES= libavcodec/libavcodec.a libav/libavformat.a +LIB_FILES= libavcodec/libavcodec.a libavformat/libavformat.a .include <bsd.port.pre.mk> +## +## arch detection +## +CONFIGURE_ARGS+= --cpu=${ARCH:L} +# +.if ${ARCH} != "i386" +WITHOUT_MMX= yes +.endif + ## lib detection ## +## +.if exists(${X11BASE}/lib/libImlib2.so) +WITH_IMLIB2=yes +.endif ## lame mp3 .if exists(${LOCALBASE}/lib/libmp3lame.so.0) WITH_MP3=yes @@ -67,6 +74,14 @@ CONFIGURE_ARGS+= --enable-a52 \ CONFIGURE_ARGS+= --enable-a52 \ --disable-a52bin .endif +## enable imlib2 +.if !defined(WITHOUT_VHOOK) && defined(WITH_IMLIB2) +LIB_DEPENDS+= Imlib2.1:${PORTSDIR}/graphics/imlib2 + +PLIST_SUB+= IMLIB2="" +.else +PLIST_SUB+= IMLIB2="@comment " +.endif ## disable mmx .ifdef(WITHOUT_MMX) CONFIGURE_ARGS+= --disable-mmx @@ -84,6 +99,14 @@ CONFIGURE_ARGS+= --extra-cflags="${CFLAGS} -I${LOCALBASE}/include \ .else CONFIGURE_ARGS+= --extra-cflags="${CFLAGS} -I${LOCALBASE}/include" .endif +## vhook +.ifndef(WITHOUT_VHOOK) +PLIST_SUB+= VHOOK="" +.else +CONFIGURE_ARGS+= -disable-vhook + +PLIST_SUB+= VHOOK="@comment " +.endif ## vorbis .ifdef(WITH_VORBIS) LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis @@ -106,7 +129,12 @@ pre-everything:: @${ECHO_MSG} 'You can enable additional compilation optimizations' @${ECHO_MSG} 'by defining WITH_OPTIMIZED_CFLAGS' .endif +.ifndef(WITHOUT_VHOOK) + @${ECHO_MSG} + @${ECHO_MSG} 'You can disable vhook support by defining WITHOUT_VHOOK' +.endif .ifndef(WITH_VORBIS) + @${ECHO_MSG} @${ECHO_MSG} 'Define WITH_VORBIS to enable libvorbisenc VORBIS codec' .endif .if !(defined(WITH_BKTR_FORMAT) && defined(WITH_BKTR_DEV)) @@ -123,7 +151,7 @@ pre-everything:: post-extract: # install booktree extension - @${CP} ${FILESDIR}/grab_bsdbktr.c ${WRKSRC}/libav/ + @${CP} ${FILESDIR}/grab_bsdbktr.c ${WRKSRC}/libavformat/ post-patch: @${REINPLACE_CMD} -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \ @@ -135,12 +163,12 @@ post-patch: .ifdef(WITH_BKTR_FORMAT) @${REINPLACE_CMD} -e \ "s!VIDEO_FORMAT NTSC!VIDEO_FORMAT ${WITH_BKTR_FORMAT}!" \ - ${WRKSRC}/libav/grab_bsdbktr.c + ${WRKSRC}/libavformat/grab_bsdbktr.c .endif .ifdef(WITH_BKTR_DEV) @${REINPLACE_CMD} -e \ "s!VIDEO_INPUT METEOR_INPUT_DEV0!VIDEO_INPUT METEOR_INPUT_DEV${WITH_BKTR_DEV}!" \ - ${WRKSRC}/libav/grab_bsdbktr.c + ${WRKSRC}/libavformat/grab_bsdbktr.c .endif .ifndef(WITHOUT_LIBA52) @${REINPLACE_CMD} -e 's|-ldl||' \ |