aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mbrolavox/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-03-08 12:07:44 +0800
committeredwin <edwin@FreeBSD.org>2004-03-08 12:07:44 +0800
commit422ea734699c15ae5b22080426cf8b09f4728d45 (patch)
treee43bb4b564c4dda512a5796648db95826f0b4992 /audio/mbrolavox/Makefile
parent6bd4cda87862b99226f9ba10cbf6c839a66321d4 (diff)
downloadfreebsd-ports-gnome-422ea734699c15ae5b22080426cf8b09f4728d45.tar.gz
freebsd-ports-gnome-422ea734699c15ae5b22080426cf8b09f4728d45.tar.zst
freebsd-ports-gnome-422ea734699c15ae5b22080426cf8b09f4728d45.zip
[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
Diffstat (limited to 'audio/mbrolavox/Makefile')
-rw-r--r--audio/mbrolavox/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/audio/mbrolavox/Makefile b/audio/mbrolavox/Makefile
index c6602e0ba380..c8ea2ccd673b 100644
--- a/audio/mbrolavox/Makefile
+++ b/audio/mbrolavox/Makefile
@@ -8,7 +8,7 @@
PORTNAME= mbrolavox
PORTVERSION= 3.0.1
CATEGORIES= audio accessibility
-MASTER_SITES=
+MASTER_SITES= # filled in later after the configure script has run
DIST_SUBDIR= mbrolavox
MAINTAINER= trevor@FreeBSD.org
@@ -33,22 +33,28 @@ pre-everything::
${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
.endif
-DISTFILES?= us1-980512.zip
+
+.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}/ \
- http://mambo.ucsc.edu/psl/mbrola/dba/${ii}/ \
- ftp://ftp.loria.fr/pub/pc/mbrpsola/${ii}/ \
- ftp://tcts.fpms.ac.be/pub/mbrola/VOICES/${ii}/
+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 -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
+ @${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/${ii} -d ${WRKSRC}
.endfor
do-patch: