summaryrefslogtreecommitdiffstats
path: root/textproc/goldendict/Makefile
blob: e02aa2b76e10f1d7445b01a9b342d81a98bcf3a4 (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
# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$

PORTNAME=	goldendict
PORTVERSION=	1.0.1
PORTREVISION=	6
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:C|(.*)\.[0-9]*$|\1|}/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	bsam@FreeBSD.org
COMMENT=	Feature-rich Qt4 based dictionary lookup program

LICENSE=	GPLv3

LIB_DEPENDS=	hunspell-1.3:${PORTSDIR}/textproc/hunspell \
		execinfo:${PORTSDIR}/devel/libexecinfo \
		vorbis:${PORTSDIR}/audio/libvorbis

USE_BZIP2=	yes
HAS_CONFIGURE=	yes
USES=		pkgconfig
USE_XORG=	xtst
USE_GNOME=	desktopfileutils
USE_QT4=	corelib gui webkit phonon \
		qmake_build linguist_build moc_build rcc_build script_build uic_build

WRKSRC=		${WRKDIR}

post-patch:
	@${SED} -I.bak -e "s:/usr:${PREFIX}:" ${WRKSRC}/redist/goldendict.desktop

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
		${QMAKE} -unix PREFIX=${PREFIX} INCLUDEPATH+=${LOCALBASE}/include \
		LIBS+=-L${LOCALBASE}/lib ${PORTNAME}.pro

post-install:
	@${MKDIR} ${DATADIR}/locale
	@${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${DATADIR}/locale/
	@-update-desktop-database

.include <bsd.port.pre.mk>

.if ${OSVERSION}<800067
IGNORE=		wcscasecmp() id not implemented
.endif

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