summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1-libav/Makefile
blob: c0586e980c71581a50d3d0806b324b8e1c71a922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: Koop Mast <kwm@rainbow-runner.nl>
# $FreeBSD$
#    $MCom$

PORTNAME=   gstreamer1-libav
PORTVERSION=    1.0.5
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
#       gstreamer-plugins10>=${GST10_VERSION}${GST10_MINOR_VERSION}:${PORTSDIR}/multimedia/gstreamer-plugins

LIB_DEPENDS=    orc-0.4:${PORTSDIR}/devel/orc

USE_XZ=     yes
USE_GMAKE=  yes
USE_LDCONFIG=   yes
USE_GSTREAMER1= yes
GNU_CONFIGURE=  yes
USE_PKGCONFIG=  build
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="${GST10_VERSION}"
PLIST_SUB=  VERSION="1.0"

PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
#GST_VERSION=${PORTVERSION:C/..$//}

# 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>