1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= gstreamer |
4 |
PORTVERSION= 0.10.11 |
5 |
PORTREVISION= 7 |
6 |
CATEGORIES= multimedia |
7 |
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/ |
8 |
PKGNAMESUFFIX= -ffmpeg |
9 |
DISTNAME= gst-ffmpeg-${PORTVERSION} |
10 |
|
11 |
MAINTAINER= ports@MidnightBSD.org |
12 |
COMMENT= GStreamer plug-in for manipulating MPEG video streams |
13 |
|
14 |
LICENSE= gpl2 |
15 |
|
16 |
LIB_DEPENDS= liborc-0.4.so:${PORTSDIR}/devel/orc |
17 |
|
18 |
CFLAGS:= ${CFLAGS} -O2 -Wno-format |
19 |
USES= gmake pkgconfig tar:bzip2 |
20 |
USE_GCC= any |
21 |
USE_LDCONFIG= yes |
22 |
USE_GSTREAMER= yes |
23 |
GNU_CONFIGURE= yes |
24 |
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd9.1 |
25 |
FFMPEG_CONFIG= --cc=${CC} \ |
26 |
--enable-runtime-cpudetect \ |
27 |
--enable-pic |
28 |
LDFLAGS+= -Wl,-Bsymbolic |
29 |
CFLAGS+= -fno-force-addr |
30 |
PLIST_SUB= VERSION="${GST_VERSION}" |
31 |
WITHOUT_CPU_CFLAGS= yes |
32 |
|
33 |
GST_VERSION=${PORTVERSION:C/..$//} |
34 |
|
35 |
.include <bsd.port.pre.mk> |
36 |
|
37 |
CONFIGURE_ARGS+= --with-ffmpeg-extra-configure="${FFMPEG_CONFIG}" |
38 |
|
39 |
post-patch: |
40 |
${CP} ${FILESDIR}/config.sub ${FILESDIR}/config.guess \ |
41 |
${WRKSRC} |
42 |
@${REINPLACE_CMD} -e \ |
43 |
's|make|${GMAKE}|' \ |
44 |
${WRKSRC}/gst-libs/ext/Makefile.in |
45 |
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g'\ |
46 |
${WRKSRC}/gst-libs/ext/ffmpeg/doc/texi2pod.pl |
47 |
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \ |
48 |
${WRKSRC}/configure |
49 |
@cd ${WRKSRC}/gst-libs/ext/ffmpeg/libavcodec && \ |
50 |
${LN} -s x86 i386 && ${LN} -s x86 amd64 |
51 |
|
52 |
.if ${OSVERSION} < 4015 |
53 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils |
54 |
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
55 |
.endif |
56 |
.include <bsd.port.post.mk> |