Lines 9-23
CATEGORIES= multimedia
Link Here
|
9 |
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/:ffmpeg \ |
9 |
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/:ffmpeg \ |
10 |
http://libav.org/releases/:libav |
10 |
http://libav.org/releases/:libav |
11 |
PKGNAMESUFFIX= -ffmpeg |
11 |
PKGNAMESUFFIX= -ffmpeg |
12 |
DISTFILES= gst-ffmpeg-${PORTVERSION}.tar.bz2:ffmpeg \ |
12 |
DISTFILES= gst-ffmpeg-${PORTVERSION}.tar.bz2:ffmpeg |
13 |
libav-${LIBAV_VERSION}.tar.xz:libav |
|
|
14 |
|
13 |
|
15 |
MAINTAINER= multimedia@FreeBSD.org |
14 |
MAINTAINER= multimedia@FreeBSD.org |
16 |
COMMENT= GStreamer plug-in for manipulating MPEG video streams |
15 |
COMMENT= GStreamer plug-in for manipulating MPEG video streams |
17 |
|
16 |
|
18 |
LICENSE= GPLv2 |
17 |
LICENSE= GPLv2 |
19 |
|
18 |
|
20 |
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm |
|
|
21 |
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc |
19 |
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc |
22 |
|
20 |
|
23 |
LIBAV_VERSION= 0.7.7 |
21 |
LIBAV_VERSION= 0.7.7 |
Lines 26-41
USES= compiler:features gmake libtool pkgconfig
Link Here
|
26 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
27 |
USE_GSTREAMER= yes |
25 |
USE_GSTREAMER= yes |
28 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
|
|
27 |
PLIST_SUB= VERSION="${PORTVERSION:R}" |
28 |
|
29 |
OPTIONS_DEFINE= FFMPEG |
30 |
FFMPEG_DESC?= Use system ffmpeg instead of internal libav |
31 |
|
32 |
FFMPEG_LIB_DEPENDS=libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 |
33 |
FFMPEG_CONFIGURE_WITH=system-ffmpeg |
34 |
|
35 |
FFMPEG_DISTFILES_OFF=libav-${LIBAV_VERSION}.tar.xz:libav |
36 |
FFMPEG_BUILD_DEPENDS_OFF=yasm:${PORTSDIR}/devel/yasm |
37 |
FFMPEG_LDFLAGS_OFF=-Wl,-Bsymbolic |
38 |
FFMPEG_CONFIGURE_OFF=--with-ffmpeg-extra-configure="${FFMPEG_CONFIG}" |
29 |
FFMPEG_CONFIG= --cc=${CC} \ |
39 |
FFMPEG_CONFIG= --cc=${CC} \ |
30 |
--enable-runtime-cpudetect \ |
40 |
--enable-runtime-cpudetect \ |
31 |
--enable-pic |
41 |
--enable-pic |
32 |
LDFLAGS+= -Wl,-Bsymbolic |
|
|
33 |
CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} |
34 |
|
35 |
PLIST_SUB= VERSION="${GST_VERSION}" |
36 |
|
37 |
PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" |
38 |
GST_VERSION=${PORTVERSION:C/..$//} |
39 |
|
42 |
|
40 |
# sse hardware vector support |
43 |
# sse hardware vector support |
41 |
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64") |
44 |
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64") |
Lines 52-67
WITHOUT_BUILTIN_VECTOR= yes
Link Here
|
52 |
|
55 |
|
53 |
# builtin vector, requires mmx and sse |
56 |
# builtin vector, requires mmx and sse |
54 |
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) |
57 |
.if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) |
55 |
CFLAGS+= -msse |
58 |
FFMPEG_CFLAGS_OFF+=-msse |
56 |
.endif |
59 |
.endif |
57 |
|
60 |
|
58 |
CONFIGURE_ARGS+= --with-ffmpeg-extra-configure="${FFMPEG_CONFIG}" |
|
|
59 |
|
60 |
.include <bsd.port.pre.mk> |
61 |
.include <bsd.port.pre.mk> |
61 |
|
62 |
|
|
|
63 |
.if ! ${PORT_OPTIONS:MFFMPEG} |
62 |
.if ${OSVERSION} < 900033 || ${ARCH} == ia64 |
64 |
.if ${OSVERSION} < 900033 || ${ARCH} == ia64 |
63 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
65 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
64 |
MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin |
66 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
|
|
67 |
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
65 |
.endif |
68 |
.endif |
66 |
|
69 |
|
67 |
.if ${ARCH} == powerpc64 |
70 |
.if ${ARCH} == powerpc64 |
Lines 77-84
post-extract:
Link Here
|
77 |
@${MV} ${WRKDIR}/libav-${LIBAV_VERSION} ${WRKSRC}/gst-libs/ext/libav |
80 |
@${MV} ${WRKDIR}/libav-${LIBAV_VERSION} ${WRKSRC}/gst-libs/ext/libav |
78 |
@${CP} ${WRKSRC}/gst-libs/ext/libav.old/config.* \ |
81 |
@${CP} ${WRKSRC}/gst-libs/ext/libav.old/config.* \ |
79 |
${WRKSRC}/gst-libs/ext/libav/ |
82 |
${WRKSRC}/gst-libs/ext/libav/ |
|
|
83 |
.endif # FFMPEG |
80 |
|
84 |
|
81 |
post-patch: |
85 |
post-patch: |
|
|
86 |
@${REINPLACE_CMD} -Ee '/sleep 15/d; /PKG_CONFIG/\ |
87 |
s/lib(av(format|codec|util)|postproc|swscale)/&0/g' \ |
88 |
${WRKSRC}/configure |
82 |
@${REINPLACE_CMD} 's/[[:<:]]ARCH[[:>:]]/LIBAV_ARCH/' \ |
89 |
@${REINPLACE_CMD} 's/[[:<:]]ARCH[[:>:]]/LIBAV_ARCH/' \ |
83 |
${WRKSRC}/gst-libs/ext/libav/Makefile \ |
90 |
${WRKSRC}/gst-libs/ext/libav/Makefile \ |
84 |
${WRKSRC}/gst-libs/ext/libav/common.mak \ |
91 |
${WRKSRC}/gst-libs/ext/libav/common.mak \ |