2 PORTVERSION?= ${BASE_PORTVERSION}
3 # plug-in port instead, like ${category}/gstreamer1-plugin-${PLUGIN}.
5 CATEGORIES?= multimedia audio
6 MASTER_SITES= https://gstreamer.freedesktop.org/src/gst-plugins-base/:base \
7 https://gstreamer.freedesktop.org/src/gst-plugins-bad/:bad \
8 https://gstreamer.freedesktop.org/src/gst-plugins-good/:good \
9 https://gstreamer.freedesktop.org/src/gst-plugins-ugly/:ugly
10 PKGNAMESUFFIX?= 1-plugins${GST_PLUGIN_SUFFIX}
12 MAINTAINER= multimedia@FreeBSD.org
13 COMMENT?= GStreamer written collection of plugins handling several media types
14 WWW= https://gstreamer.freedesktop.org/
18 BUILD_DEPENDS+= iso-codes>=0:misc/iso-codes \
20 LIB_DEPENDS+= libfreetype.so:print/freetype2 \
21 liborc-0.4.so:devel/orc
22 RUN_DEPENDS+= iso-codes>=0:misc/iso-codes
24 PORTSCOUT= limitw:1,even
26 BASE_PORTVERSION= 1.20.6
27 BASE_DISTNAME= gst-plugins-base-${BASE_PORTVERSION}
28 BASE_DISTFILE= ${BASE_DISTNAME}${EXTRACT_SUFX}
29 BAD_PORTVERSION= 1.20.6
30 BAD_DISTNAME= gst-plugins-bad-${BAD_PORTVERSION}
31 BAD_DISTFILE= ${BAD_DISTNAME}${EXTRACT_SUFX}
32 GOOD_PORTVERSION= 1.20.6
33 GOOD_DISTNAME= gst-plugins-good-${GOOD_PORTVERSION}
34 GOOD_DISTFILE= ${GOOD_DISTNAME}${EXTRACT_SUFX}
35 UGLY_PORTVERSION= 1.20.6
36 UGLY_DISTNAME= gst-plugins-ugly-${UGLY_PORTVERSION}
37 UGLY_DISTFILE= ${UGLY_DISTNAME}${EXTRACT_SUFX}
40 USES+= meson cpe gettext gnome gstreamer libtool pathfix pkgconfig python:3.8+,build tar:xz
41 USE_GNOME+= glib20 introspection:build libxml2
45 CPE_VENDOR= gstreamer_project
46 CPE_PRODUCT= gstreamer
49 CPPFLAGS+= -I${LOCALBASE}/include
50 LDFLAGS+= -lpthread -L${LOCALBASE}/lib ${EXTRA_LIBS}
52 DEFAULT_AUDIOSINK?= osssink
53 DEFAULT_AUDIOSRC?= osssrc
56 IGNORE= DIST not specified
61 PLIST_SUB+= VERSION="${VERSION}" \
62 SOVERSION="${SOVERSION}"
64 # Include bsd.port.options.mk and not bsd.port.pre.mk to be able to use USES
65 .include <bsd.port.options.mk>
67 .if ${GST_PLUGIN} == "base"
69 NO_GSTREAMER_COMMON= yes
71 BASE_GST_ENABLED_PLUGINS= adder \
108 .if ${DIST} == base || ${DIST} == ugly
109 CONFIGURE_ARGS+= -Ddefaultaudiosink="${DEFAULT_AUDIOSINK}" \
110 -Ddefaultaudiosrc="${DEFAULT_AUDIOSRC}"
113 .include "${MASTERDIR}/Makefile.common"
116 EXTRACT_ONLY=${BASE_DISTFILE}
117 WRKSRC=${WRKDIR}/${BASE_DISTNAME}
118 PORTVERSION= ${BASE_PORTVERSION}
119 DISTFILES+= ${BASE_DISTFILE}:base
120 PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins/files
122 EXTRACT_ONLY=${BAD_DISTFILE}
123 WRKSRC=${WRKDIR}/${BAD_DISTNAME}
124 PORTVERSION= ${BAD_PORTVERSION}
125 DISTFILES+= ${BAD_DISTFILE}:bad
126 PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-bad/files
127 .elif ${DIST}=="ugly"
128 EXTRACT_ONLY=${UGLY_DISTFILE}
129 WRKSRC=${WRKDIR}/${UGLY_DISTNAME}
130 PORTVERSION= ${UGLY_PORTVERSION}
131 DISTFILES+= ${UGLY_DISTFILE}:ugly
132 PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-ugly/files
133 .elif ${DIST}=="good"
134 EXTRACT_ONLY=${GOOD_DISTFILE}
135 WRKSRC=${WRKDIR}/${GOOD_DISTNAME}
136 PORTVERSION= ${GOOD_PORTVERSION}
137 DISTFILES+= ${GOOD_DISTFILE}:good
138 PATCHDIR= ${.CURDIR}/../../multimedia/gstreamer1-plugins-good/files
139 .elif ${DIST}=="makesum"
140 DISTFILES+= ${BASE_DISTFILE}:base ${BAD_DISTFILE}:bad \
141 ${UGLY_DISTFILE}:ugly ${GOOD_DISTFILE}:good
143 BROKEN= Unknown dist setting
146 # cdrom/dvd default device
147 .ifdef(WITH_DVD_DEVICE)
148 DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
150 DEFAULT_DVD_DEVICE=/dev/cd0
154 ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gstreamer-${VERSION}
156 .include <bsd.port.mk>