summaryrefslogtreecommitdiffstats
path: root/multimedia/subtitlecomposer-kde4/Makefile
blob: 786def50077d63dc93a8e03846992acaed5f2df1 (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
# New ports collection makefile for:	subtitlecomposer
# Date created:		2008-01-08
# Whom:			Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

PORTNAME=	subtitlecomposer
PORTVERSION=	0.5.2
PORTREVISION=	1
CATEGORIES=	multimedia kde
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=subcomposer

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

USE_BZIP2=	yes
USE_CMAKE=	yes
USE_KDE4=	kdeprefix kdelibs automoc4
USE_QT_VER=	4
QT_COMPONENTS=	gui qmake_build moc_build rcc_build uic_build
WANT_GSTREAMER=	yes

LATEST_LINK=	${PORTNAME}-kde4

OPTIONS=	MPLAYER "Enable MPlayer backend (recommended)" on \
		XINE "Enable Xine backend" off \
		GSTREAMER "Enable GStreamer backend (broken)" off

.include <bsd.port.pre.mk>

.if defined(WITH_MPLAYER)
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
.endif

.if defined(WITH_XINE)
LIB_DEPENDS+=	xine.1:${PORTSDIR}/multimedia/libxine
.else
CMAKE_ARGS+=	-DWITH_Xine:Bool=Off
.endif

.if defined(WITH_GSTREAMER)
BROKEN=		doesn't compile with GStreamer
USE_GSTREAMER+=	yes
.else
CMAKE_ARGS+=	-DWITH_GStreamer:Bool=Off
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud