View | Details | Raw Unified | Return to bug 181519 | Differences between
and this patch

Collapse All | Expand All

(-)multimedia/gstreamer-ffmpeg/Makefile (-22 / +32 lines)
Lines 6-16 PORTNAME= gstreamer Link Here
6
PORTVERSION=	0.10.13
6
PORTVERSION=	0.10.13
7
PORTREVISION=	1
7
PORTREVISION=	1
8
CATEGORIES=	multimedia
8
CATEGORIES=	multimedia
9
MASTER_SITES=	http://gstreamer.freedesktop.org/src/gst-ffmpeg/:ffmpeg \
9
MASTER_SITES=	http://gstreamer.freedesktop.org/src/gst-ffmpeg/:gst
10
		http://libav.org/releases/:libav
11
PKGNAMESUFFIX=	-ffmpeg
10
PKGNAMESUFFIX=	-ffmpeg
12
DISTFILES=	gst-ffmpeg-${PORTVERSION}.tar.bz2:ffmpeg \
11
DISTFILES=	gst-ffmpeg-${PORTVERSION}.tar.bz2:gst
13
		libav-${LIBAV_VERSION}.tar.xz:libav
14
12
15
MAINTAINER=	multimedia@FreeBSD.org
13
MAINTAINER=	multimedia@FreeBSD.org
16
COMMENT=	GStreamer plug-in for manipulating MPEG video streams
14
COMMENT=	GStreamer plug-in for manipulating MPEG video streams
Lines 17-43 COMMENT= GStreamer plug-in for manipulating MPEG v Link Here
17
15
18
LICENSE=	GPLv2
16
LICENSE=	GPLv2
19
17
20
BUILD_DEPENDS=	yasm:${PORTSDIR}/devel/yasm
21
LIB_DEPENDS=	liborc-0.4.so:${PORTSDIR}/devel/orc
18
LIB_DEPENDS=	liborc-0.4.so:${PORTSDIR}/devel/orc
22
19
23
LIBAV_VERSION=	0.7.7
24
WRKSRC=		${WRKDIR}/gst-ffmpeg-${PORTVERSION}
25
USES=		gmake pkgconfig
20
USES=		gmake pkgconfig
26
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
27
USE_GSTREAMER=	yes
22
USE_GSTREAMER=	yes
28
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
24
25
PLIST_SUB=	VERSION="${PORTVERSION:R}"
26
27
LIBAV_VERSION=	0.7.7
28
WRKSRC=		${WRKDIR}/gst-ffmpeg-${PORTVERSION}
29
30
OPTIONS_DEFINE=	FFMPEG
31
FFMPEG_DESC?=	Use system ffmpeg instead of internal libav
32
33
.include <bsd.port.options.mk>
34
35
.if ${PORT_OPTIONS:MFFMPEG}
36
LIB_DEPENDS+=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
37
CONFIGURE_ARGS+=--with-system-ffmpeg
38
.else
39
MASTER_SITES+=	http://libav.org/releases/:libav
40
DISTFILES+=	libav-${LIBAV_VERSION}.tar.xz:libav
41
BUILD_DEPENDS+=	yasm:${PORTSDIR}/devel/yasm
42
CONFIGURE_ARGS+=--with-ffmpeg-extra-configure="${FFMPEG_CONFIG}"
29
FFMPEG_CONFIG=	--cc=${CC} \
43
FFMPEG_CONFIG=	--cc=${CC} \
30
		--enable-runtime-cpudetect \
44
		--enable-runtime-cpudetect \
31
		--enable-pic
45
		--enable-pic
32
LDFLAGS+=	-Wl,-Bsymbolic
46
LDFLAGS+=	-Wl,-Bsymbolic
33
CFLAGS+=	-fno-force-addr
47
CFLAGS+=	-fno-force-addr
34
CONFIGURE_ENV=	PKG_CONFIG=${PKG_CONFIG}
35
48
36
PLIST_SUB=	VERSION="${GST_VERSION}"
37
38
PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
39
GST_VERSION=${PORTVERSION:C/..$//}
40
41
# sse hardware vector support
49
# sse hardware vector support
42
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
50
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
43
WITH_BUILTIN_VECTOR=	yes
51
WITH_BUILTIN_VECTOR=	yes
Lines 56-76 WITHOUT_BUILTIN_VECTOR= yes Link Here
56
CFLAGS+=		-msse
64
CFLAGS+=		-msse
57
.endif
65
.endif
58
66
59
CONFIGURE_ARGS+=	--with-ffmpeg-extra-configure="${FFMPEG_CONFIG}"
60
61
.include <bsd.port.pre.mk>
62
63
.if ${OSVERSION} < 900033
67
.if ${OSVERSION} < 900033
64
65
BUILD_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
68
BUILD_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
66
MAKE_ENV=	COMPILER_PATH=${LOCALBASE}/bin
69
CONFIGURE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin
67
70
MAKE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin
68
.endif
71
.endif
69
72
70
post-patch:
73
.endif # FFMPEG
74
75
post-extract:
71
	@${MV} ${WRKSRC}/gst-libs/ext/libav ${WRKSRC}/gst-libs/ext/libav.old
76
	@${MV} ${WRKSRC}/gst-libs/ext/libav ${WRKSRC}/gst-libs/ext/libav.old
77
.if ! ${PORT_OPTIONS:MFFMPEG}
72
	@${MV} ${WRKDIR}/libav-${LIBAV_VERSION} ${WRKSRC}/gst-libs/ext/libav
78
	@${MV} ${WRKDIR}/libav-${LIBAV_VERSION} ${WRKSRC}/gst-libs/ext/libav
73
	@${CP} ${WRKSRC}/gst-libs/ext/libav.old/config.* \
79
	@${CP} ${WRKSRC}/gst-libs/ext/libav.old/config.* \
74
		${WRKSRC}/gst-libs/ext/libav/
80
		${WRKSRC}/gst-libs/ext/libav/
81
.endif
75
82
76
.include <bsd.port.post.mk>
83
post-patch:
84
	@${REINPLACE_CMD} '/sleep 15/d' ${WRKSRC}/configure
85
86
.include <bsd.port.mk>

Return to bug 181519