1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/chinese/reciteword/Makefile
Roman Bogorodskiy 40bb5822a2 Fix MASTER_SITES.
PR:		87211
Submitted by:	maintainer
2005-10-10 17:45:25 +00:00

51 lines
1.6 KiB
Makefile

# 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>