blob: 2e6d4805689b7df91ff0bb717bb4171b4575d10c (
plain)
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
|
# Most frequent usage of the GStreamer packages:
# core base library
# plugins-base minimal set: audio (sndio), gio, playback, Ogg Vorbis
# plugins-good base audio, video and graphic codecs
# plugins-ugly dvd
# plugins-bad vaapi
# plugins-libav divx, mp3, mpeg4, h264, vp8 (same decoding capabilities as FFmpeg)
#
# Most applications that use GStreamer require:
# gstreamer1-plugins-base and gstreamer1-plugins-good
# Support for most audio and video codecs is provided by
# gstreamer1-plugins-libav
PORTROACH= limitw:1,even
V ?= 1.22.10
API= 1.0
SUBST_VARS += API
CATEGORIES ?= multimedia devel
HOMEPAGE ?= http://gstreamer.freedesktop.org/
MAINTAINER ?= Antoine Jacoutot <ajacoutot@openbsd.org>
GST_PKGNAME_PREFIX= gstreamer1
# GPLv2 - GPLv2+ - LGPLv2
PERMIT_PACKAGE ?= Yes
DIST_SUBDIR= gstreamer
SITE_GST= http://gstreamer.freedesktop.org/src/
EXTRACT_SUFX ?= .tar.xz
P= multimedia/${GST_PKGNAME_PREFIX}
COMPILER= base-clang ports-gcc
COMPILER_LANGS ?= c
.if empty(CONFIGURE_STYLE)
MODULES += devel/meson
BUILD_DEPENDS += devel/gettext,-tools # -Dnls
# X11BASE needed (at least) to find libdrm/drm_fourcc.h in plugins-base
CONFIGURE_ENV += CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
.if ! ${.CURDIR:M*py-gstreamer}
CONFIGURE_ARGS += -Dpackage-name="OpenBSD ${DISTNAME} package"
CONFIGURE_ARGS += -Dpackage-origin="https://www.openbsd.org/"
# requires hotdoc
CONFIGURE_ARGS += -Ddoc=disabled
.endif
.if ! ${.CURDIR:M*plugins-libav} && ! ${.CURDIR:M*plugins-ugly} && ! ${.CURDIR:M*py-gstreamer}
# BDEP on gtk+3, gmp, gsl
CONFIGURE_ARGS += -Dexamples=disabled
CONFIGURE_ARGS += -Dtests=disabled
.endif
.if ! ${.CURDIR:M*plugins-libav} && ! ${.CURDIR:M*py-gstreamer}
# requires hotdoc
CONFIGURE_ARGS += -Ddoc=disabled
.endif
.endif
|