freebsd-ports/multimedia/gstreamer-ffmpeg/Makefile
Koop Mast 011e9a980d Fix the gstreamer ffmpeg plugin but borrowing a fix from the ffmpeg port.
PR:		ports/149017
Submitted by:	Ivan Georgiev <iegeorgiev@gmail.com>
2010-07-28 18:13:19 +00:00

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: gstreamer ffmpeg
# Date created: Thu Feb 26 20:10:39 CET 2004
# Whom: Koop Mast <kwm@rainbow-runner.nl>
#
# $FreeBSD$
# $MCom: ports/multimedia/gstreamer-ffmpeg/Makefile,v 1.14 2006/07/20 13:40:27 ahze Exp $
#
PORTNAME= gstreamer
PORTVERSION= 0.10.11
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/
PKGNAMESUFFIX= -ffmpeg
DISTNAME= gst-ffmpeg-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= GStreamer plug-in for manipulating MPEG video streams
LIB_DEPENDS= orc-0.4.0:${PORTSDIR}/devel/orc
CFLAGS:= ${CFLAGS} -O2 -Wno-format
USE_BZIP2= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_GNOME= gnometarget
USE_GSTREAMER= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= "--with-ffmpeg-extra-configure=--cc=${CC}"
CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \
CPPFLAGS="${CPPFLAGS}" \
CFLAGS="${CFLAGS} -fno-force-addr" \
LDFLAGS="${LDFLAGS}"
PLIST_SUB= \
VERSION="${GST_VERSION}"
WITHOUT_CPU_CFLAGS= yes
PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
GST_VERSION=${PORTVERSION:C/..$//}
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e \
's|make|${GMAKE}|' \
${WRKSRC}/gst-libs/ext/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|g'\
${WRKSRC}/gst-libs/ext/ffmpeg/doc/texi2pod.pl
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
@cd ${WRKSRC}/gst-libs/ext/ffmpeg/libavcodec && \
${LN} -s x86 i386 && ${LN} -s x86 amd64
.include <bsd.port.post.mk>