2013-08-20 17:36:43 +02:00
|
|
|
# Created by: Koop Mast <kwm@rainbow-runner.nl>
|
2004-04-05 06:06:42 +02:00
|
|
|
# $FreeBSD$
|
2006-10-14 10:35:50 +02:00
|
|
|
# $MCom: ports/multimedia/gstreamer-ffmpeg/Makefile,v 1.14 2006/07/20 13:40:27 ahze Exp $
|
2004-04-05 06:06:42 +02:00
|
|
|
|
|
|
|
PORTNAME= gstreamer
|
2011-11-05 20:12:13 +01:00
|
|
|
PORTVERSION= 0.10.13
|
2013-08-20 17:36:43 +02:00
|
|
|
PORTREVISION= 1
|
2004-04-05 06:06:42 +02:00
|
|
|
CATEGORIES= multimedia
|
2013-08-20 17:36:43 +02:00
|
|
|
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/:ffmpeg \
|
|
|
|
http://libav.org/releases/:libav
|
2004-04-05 06:06:42 +02:00
|
|
|
PKGNAMESUFFIX= -ffmpeg
|
2013-08-20 17:36:43 +02:00
|
|
|
DISTFILES= gst-ffmpeg-${PORTVERSION}.tar.bz2:ffmpeg \
|
|
|
|
libav-${LIBAV_VERSION}.tar.xz:libav
|
2004-04-05 06:06:42 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-04-05 06:06:42 +02:00
|
|
|
COMMENT= GStreamer plug-in for manipulating MPEG video streams
|
|
|
|
|
2011-10-06 01:05:41 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
|
2013-08-20 17:36:43 +02:00
|
|
|
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc
|
2010-07-24 18:18:48 +02:00
|
|
|
|
2013-08-20 17:36:43 +02:00
|
|
|
LIBAV_VERSION= 0.7.7
|
|
|
|
WRKSRC= ${WRKDIR}/gst-ffmpeg-${PORTVERSION}
|
|
|
|
USES= gmake pkgconfig
|
2006-12-18 18:30:48 +01:00
|
|
|
USE_LDCONFIG= yes
|
2005-06-11 10:37:19 +02:00
|
|
|
USE_GSTREAMER= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-10-06 01:05:41 +02:00
|
|
|
FFMPEG_CONFIG= --cc=${CC} \
|
|
|
|
--enable-runtime-cpudetect \
|
|
|
|
--enable-pic
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -Wl,-Bsymbolic
|
|
|
|
CFLAGS+= -fno-force-addr
|
2011-10-06 01:05:41 +02:00
|
|
|
CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG}
|
|
|
|
|
|
|
|
PLIST_SUB= VERSION="${GST_VERSION}"
|
2004-04-05 06:06:42 +02:00
|
|
|
|
|
|
|
PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
|
|
|
|
GST_VERSION=${PORTVERSION:C/..$//}
|
|
|
|
|
2011-10-06 01:05:41 +02:00
|
|
|
# sse hardware vector support
|
|
|
|
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
|
|
|
|
WITH_BUILTIN_VECTOR= yes
|
|
|
|
.else
|
|
|
|
FFMPEG_CONFIG+= --disable-sse
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# mmx support
|
|
|
|
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
|
|
|
|
FFMPEG_CONFIG+= --disable-mmx
|
|
|
|
WITHOUT_BUILTIN_VECTOR= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# builtin vector, requires mmx and sse
|
|
|
|
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR)
|
|
|
|
CFLAGS+= -msse
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-ffmpeg-extra-configure="${FFMPEG_CONFIG}"
|
|
|
|
|
2004-04-05 06:06:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-10-06 01:05:41 +02:00
|
|
|
.if ${OSVERSION} < 900033
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
|
|
|
MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2013-08-20 17:36:43 +02:00
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/gst-libs/ext/libav ${WRKSRC}/gst-libs/ext/libav.old
|
|
|
|
@${MV} ${WRKDIR}/libav-${LIBAV_VERSION} ${WRKSRC}/gst-libs/ext/libav
|
|
|
|
@${CP} ${WRKSRC}/gst-libs/ext/libav.old/config.* \
|
|
|
|
${WRKSRC}/gst-libs/ext/libav/
|
|
|
|
|
2011-10-06 02:17:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|