aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/kdenlive/Makefile
blob: 3a63668648069c27d20e4edc006ca2bba7019298 (plain) (blame)
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
85
# $FreeBSD$

PORTNAME=   kdenlive
PORTVERSION=    0.9.6
PORTREVISION=   1
CATEGORIES= multimedia kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTNAME}/${PORTVERSION}/src/

MAINTAINER= avilla@FreeBSD.org
COMMENT=    KDE professional quality non-linear video editing suite

LICENSE=    GPLv2

LIB_DEPENDS=    mlt:${PORTSDIR}/multimedia/mlt \
        qjson:${PORTSDIR}/devel/qjson
RUN_DEPENDS=    ffmpeg${FFMPEG_SUFX}:${PORTSDIR}/multimedia/ffmpeg${FFMPEG_SUFX}

USE_KDE4=   kdehier kdelibs kdeprefix automoc4 sharedmime
USE_QT4=    dbus gui opengl script svg xml \
        moc_build qmake_build rcc_build uic_build
USE_XORG=   x11
USES=       cmake pkgconfig
USE_BZIP2=  yes
CMAKE_ARGS= -DFFMPEG_SUFFIX:STRING="${FFMPEG_SUFX}"

# Keep in sync with multimedia/mlt, possibly.
FFMPEG_SUFX=    1

MAN1=       kdenlive.1 kdenlive_render.1

OPTIONS_DEFINE= DVDWIZARD FREI0R LADSPA NLS SCREENCAST XINE
OPTIONS_DEFAULT=DVDWIZARD FREI0R LADSPA SCREENCAST XINE

DVDWIZARD_DESC= DVD authoring via DVDAuthor and cdrtools
SCREENCAST_DESC=Screen capture support via recordMyDesktop
#V4L_DESC=  Webcam support via Video 4 Linux
XINE_DESC=  DVD preview support via xine

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDVDWIZARD}
RUN_DEPENDS+=   dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
        cdrecord:${PORTSDIR}/sysutils/cdrtools
.endif

.if ${PORT_OPTIONS:MFREI0R}
RUN_DEPENDS+=   frei0r-plugins>=0:${PORTSDIR}/graphics/frei0r-plugins
.endif

.if ${PORT_OPTIONS:MLADSPA}
RUN_DEPENDS+=   swhplugins>=0:${PORTSDIR}/audio/swhplugins
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+=    -DBUILD_po:BOOL=FALSE
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MSCREENCAST}
RUN_DEPENDS+=   recordmydesktop:${PORTSDIR}/multimedia/recordmydesktop
.endif

#.if ${PORT_OPTIONS:MV4L}
#LIB_DEPENDS+=  v4l2:${PORTSDIR}/multimedia/libv4l
#BUILD_DEPENDS+=    ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
#.else
CMAKE_ARGS+=    -DWITH_V4L:BOOL=FALSE
#.endif

.if ${PORT_OPTIONS:MXINE}
RUN_DEPENDS+=   xine:${PORTSDIR}/multimedia/xine
.endif

post-patch:
    @${REINPLACE_CMD} -E -e '/${PORTNAME}.(menu|xpm)/ d' \
        ${PATCH_WRKSRC}/data/CMakeLists.txt
    @${REINPLACE_CMD} -e '/^update_xdg_mimetypes/ d; /SharedMimeInfo/ d' \
        ${PATCH_WRKSRC}/src/mimetypes/CMakeLists.txt

.include <bsd.port.mk>