summaryrefslogtreecommitdiff
path: root/chinese/reciteword
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-01-20 21:17:57 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-01-20 21:17:57 +0000
commitaa72ec6e0be8c07676539c942529aa90f947e4a8 (patch)
tree28cd5025b5ba81bac01cc62047417f269705a335 /chinese/reciteword
parentStage support (diff)
Stage support
Notes
Notes: svn path=/head/; revision=340480
Diffstat (limited to 'chinese/reciteword')
-rw-r--r--chinese/reciteword/Makefile21
1 files changed, 6 insertions, 15 deletions
diff --git a/chinese/reciteword/Makefile b/chinese/reciteword/Makefile
index 909aac1ef0aa..af2b0527e5d1 100644
--- a/chinese/reciteword/Makefile
+++ b/chinese/reciteword/Makefile
@@ -14,6 +14,8 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2:src \
MAINTAINER= ports@FreeBSD.org
COMMENT= Education software to help people to study English
+LIB_DEPENDS= libespeak.so:${PORTSDIR}/audio/espeak
+
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
USE_BZIP2= yes
@@ -23,24 +25,13 @@ CPPFLAGS+= "-I${LOCALBASE}/include"
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
-XTRACT_AFTER_ARGS+= --exclude CVS
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-LIB_DEPENDS+= libespeak.so:${PORTSDIR}/audio/espeak
-
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp
post-install:
- @${MKDIR} ${DATADIR}
- (cd ${WRKDIR}/ && ${COPYTREE_SHARE} "books dicts" ${DATADIR})
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
-.endif
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKDIR} && ${COPYTREE_SHARE} "books dicts" ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>