summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/options.mk
blob: 0a1a2ea8714bbe4558f0122d55cba105c8888862 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# $NetBSD: options.mk,v 1.10 2008/09/12 13:44:23 sborrill Exp $

# Global and legacy options

PKG_OPTIONS_VAR=	PKG_OPTIONS.ffmpeg
PKG_SUPPORTED_OPTIONS=	sdl theora xvid faad faac swscale x264
PKG_SUGGESTED_OPTIONS=	faac theora xvid swscale x264
#PKG_OPTIONS_OPTIONAL_GROUPS=	aac-decoder
#PKG_OPTIONS_GROUP.aac-decoder=	faad faac

.include "../../mk/bsd.options.mk"
.include "../../mk/bsd.prefs.mk"

PLIST_VARS+=	sdl swscale

###
### faad option
###

.if !empty(PKG_OPTIONS:Mfaad)
CONFIGURE_ARGS+=  --enable-libfaad
.include "../../audio/faad2/buildlink3.mk"
.endif


###
### faac option
###

.if !empty(PKG_OPTIONS:Mfaac)
CONFIGURE_ARGS+=  --enable-libfaac
.include "../../audio/faac/buildlink3.mk"
.endif

###
### SDL support
###
### You can build the frontend with SDL support enabled
###

.if !empty(PKG_OPTIONS:Msdl)
CONFIGURE_ARGS+=	--enable-ffplay
PLIST.sdl=		yes
.include "../../devel/SDL/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--disable-ffplay
.endif

###
### swscale option
###

.if !empty(PKG_OPTIONS:Mswscale)
CONFIGURE_ARGS+=	--enable-swscale
PLIST.swscale=		yes
.endif

###
### OGG Theora support
###

.if !empty(PKG_OPTIONS:Mtheora)
CONFIGURE_ARGS+=  --enable-libtheora
.include "../../multimedia/libtheora/buildlink3.mk"
.endif

###
### XviD support
###

.if !empty(PKG_OPTIONS:Mxvid)
CONFIGURE_ARGS+=  --enable-libxvid
.include "../../multimedia/xvidcore/buildlink3.mk"
.endif

###
### x264 support
###

.if !empty(PKG_OPTIONS:Mx264)
BUILDLINK_API_DEPENDS.x264-devel+=	x264-devel>=20071218
CONFIGURE_ARGS+=  --enable-libx264
.include "../../multimedia/x264-devel/buildlink3.mk"
.endif