diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-07-28 15:20:01 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-07-28 15:20:01 +0000 |
commit | 5078efa4e4c76a62bdeed0b89432fb57dbed8acd (patch) | |
tree | 706fe590a683311daa7c711838e90f2714c46e26 /chinese/reciteword/Makefile | |
parent | 38c71f7b1e73c76ffa6f25ca26678897b2b5b124 (diff) |
Notes
Diffstat (limited to 'chinese/reciteword/Makefile')
-rw-r--r-- | chinese/reciteword/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/chinese/reciteword/Makefile b/chinese/reciteword/Makefile index e7ff44bceab4..6ac9a4b39510 100644 --- a/chinese/reciteword/Makefile +++ b/chinese/reciteword/Makefile @@ -14,9 +14,6 @@ MASTER_SITES= http://reciteword.cosoft.org.cn/reciteword/download/ \ DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2 \ ${PORTNAME}-books-${PORTVERSION}.tar.bz2 \ ${PORTNAME}-dicts-0.8.2.tar.bz2 -EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.bz2 \ - ${PORTNAME}-books-${PORTVERSION}.tar.bz2 \ - ${PORTNAME}-dicts-0.8.2.tar.bz2 MAINTAINER= relaxbsd@gmail.com COMMENT= Education software to help people to study English @@ -24,13 +21,12 @@ COMMENT= Education software to help people to study English 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_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> @@ -39,15 +35,17 @@ OPTIONS= RPTTS "With Real People TTS" off RUN_DEPENDS+= ${LOCALBASE}/share/WyabdcRealPeopleTTS/a/a.wav:${PORTSDIR}/textproc/stardict2-rptts .endif -RECITE_DATADIR= ${PREFIX}/share/${PORTNAME} - post-patch: @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp post-install: - (cd ${WRKDIR}; ${TAR} -cf - books) | \ - ${TAR} --exclude CVS -xf - -C ${RECITE_DATADIR} ; \ - (cd ${WRKDIR}; ${TAR} -cf - dicts) | \ - ${TAR} --exclude CVS -xf - -C ${RECITE_DATADIR} + @${MKDIR} ${DATADIR} + (cd ${WRKDIR}/ && ${COPYTREE_SHARE} books dicts ${DATADIR} "! -type d -name CVS" +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor +.endif .include <bsd.port.post.mk> |