summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg3/buildlink3.mk
blob: 16a44c5ccfc597897d207c4105b41ae55441112b (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
# $NetBSD: buildlink3.mk,v 1.11 2020/08/17 20:17:37 leot Exp $

BUILDLINK_TREE+=	ffmpeg3

.if !defined(FFMPEG3_BUILDLINK3_MK)
FFMPEG3_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.ffmpeg3+=	ffmpeg3>=3.0
BUILDLINK_ABI_DEPENDS.ffmpeg3+=	ffmpeg3>=3.4.8nb1
BUILDLINK_PKGSRCDIR.ffmpeg3?=	../../multimedia/ffmpeg3

pkgbase := ffmpeg3
.include "../../mk/pkg-build-options.mk"

.include "../../mk/bsd.fast.prefs.mk"

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mfreetype)
.  include "../../graphics/freetype2/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mfontconfig)
.  include "../../fonts/fontconfig/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mtheora)
.  include "../../multimedia/libtheora/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mxvid)
.  include "../../multimedia/xvidcore/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mx264)
.  include "../../multimedia/x264-devel/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mlibvpx)
.  include "../../multimedia/libvpx/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mvaapi)
.  include "../../multimedia/libva/buildlink3.mk"
.endif

.if !empty(PKG_BUILD_OPTIONS.ffmpeg3:Mvdpau)
.  include "../../multimedia/libvdpau/buildlink3.mk"
.endif

BUILDLINK_INCDIRS.ffmpeg3+=		include/ffmpeg3
BUILDLINK_LIBDIRS.ffmpeg3+=		lib/ffmpeg3
BUILDLINK_FNAME_TRANSFORM.ffmpeg3+=	-e 's|lib/ffmpeg3/pkgconfig/|lib/pkgconfig/|'

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.endif # FFMPEG3_BUILDLINK3_MK

BUILDLINK_TREE+=	-ffmpeg3