aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2011-03-22 07:38:46 +0000
committerMartin Matuska <mm@FreeBSD.org>2011-03-22 07:38:46 +0000
commita1047ab2a0902865dc499d983da1d4279d9328c6 (patch)
treea39f83f7e499c891bfbef642a4e82b835954506d /multimedia/ffmpeg
parentf86a429d979468d3d92fd8ef09fef729c20321e7 (diff)
downloadports-a1047ab2a0902865dc499d983da1d4279d9328c6.tar.gz
ports-a1047ab2a0902865dc499d983da1d4279d9328c6.zip
Notes
Diffstat (limited to 'multimedia/ffmpeg')
-rw-r--r--multimedia/ffmpeg/Makefile32
-rw-r--r--multimedia/ffmpeg/distinfo1
2 files changed, 26 insertions, 7 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index f76975cec9c1..19dd844d2bf4 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/Makefile
@@ -19,6 +19,9 @@ BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
CONFLICTS= ffmpeg-20*
+LICENSE= GPLv2 LGPL21
+LICENSE_COMB= multi
+
HAS_CONFIGURE= yes
CONFIGURE_LOG= config.err
USE_BZIP2= yes
@@ -41,8 +44,9 @@ OPTIONS= ALSA "Enable alsa input/output device" off \
SCHROEDINGER "Dirac codec via libschroedinger" on \
SDL "SDL support (build ffplay)" off \
SPEEX "Speex audio decoder" off \
- SSSE3 "Enable ssse3 support" on \
+ SSSE3 "Use binutils from ports (SSSE3 support)" on \
THEORA "Theora encoder (implies OGG)" on \
+ VAAPI "VAAPI decoder support" off \
VDPAU "Nvidia vdpau support" off \
VORBIS "Vorbis encoder via libvorbis (implies OGG)" on \
VP8 "VP8 codec via libvpx" on \
@@ -91,8 +95,7 @@ CONFIGURE_ARGS+=--prefix="${PREFIX}" \
--cc="${CC}" \
--extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \
- --extra-libs="${PTHREAD_LIBS}" \
- --disable-debug
+ --extra-libs="${PTHREAD_LIBS}"
SHLIB_VER= 1
PLIST_SUB= SHLIB_VER=${SHLIB_VER}
USE_LDCONFIG= yes
@@ -109,6 +112,12 @@ DOC_DOCFILES= APIchanges TODO avutil.txt developer.html faq.html \
snow.txt soc.txt swscale.txt tablegen.txt viterbi.txt
PORTDOCS= *
+.if !defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --disable-debug
+.else
+CONFIGURE_ARGS+= --disable-stripping
+.endif
+
.if !defined(WITHOUT_CPUDETECT)
CONFIGURE_ARGS+= --enable-runtime-cpudetect
.endif
@@ -165,17 +174,19 @@ CONFIGURE_ARGS+= --disable-indev=alsa \
# amr
.if defined(WITH_AMR_NB) || defined (WITH_AMR_WB)
+LICENSE= GPLv3 LGPL3
+CONFIGURE_ARGS+= --enable-version3
LIB_DEPENDS+= opencore-amrnb.0:${PORTSDIR}/audio/opencore-amr
.endif
.ifdef(WITH_AMR_NB)
-CONFIGURE_ARGS+= --enable-libopencore-amrnb --enable-version3
+CONFIGURE_ARGS+= --enable-libopencore-amrnb
.else
CONFIGURE_ARGS+= --disable-libopencore-amrnb
.endif
.ifdef(WITH_AMR_WB)
-CONFIGURE_ARGS+= --enable-libopencore-amrwb --enable-version3
+CONFIGURE_ARGS+= --enable-libopencore-amrwb
.else
CONFIGURE_ARGS+= --disable-libopencore-amrwb
.endif
@@ -190,6 +201,7 @@ CONFIGURE_ARGS+= --disable-libdirac
# faac
.ifdef(WITH_FAAC)
+RESTRICTED= linking to libfaac restricts redistribution
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac
CONFIGURE_ARGS+= --enable-libfaac --enable-nonfree
.else
@@ -272,9 +284,17 @@ CONFIGURE_ARGS+= --enable-libtheora
CONFIGURE_ARGS+= --disable-libtheora
.endif
+# vaapi
+.ifndef(WITHOUT_VAAPI)
+LIB_DEPENDS+= va.1:${PORTSDIR}/multimedia/libva
+CONFIGURE_ARGS+= --enable-vaapi
+.else
+CONFIGURE_ARGS+= --disable-vaapi
+.endif
+
# vdpau
.ifndef(WITHOUT_VDPAU)
-LIB_DEPENDS+= vdpau.1:${PORTSDIR}/multimedia/libvdpau
+BUILD_DEPENDS+= ${LOCALBASE}/include/vdpau/vdpau.h:${PORTSDIR}/multimedia/libvdpau
CONFIGURE_ARGS+= --enable-vdpau
.else
CONFIGURE_ARGS+= --disable-vdpau
diff --git a/multimedia/ffmpeg/distinfo b/multimedia/ffmpeg/distinfo
index ff0370644d5d..3067034191d0 100644
--- a/multimedia/ffmpeg/distinfo
+++ b/multimedia/ffmpeg/distinfo
@@ -1,3 +1,2 @@
-MD5 (ffmpeg-0.6.1.tar.bz2) = 4f5d732d25eedfb072251b5314ba2093
SHA256 (ffmpeg-0.6.1.tar.bz2) = e348aa6d0bb199f231aa3a48e8f457f037c763219bccc8b395e007ccd87ebd5f
SIZE (ffmpeg-0.6.1.tar.bz2) = 3644146