d5b3c8854c
"mbrolavox/mbrolavox-3.0.1.tar.gz is not in /usr/ports/audio/mbrolavox/distinfo." '
79 lines
1.9 KiB
Makefile
79 lines
1.9 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=
|
|
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>
|