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

PORTNAME=	reciteword
PORTVERSION=	0.8.2
PORTREVISION=	1
CATEGORIES=	chinese
MASTER_SITES=	http://reciteword.cosoft.org.cn/reciteword/download/
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-books-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-dicts-${PORTVERSION}.tar.bz2
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-books-${PORTVERSION}.tar.bz2 \
		${PORTNAME}-dicts-${PORTVERSION}.tar.bz2

MAINTAINER=	hamigua@cuc.cn
COMMENT=	Education software to help people to study English

USE_ICONV=	yes
NO_PACKAGE=	bsdtar can not handle utf-8 path name correctly under certain circumstance

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"
USE_GMAKE=	yes
USE_GCC=	3.4
USE_X_PREFIX=	yes
USE_BZIP2=	yes
USE_GNOME=	gnomehack gnomeprefix libgnomeui
USE_REINPLACE=	yes

RECITE_DATADIR=	${PREFIX}/share/gnome/${PORTNAME}

post-install:
	((cd ${WRKDIR}; ${TAR} -cf - books) | \
	${TAR} --exclude CVS -xf - -C ${RECITE_DATADIR} ; \
	${MV} ${RECITE_DATADIR}/books ${RECITE_DATADIR}/books.EUC-CN)
	(cd ${WRKDIR}; ${TAR} -cf - dicts) | \
	${TAR} --exclude CVS -xf - -C ${RECITE_DATADIR}
	${SETENV} PKG_PREFIX=${PREFIX} RECITE_DATADIR=${RECITE_DATADIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@${FIND} ${RECITE_DATADIR} -not -type d | \
	${SED} -e 's,^${PREFIX}/,,g' >> ${TMPPLIST}
	@${FIND} ${RECITE_DATADIR} -type d | \
	${SED} -e 's,^${PREFIX}/,@dirrm ,g' | ${SORT} -r >> ${TMPPLIST}

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