blob: 8e940a3b27104d6048b0b414e92ad0f5c70085d1 (
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
|
# New ports collection makefile for: kdenlive
# Date created: 15 October 2008
# Whom: Alberto Villa <villa.alberto@gmail.com>
#
# $FreeBSD$
PORTNAME= kdenlive
PORTVERSION= 0.7.5
PORTREVISION= 1
CATEGORIES= multimedia kde
MASTER_SITES= SF
MAINTAINER= villa.alberto@gmail.com
COMMENT= A professional quality non-linear video editing suite for KDE
LIB_DEPENDS= mlt.1:${PORTSDIR}/multimedia/mlt
USE_GETTEXT= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix sharedmime
USE_QT_VER= 4
QT_COMPONENTS= dbus gui network svg xml \
moc_build qmake_build rcc_build uic_build
MAKE_JOBS_SAFE= yes
USE_CMAKE= yes
CMAKE_ARGS= -DNO_JOGSHUTTLE:BOOL=On
USE_LDCONFIG= ${PREFIX}/lib/kde4
MAN1= kdenlive.1 kdenlive_render.1
OPTIONS= DVD "DVD creation with cdrtools and dvdauthor" on \
FREI0R "Frei0r plugins" on \
LADSPA "LADSPA plugins" on \
SCREENGRAB "Screen capture with recordMyDesktop" on
.include <bsd.port.pre.mk>
.ifdef(WITH_DVD)
USE_CDRTOOLS= yes
RUN_DEPENDS+= dvdauthor:${PORTSDIR}/multimedia/dvdauthor
.endif
.ifdef(WITH_FREI0R)
RUN_DEPENDS+= frei0r>=1.1.22:${PORTSDIR}/graphics/frei0r
.endif
.ifdef(WITH_LADSPA)
RUN_DEPENDS+= swhplugins>=0:${PORTSDIR}/audio/swhplugins
.endif
.ifdef(WITH_SCREENGRAB)
RUN_DEPENDS+= recordmydesktop:${PORTSDIR}/multimedia/recordmydesktop
.endif
post-patch:
# do not install the icon and the menu entry
${REINPLACE_CMD} -E -e '/${PORTNAME}.(menu|xpm)/d' \
${PATCH_WRKSRC}/data/CMakeLists.txt
# prevent updating mime during build
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \
${PATCH_WRKSRC}/src/mimetypes/CMakeLists.txt
# avoid a crash when kdenlive_render is not in $PATH
${REINPLACE_CMD} -e 's|QCoreApplication::applicationDirPath()|QStrin g("${PREFIX}/bin")|g' \
${PATCH_WRKSRC}/src/renderwidget.cpp
post-install:
@-update-mime-database ${PREFIX}/share/mime
.include <bsd.port.post.mk>
|