aboutsummaryrefslogtreecommitdiff
path: root/chinese
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
parentf2a8876500cdf16778aa79803ccebcf9b4391ae2 (diff)
downloadports-aa72ec6e0be8c07676539c942529aa90f947e4a8.tar.gz
ports-aa72ec6e0be8c07676539c942529aa90f947e4a8.zip
Notes
Diffstat (limited to 'chinese')
-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>