summaryrefslogtreecommitdiffstats
path: root/chinese/reciteword/Makefile
blob: f6be9a0683b64e86292e744d928564c2f4ab5109 (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
51
# Ports collection makefile for:	reciteword
# Date created:			1 November 2004
# Whom:				hamigua <hamigua@cuc.cn>
#
# $FreeBSD$
#

PORTNAME=	reciteword
PORTVERSION=	0.8.3
PORTREVISION=	4
CATEGORIES=	chinese
MASTER_SITES=	http://reciteword.cosoft.org.cn/reciteword/download/ \
		ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-books-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-dicts-0.8.2.tar.bz2

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Education software to help people to study English

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"
USE_BZIP2=	yes
USE_GETTEXT=	yes
USE_GNOME=	gtk20 esound

PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt

OPTIONS=	RPTTS "With Real People TTS" off

.include <bsd.port.pre.mk>

.if defined(WITH_RPTTS)
RUN_DEPENDS+=	${LOCALBASE}/share/WyabdcRealPeopleTTS/a/a.wav:${PORTSDIR}/textproc/stardict2-rptts
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp

post-install:
	@${MKDIR} ${DATADIR}
	(cd ${WRKDIR}/ && ${COPYTREE_SHARE} "books dicts" ${DATADIR} "! ( -type d -a -name CVS )")
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

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