freebsd-ports/chinese/reciteword/Makefile
Dmitry Marakasov 27a17a2dcc - Pet portlint
- Fix build with clang 6
2018-07-08 19:29:48 +00:00

44 lines
1.1 KiB
Makefile

# Created by: hamigua <hamigua@cuc.cn>
# $FreeBSD$
PORTNAME= reciteword
PORTVERSION= 0.8.5
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= SF \
SF/${PORTNAME}/${PORTNAME}-books/${PORTVERSION}:books \
SF/${PORTNAME}/${PORTNAME}-dicts/0.8.2:dicts
DISTFILES= ${DISTNAME}.tar.bz2 \
${PORTNAME}-books-${PORTVERSION}.tar.bz2:books \
${PORTNAME}-dicts-0.8.2.tar.bz2:dicts
MAINTAINER= ports@FreeBSD.org
COMMENT= Education software to help people to study English
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libespeak.so:audio/espeak
USES= tar:bzip2 gettext gmake localbase pkgconfig
GNU_CONFIGURE= yes
USE_GNOME= gtk20 intltool esound
CXXFLAGS+= -Wno-reserved-user-defined-literal
PORTDOCS= AUTHORS ChangeLog INSTALL README readme.txt
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp
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}
.include <bsd.port.mk>