Update multimedia/gstreamer1-plugins to version 1.20.6
[dports.git] / multimedia / gstreamer1-plugins / Makefile
1 PORTNAME=       gstreamer
2 PORTVERSION?=   ${BASE_PORTVERSION}
3 # plug-in port instead, like ${category}/gstreamer1-plugin-${PLUGIN}.
4 PORTREVISION?=  0
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}
11
12 MAINTAINER=     multimedia@FreeBSD.org
13 COMMENT?=       GStreamer written collection of plugins handling several media types
14 WWW=            https://gstreamer.freedesktop.org/
15
16 LICENSE=        LGPL20
17
18 BUILD_DEPENDS+= iso-codes>=0:misc/iso-codes \
19                 orc>=0.4.16:devel/orc
20 LIB_DEPENDS+=   libfreetype.so:print/freetype2 \
21                 liborc-0.4.so:devel/orc
22 RUN_DEPENDS+=   iso-codes>=0:misc/iso-codes
23
24 PORTSCOUT=      limitw:1,even
25
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}
38 DIST?=          base
39
40 USES+=          meson cpe gettext gnome gstreamer libtool pathfix pkgconfig python:3.8+,build tar:xz
41 USE_GNOME+=     glib20 introspection:build libxml2
42 GST_PLUGIN?=    base
43 USE_LDCONFIG=   yes
44
45 CPE_VENDOR=     gstreamer_project
46 CPE_PRODUCT=    gstreamer
47
48 CFLAGS+=        -Wno-format
49 CPPFLAGS+=      -I${LOCALBASE}/include
50 LDFLAGS+=       -lpthread -L${LOCALBASE}/lib ${EXTRA_LIBS}
51
52 DEFAULT_AUDIOSINK?=     osssink
53 DEFAULT_AUDIOSRC?=      osssrc
54
55 .if ${DIST}==""
56 IGNORE=         DIST not specified
57 .endif
58
59 VERSION=        1.0
60 SOVERSION=      0.2006.0
61 PLIST_SUB+=     VERSION="${VERSION}" \
62                 SOVERSION="${SOVERSION}"
63
64 # Include bsd.port.options.mk and not bsd.port.pre.mk to be able to use USES
65 .include <bsd.port.options.mk>
66
67 .if ${GST_PLUGIN} == "base"
68 DIST=   base
69 NO_GSTREAMER_COMMON=    yes
70
71 BASE_GST_ENABLED_PLUGINS=       adder \
72                                 allocators \
73                                 app \
74                                 audio \
75                                 audioconvert \
76                                 audiomixer \
77                                 audiorate \
78                                 audioresample \
79                                 audiotestsrc \
80                                 compositor \
81                                 encoding \
82                                 fft \
83                                 gio \
84                                 nls \
85                                 overlaycomposition \
86                                 pbtypes \
87                                 pkgconfig \
88                                 pbutils \
89                                 playback \
90                                 rawparse \
91                                 riff \
92                                 rtp \
93                                 rtsp \
94                                 sdp \
95                                 subparse \
96                                 tag \
97                                 tcp \
98                                 tools \
99                                 typefind \
100                                 video \
101                                 videoconvert \
102                                 videorate \
103                                 videoscale \
104                                 videotestsrc \
105                                 volume
106 .endif
107
108 .if ${DIST} == base || ${DIST} == ugly
109 CONFIGURE_ARGS+= -Ddefaultaudiosink="${DEFAULT_AUDIOSINK}" \
110                 -Ddefaultaudiosrc="${DEFAULT_AUDIOSRC}"
111 .endif
112
113 .include "${MASTERDIR}/Makefile.common"
114
115 .if ${DIST}=="base"
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
121 .elif ${DIST}=="bad"
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
142 .else
143 BROKEN=         Unknown dist setting
144 .endif
145
146 # cdrom/dvd default device
147 .ifdef(WITH_DVD_DEVICE)
148 DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
149 .else
150 DEFAULT_DVD_DEVICE=/dev/cd0
151 .endif
152
153 pre-install:
154         ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gstreamer-${VERSION}
155
156 .include <bsd.port.mk>