summaryrefslogtreecommitdiff
path: root/textproc/qstardict/Makefile
blob: 2af8d7b65166bbbfd217b817d93df01ccaa47984 (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
# New ports collection makefile for:	qstardict
# Date created:		12 Jul 2007
# Whom:			Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	qstardict
PORTVERSION=	0.05
CATEGORIES=	textproc
MASTER_SITES=	http://qstardict.ylsoftware.com/files/ \
		ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/

MAINTAINER=	relaxbsd@gmail.com
COMMENT=	A StarDict clone written with using Qt4

USE_BZIP2=	yes
USE_QT_VER=	4
QT_COMPONENTS=	gui corelib qmake_build uic_build moc_build rcc_build

DICPATH=	${PREFIX}/share/gnome/stardict/dic

PORTDOCS=	AUTHORS COPYNG ChangeLog INSTALL README THANKS

post-patch:
	@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
		${WRKSRC}/qstardict.pro
	@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
		${WRKSRC}/src/dictcore.cpp

post-configure:
	@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE}

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in AUTHORS COPYNG ChangeLog INSTALL README THANKS
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>