aboutsummaryrefslogtreecommitdiff
path: root/accessibility/ktts/Makefile
blob: 28fb1a88c822bcf617b786e24247a75f1300b0be (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
# New ports collection makefile for:	ktts
# Date created:		2010-03-27
# Whom:			Max Brazhnikov <makc@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ktts
PORTVERSION=	${KDE4_VERSION}
CATEGORIES=	accessibility kde
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	${KDE4_BRANCH}/${PORTVERSION}/src
DISTNAME=	kdeaccessibility-${PORTVERSION}
DIST_SUBDIR=	KDE

MAINTAINER=	kde@FreeBSD.org
COMMENT=	KDE text-to-speech subsystem

BUILD_DEPENDS=	${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml
LIB_DEPENDS=	speechd.4:${PORTSDIR}/accessibility/speech-dispatcher

USE_BZIP2=	yes
USE_CMAKE=	yes
USE_KDE4=	kdeprefix kdelibs automoc4
USE_QT_VER=	4
QT_COMPONENTS=	qmake_build moc_build uic_build rcc_build
USE_LDCONFIG=	yes
MD5_FILE=	${PORTSDIR}/accessibility/kdeaccessibility4/distinfo
MAKE_JOBS_SAFE=	yes

CMAKE_ARGS+=	-DKDE4_JOVIE_ALSA:BOOL=OFF

BUILD_WRKSRC=	${WRKSRC}/jovie
INSTALL_WRKSRC=	${BUILD_WRKSRC}

post-patch:
	${REINPLACE_CMD} -e 's|speechd|$$$\{SPEECHD_LIBRARY}|g' \
		${PATCH_WRKSRC}/jovie/kcmkttsmgr/CMakeLists.txt \
		${PATCH_WRKSRC}/jovie/jovie/CMakeLists.txt

post-install:
	cd ${WRKSRC}/doc/jovie && ${MAKE} install
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>