aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-05 17:37:20 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-05 17:37:20 +0800
commit9238fbc396508b08ab9f97e56127e9d00bbe3934 (patch)
tree4baf82c18c8ab374011dac4d76ac16ad31d54f15 /chinese
parentaf06e3a41e9dcb0fb33d679ffb1b976a1b5cc0c0 (diff)
downloadfreebsd-ports-graphics-9238fbc396508b08ab9f97e56127e9d00bbe3934.tar.gz
freebsd-ports-graphics-9238fbc396508b08ab9f97e56127e9d00bbe3934.tar.zst
freebsd-ports-graphics-9238fbc396508b08ab9f97e56127e9d00bbe3934.zip
- Add LICENSE
- Don't install empty and unneeded docs - Switch to options helpers
Diffstat (limited to 'chinese')
-rw-r--r--chinese/reciteword/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/chinese/reciteword/Makefile b/chinese/reciteword/Makefile
index 5a4ba1599c6..0dc442760f4 100644
--- a/chinese/reciteword/Makefile
+++ b/chinese/reciteword/Makefile
@@ -14,6 +14,9 @@ DISTFILES= ${DISTNAME}.tar.bz2 \
MAINTAINER= ports@FreeBSD.org
COMMENT= Education software to help people to study English
+LICENSE= GPLv3 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
+
LIB_DEPENDS= libespeak.so:${PORTSDIR}/audio/espeak
GNU_CONFIGURE= yes
@@ -22,7 +25,9 @@ USE_GNOME= gtk20 intltool esound
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
-PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
+PORTDOCS= AUTHORS ChangeLog INSTALL README readme.txt
+
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp
@@ -30,6 +35,8 @@ post-patch:
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKDIR} && ${COPYTREE_SHARE} "books dicts" ${STAGEDIR}${DATADIR}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}