aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libav/Makefile
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-09-06 06:48:23 +0800
committerjbeich <jbeich@FreeBSD.org>2015-09-06 06:48:23 +0800
commiteb98d96306285882265b35524deaada23507211f (patch)
tree5e5a79c10e368c7095b1f1e9da2bb6a6464e153d /multimedia/libav/Makefile
parent6bfe16603150aba2af230040ccf84fb232fbeadd (diff)
downloadfreebsd-ports-gnome-eb98d96306285882265b35524deaada23507211f.tar.gz
freebsd-ports-gnome-eb98d96306285882265b35524deaada23507211f.tar.zst
freebsd-ports-gnome-eb98d96306285882265b35524deaada23507211f.zip
multimedia/libav: minor cleanup
- Add CPE information - Convert WANT_SDL into a proper option - Disable SDL by default like in ffmpeg* ports - Unbreak and unhide DC1394 option - Drop USE_GCC as the port builds fine on 9.x - Drop implicit :build from USES=pkgconfig - Switch to .tar.xz distfile - Sort USES to pet portlint
Diffstat (limited to 'multimedia/libav/Makefile')
-rw-r--r--multimedia/libav/Makefile38
1 files changed, 15 insertions, 23 deletions
diff --git a/multimedia/libav/Makefile b/multimedia/libav/Makefile
index bbafd41947e9..cac231c1093c 100644
--- a/multimedia/libav/Makefile
+++ b/multimedia/libav/Makefile
@@ -2,6 +2,7 @@
PORTNAME= libav
PORTVERSION= 11.4
+PORTREVISION= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= http://libav.org/releases/
@@ -10,10 +11,9 @@ COMMENT= Realtime audio/video conversion library
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
-USES= pkgconfig:build gmake compiler:features perl5
+USES= cpe gmake perl5 pkgconfig tar:xz
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
HAS_CONFIGURE= yes
-WANT_SDL= yes
USE_PERL5= build
CPPFLAGS+= -I${LOCALBASE}/include
@@ -30,9 +30,9 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" \
--disable-debug \
--cc="${CC}"
-OPTIONS_DEFINE= ALSA AMR_NB AMR_WB BZIP2 CDIO FAAC FDK_AAC DOCS FREETYPE \
+OPTIONS_DEFINE= ALSA AMR_NB AMR_WB BZIP2 CDIO FAAC FDK_AAC DC1394 DOCS FREETYPE \
FREI0R GNUTLS GSM ILBC JACK LAME OPENCV OPENJPEG OPENSSL \
- OPUS PULSEAUDIO RTMP SCHROEDINGER SPEEX THEORA V4L VAAPI \
+ OPUS PULSEAUDIO RTMP SCHROEDINGER SDL SPEEX THEORA V4L VAAPI \
VDPAU VO_AACENC VO_AMRWBENC VORBIS VPX WAVPACK WEBP X11GRAB \
X264 XVID ZLIB
OPTIONS_DEFAULT=BZIP2 FREETYPE FREI0R GNUTLS OPENCV SCHROEDINGER \
@@ -41,6 +41,9 @@ OPTIONS_DEFAULT=BZIP2 FREETYPE FREI0R GNUTLS OPENCV SCHROEDINGER \
FDK_AAC_DESC= AAC audio encoding via Fraunhofer FDK
ILBC_DESC= iLBC en/decoding via libilbc
X11GRAB_DESC= X11 grabbing
+DC1394_DESC= IIDC-1394 grabbing using libdc1394
+
+OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ON= --enable-indev=alsa --enable-outdev=alsa
@@ -58,9 +61,8 @@ CDIO_LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio \
libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia
CDIO_CONFIGURE_ENABLE= libcdio
-# --enable-libdc1394
-# DC1394_LIB_DEPENDS= libdc1394.so:${PORTSDIR}/multimedia/libdc1394
-# DC1394_CONFIGURE_ENABLE= libdc1394
+DC1394_LIB_DEPENDS= libdc1394.so:${PORTSDIR}/multimedia/libdc1394
+DC1394_CONFIGURE_ENABLE= libdc1394
DOCS_BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html
@@ -113,6 +115,9 @@ RTMP_CONFIGURE_ENABLE= librtmp
SCHROEDINGER_LIB_DEPENDS= libschroedinger-1.0.so:${PORTSDIR}/multimedia/schroedinger
SCHROEDINGER_CONFIGURE_ENABLE= libschroedinger
+SDL_USE= SDL=sdl
+SDL_CONFIGURE_ENABLE= avplay
+
SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex
SPEEX_CONFIGURE_ENABLE= libspeex
@@ -157,7 +162,7 @@ XVID_CONFIGURE_ENABLE= libxvid
ZLIB_CONFIGURE_ENABLE= zlib
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${ARCH} == "armv6"
CONFIGURE_ENV+= ASFLAGS=-no-integrated-as
@@ -167,20 +172,6 @@ CONFIGURE_ENV+= ASFLAGS=-no-integrated-as
CONFIGURE_ARGS+= --extra-cflags=-m32
.endif
-.if ${OSVERSION} < 900000 || ${COMPILER_TYPE} == gcc
-USE_GCC= yes
-.endif
-
-.if ${HAVE_SDL:Msdl}
-USE_SDL+= sdl
-MAN1+= avplay.1
-CONFIGURE_ARGS+= --enable-avplay
-PLIST_SUB+= AVPLAY=""
-.else
-CONFIGURE_ARGS+= --disable-avplay
-PLIST_SUB+= AVPLAY="@comment "
-.endif
-
# License definitions
.if ${PORT_OPTIONS:MFAAC} || ${PORT_OPTIONS:MFDK_AAC} || ${PORT_OPTIONS:MOPENSSL}
@@ -214,6 +205,7 @@ LICENSE= LGPL21
post-patch:
@${REINPLACE_CMD} -e 's|freetype/freetype.h|freetype2/freetype.h|' \
+ -e 's|-ldc1394 -lraw1394|-ldc1394|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|gsm/gsm.h|gsm.h|' \
${WRKSRC}/configure \
@@ -232,4 +224,4 @@ post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${a}
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>