freebsd-ports/audio/mbrolavox/Makefile
Edwin Groothuis 49ef44c4c1 [patch] fix "make fetch" for audio/mbrolavox
When building audio/mbrolavox on bento, it doesn't do
	anything usefull because it there are no voices selected.

	Furthermore, the fetch stage tries to download each file
	from each subdirectory, which is inefficient.

	See also
	http://bento.freebsd.org/errorlogs/i386-4-exp-latest/mbrolavox-3.0.1.log

PR:		ports/61500
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
Approved by:	maintainer timeout
2004-03-08 04:07:44 +00:00

79 lines
2 KiB
Makefile

# New ports collection makefile for: mbrolavox
# Date created: 2003-10-05
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= mbrolavox
PORTVERSION= 3.0.1
CATEGORIES= audio accessibility
MASTER_SITES= # filled in later after the configure script has run
DIST_SUBDIR= mbrolavox
MAINTAINER= trevor@FreeBSD.org
COMMENT= Voices for MBROLA voice synthesizer
.include <bsd.port.pre.mk>
NO_BUILD= yes
RESTRICTED= "no commercial nor military use, no sale"
USE_ZIP= yes
PLIST= ${WRKDIR}/plist
WRKSRC= ${WRKDIR}/voices
.if !defined(BATCH)
IS_INTERACTIVE= yes
.endif
pre-everything::
${MKDIR} ${WRKSRC}
.if !exists(${WRKDIRPREFIX}${.CURDIR}/work/voices.conf)
.if !defined(BATCH)
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
.endif
.if defined(PACKAGE_BUILDING)
.BEGIN:
${MKDIR} ${WRKDIR}
${CP} ${FILESDIR}/default-voices.conf ${WRKDIR}/voices.conf
${CP} ${FILESDIR}/default-fetchdirs.conf ${WRKDIR}/fetchdirs.conf
.endif
.if exists(${WRKDIRPREFIX}${.CURDIR}/work/voices.conf)
DISTFILES!=${CAT} ${WRKDIRPREFIX}${.CURDIR}/work/voices.conf
PATCHDIRS!=${CAT} ${WRKDIRPREFIX}${.CURDIR}/work/fetchdirs.conf
.endif
.for ii in ${PATCHDIRS}
MASTER_SITES+= http://www.festvox.org/mbrola/dba/${ii}/:${ii} \
http://mambo.ucsc.edu/psl/mbrola/dba/${ii}/:${ii} \
ftp://ftp.loria.fr/pub/pc/mbrpsola/${ii}/:${ii} \
ftp://tcts.fpms.ac.be/pub/mbrola/VOICES/${ii}/:${ii}
.endfor
do-extract:
.for ii in ${DISTFILES}
@${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
.endfor
do-patch:
@${DO_NADA}
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC}; \
for ii in `${FIND} * \! -type d | ${SORT}`; do \
${ECHO_CMD} share/mbrolavox/$${ii} >> ${PLIST}; \
done ; \
for ii in `${FIND} -d * -type d`; do \
${ECHO_CMD} @dirrm share/mbrolavox/$${ii} >> ${PLIST}; \
done
@${ECHO_CMD} @dirrm share/mbrolavox >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC} && ${FIND} * | ${CPIO} -dlmp ${DATADIR}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
.include <bsd.port.post.mk>