aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/subtitlecomposer-kde4/Makefile
blob: 8a5d84e063f8cb54083a4b828ad8b3d6981e7007 (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
# $FreeBSD$

PORTNAME=   subtitlecomposer
PORTVERSION=    0.5.3
PORTREVISION=   5
CATEGORIES= multimedia kde
MASTER_SITES=   SF/subcomposer/subcomposer/${PORTNAME}-${PORTVERSION}

MAINTAINER= makc@FreeBSD.org
COMMENT=    Subtitle editor for KDE

USE_BZIP2=  yes
USES=       cmake
USE_KDE4=   kdeprefix kdelibs automoc4 sharedmime
USE_QT4=    gui qmake_build moc_build rcc_build uic_build

LATEST_LINK=    ${PORTNAME}-kde4

OPTIONS_DEFINE= GSTREAMER MPLAYER XINE
OPTIONS_DEFAULT=    MPLAYER

MPLAYER_DESC=   Enable MPlayer backend (recommended)
XINE_DESC=  Enable Xine backend
GSTREAMER_DESC= Enable GStreamer backend (broken)

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+=   mplayer:${PORTSDIR}/multimedia/mplayer
.endif

.if ${PORT_OPTIONS:MXINE}
LIB_DEPENDS+=   xine.2:${PORTSDIR}/multimedia/libxine
.else
CMAKE_ARGS+=    -DWITH_Xine:Bool=Off
.endif

.if ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER=  yes
.else
CMAKE_ARGS+=    -DWITH_GStreamer:Bool=Off
.endif

.include <bsd.port.mk>