freebsd-ports/multimedia/gstreamer1-libav/Makefile
Koop Mast 05d2886d27 Add Gstreamer 1.0.7. This is the new stable version of the
Gstreamer multimedia framework.

Use the USE_GSTREAMER1 macro to select Gstreamer 1.0 plugins. A new chapter
for the porters handbook about gstreamer is a work in progress.

X related plugins are now stand alone. The gio plugin is now part of the
gstreamer1-plugins port and the oss plugins are now part of the
gstreamer1-plugins-good port.

Note that the pulseaudio plugin is missing because it needs a newer version
of pulseaudio. Also there are still a number of plugins from -bad which
haven't been ported to the 1.0 API yet.
2013-04-27 20:56:38 +00:00

66 lines
1.6 KiB
Makefile

# Created by: Koop Mast <kwm@rainbow-runner.nl>
# $FreeBSD$
# $MCom: ports/multimedia/gstreamer1-libav/Makefile,v 1.4 2013/01/15 21:43:45 kwm Exp $
PORTNAME= gstreamer1-libav
PORTVERSION= 1.0.7
CATEGORIES= multimedia
MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-libav/
DISTNAME= gst-libav-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= GStreamer plug-in for manipulating MPEG video streams
LICENSE= GPLv2
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
orc>=0.4.16:${PORTSDIR}/devel/orc
LIB_DEPENDS= orc-0.4:${PORTSDIR}/devel/orc
USE_XZ= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_GSTREAMER1= yes
GNU_CONFIGURE= yes
USES= pkgconfig
LIBAV_CONFIG= --cc=${CC} \
--enable-runtime-cpudetect \
--enable-pic
LDFLAGS+= -Wl,-Bsymbolic
CFLAGS+= -fno-force-addr
#CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG}
PLIST_SUB= VERSION="${GST1_VERSION}"
#PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
# sse hardware vector support
.if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || ${MACHINE_CPU:Mamd64} == "amd64")
WITH_BUILTIN_VECTOR= yes
.else
LIBAV_CONFIG+= --disable-sse
.endif
# mmx support
.if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && ${MACHINE_CPU:Mamd64} == ""
LIBAV_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-libav-extra-configure="${LIBAV_CONFIG}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900033
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin
.endif
.include <bsd.port.post.mk>