# Created by: Koop Mast # $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 .if ${OSVERSION} < 900033 BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin .endif .include