freebsd-ports/chinese/reciteword/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

2012-11-02 19:50:04 +01:00
# Created by: hamigua <hamigua@cuc.cn>
# $FreeBSD$
PORTNAME= reciteword
2012-11-02 19:50:04 +01:00
PORTVERSION= 0.8.5
CATEGORIES= chinese
MASTER_SITES= SF:src \
SF/${PORTNAME}/${PORTNAME}-books/${PORTVERSION}:books \
SF/${PORTNAME}/${PORTNAME}-dicts/0.8.2:dicts
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.bz2:src \
${PORTNAME}-books-${PORTVERSION}.tar.bz2:books \
${PORTNAME}-dicts-0.8.2.tar.bz2:dicts
2013-10-21 00:45:25 +02:00
MAINTAINER= ports@FreeBSD.org
COMMENT= Education software to help people to study English
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
USE_BZIP2= yes
2013-09-03 08:36:41 +02:00
USES= gettext gmake pkgconfig
USE_GNOME= gtk20 esound
CPPFLAGS+= "-I${LOCALBASE}/include"
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
2012-11-02 19:50:04 +01:00
XTRACT_AFTER_ARGS+= --exclude CVS
NO_STAGE= yes
2012-11-02 19:50:04 +01:00
.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}
2012-11-02 19:50:04 +01:00
(cd ${WRKDIR}/ && ${COPYTREE_SHARE} "books dicts" ${DATADIR})
2014-01-03 16:59:41 +01:00
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
2012-11-02 19:50:04 +01:00
.include <bsd.port.mk>