summaryrefslogtreecommitdiff
path: root/deskutils/plasma-applet-qstardict/Makefile
blob: 14094fd1818440a6a2536a10cc8374f2d28b484e (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
# $FreeBSD$

PORTNAME=	qstardict
PORTVERSION=	1.0.1
CATEGORIES=	deskutils textproc kde
MASTER_SITES=	http://qstardict.ylsoftware.com/files/
PKGNAMEPREFIX=	plasma-applet-

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Dictionary plasma applet for KDE

RUN_DEPENDS=	${QSTARDICT_PLUGIN_PATH}/libstardict.so:${PORTSDIR}/textproc/qstardict

USE_BZIP2=	yes
USES=		cmake
USE_QT4=	qmake_build uic_build moc_build rcc_build
USE_KDE4=	automoc4 kdeprefix kdelibs
CMAKE_SOURCE_PATH=	${WRKSRC}/kdeplasma
MAKE_JOBS_SAFE=	yes

QSTARDICT_PLUGIN_PATH=	${LOCALBASE}/lib/qstardict/plugins

post-patch:
	${REINPLACE_CMD} -e 's|/usr/lib/qstardict/plugins|${QSTARDICT_PLUGIN_PATH}|g' \
		${WRKSRC}/kdeplasma/dataengine/config.h.cmake

.include <bsd.port.mk>