freebsd-ports/audio/flite/Makefile
Mikhail Teterin f4e0b7d13d Fix the ancient problem, where we replaced Linux' "cp -pd" with
simple "cp -p". This caused symbolic links (like libFOO.so ->
libFOO.so.X.Y) to be dereferenced installing three copies of each
library instead of one.

Strip the executables and the shared libraries after staging.

Fix the authors' makefiles to allow parallel building.

Add a patch which allows us to replace the multitude of
flite_VOICE-executables (one for each voice) with sym-links to the
single flite itself.

The size of the package shrunk from 100Mb to 50Mb here (amd64) as the
result of the above measures.

Bump PORTREVISION.

Note: the new patches are deliberately organized by feature rather than
by the patched files -- to make it easier to refer the upstream
maintainers to them.
2014-12-02 07:01:40 +00:00

29 lines
740 B
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= flite
PORTVERSION= 1.4
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.speech.cs.cmu.edu/flite/packed/${PORTNAME}-${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-release
MAINTAINER= sobomax@FreeBSD.org
COMMENT= Small run-time speech synthesis engine
OPTIONS_DEFINE= DOCS
USES= tar:bzip2 gmake desthack
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared=yes
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e 's|-pd|-pR|g' ${WRKSRC}/main/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/*.so
.include <bsd.port.mk>